Solver API example: User field example 1
This is a simple example of using the advection API to calculate the residence time and writes details to the screen at the start of the analysis.
Double-click MoldflowUserFunctions_UserfieldExample1.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,
- sets up an evolution function for the transport equation for the calculation of residence time,
- checks and fixes user node field at the injection node to be zero.