Solver API example: Viscosity example 4
This example applies a Herschel-Bulkley-WLF 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_ViscosityExample4.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 Herschel-Bulkley-WLF viscosity model to the melt. The viscosity equation is defined in the file HerschelBulkleyWLFViscosity.cpp,
- reads the Herschel-Bulkley-WLF viscocosity model coefficients 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.