Share

Solver API example: PVT example 2

This example applies a linear PVT model using user-specified coefficients read from the study file. It provides examples of more advanced functionality, and writes details to the screen at the start of the analysis.

Double-click MoldflowUserFunctions_PVTExample2.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 example is configured for both the flow and the warp solvers, and

  • calculates the specific volume at a given temperature (deg C) and pressure,
  • shows how specific volume can be made explicitly dependent on node location ; scales the specific volume by 1.5 for X < 0mm,
  • extracts information from the analysis,
  • runs user code at intermediate stages of the analysis,
  • writes information and warnings to the screen.

Was this information helpful?