Solver API example: Viscosity example 2
This example applies a CrossWLF viscosity model, using user-specified coefficients, and writes details to the screen at the start of the analysis.
Double-click MoldflowUserFunctions_ViscosityExample2.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 Cross-WLF viscosity model to the melt. The viscosity equation is defined in the file CrossWLFViscosity.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.