Solver API example: Fiber orientation example 2
This is an example of fiber orientation model based on the Folgar-Tucker orientation equation using user fiber orientation functions for 3D flow.
Double-click MoldflowUserFunctions_FiberOrientationExample2.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 the dimensions of user node fields,
- initializes user node fields,
- sets up evolution function of transport equation for Folgar-Tucker fiber orientation model,
- checks if user node fields are valid,
- checks and fixs user node fields during the flow analysis,
- sets fiber orientation for all nodes according to the corresponding user node fields.