Upost
Model ElementThe UPOST element allows you to generate your own results file.
Class Name
Upost
Attribute Summary
Name | Property | Modifiable by command? | Designable? |
---|---|---|---|
function | Function ("POSTSUB") | NO | NO |
routine | Routine () |
Usage
# Defined in a compiled user subroutine
Upost (function=userString, routine=string)
# Defined in a Python function
Upost (function=userString, routine=functionPointer)
Attributes
- function
- String defining a valid user function MotionSolve expression.
- routine
- String
- function
- String defining a valid user function MotionSolve expression.
- routine
- Pointer to a callable function in Python.
Example
- Define a Python function rocket_fuel_consumption that saves fuel consumption
data to a
file.
Upost (function="USER()", routine=rocket_fuel_consumption)
- Define a C++ function rocket_fuel_consumption that saves fuel
consumption data to a file. It exists in a DLL named
Arianne.
Upost (function="USER()", routine="Arianne::rocket_fuel_consumption")
Comments
- See Properties for an explanation about what properties are, why they are used, and how you can extend these.
- POSTSUB is called every output step. You can perform the required output operations at this point.