Solver API example: Flow rate example 1
This example applies a user-specified routine to control the volumetric injection flow rate based on the preset volumetric injection flow rate in the previous time step and current time step during the flow analysis.
Double-click MoldflowUserFunctions_FlowRateExample1.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
- controls the injection flow rate by defining it as the average of preset injection flow rate in the previous time step and current time step,
- writes information and warnings etc. to the screen.