Share

Solver API example: PVT example 3

This example applies a Tait PVT model using a set of coefficients hard-coded in the source file. The transition from melt to solid phases is also used to set the melt solidification in the flow solution.

This examples shows more advanced functionality, and writes details to the screen at the start and during the analysis.

Double-click MoldflowUserFunctions_PVTExample3.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

  • applies a Tait PVT model,
  • sets solidification according to the Tait PVT model phase transition,
  • converts temperature from deg C to K,
  • applies a different material to each shot of a two-shot analysis,
  • extracts information from the analysis,
  • runs user code at intermediate stages of the analysis,
  • writes information and warnings to the analysis log.

Was this information helpful?