Solver API example: User field example 2
This is an example of using the advection API to predict thermal degradation of polymers and writes details to the screen at the start of the analysis.
Double-click MoldflowUserFunctions_UserfieldExample2.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
- defines one dimensional user node fields and initilizes user node fields,
- reads the parameter strings from the config string,
- sets up an evolution function for the transport equation for the first order Arrhenius model to calculate thermal degradation of polymers,
- checks and fixes user node field to be less than 1.