Share

Solver API example: Reactive viscosity example 1

This example applies the reactive viscosity model, using user-specified coefficients, and writes details to the screen at the start of the analysis.

Double-click MoldflowUserFunctions_ReactiveViscosityExample1.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 reactive viscosity model to the melt. The viscosity equation is defined in the file ReactiveViscosity.cpp, which is found in the same installation folder as this example .vcxproj file.
  • Uses coefficients that are read from the user string, entered in the Solver API tab. Make sure the numbers are entered in the same order as seen in Material/Rheological Properties tab.
  • Writes simple messages, including the viscosity coefficient values, to the screen at the start of the analysis.

Was this information helpful?