Share

Solver API example: Viscosity example 3

This example applies a power-law viscosity model using user-specified coefficients, provides examples of more advanced functionality, and writes details to the screen a the start of the analysis.

Double-click MoldflowUserFunctions_ViscosityExample3.vcxproj from inside C:\Program Files\Autodesk\Moldflow Insight 20XX\data\solverapi, to launch your compiler, or open it in a text editor to examine the code. This API is applicable only to the Flow solver.

This example

  • applies the power law viscosity model to the melt. The viscosity equation is defined in the file PowerViscosity.cpp.
  • reads the power law coefficients from the user string, entered in the Solver API tab.
  • reads user parameters from the study file,
  • extracts information from the analysis,
  • runs user code at intermediate stages of the analysis
  • writes information and warnings etc to the screen.

Was this information helpful?