Tasks for the User Defined Tire
The user defined tire model conforms to the TYDEX standard, therefore the received input and expected output is determined by the standard.
- Read the tire property file to any access tire properties (if any) that the model requires for its calculations. It is recommended that this is done once during the initialization call described by the TYDEX standard.
- Call the ROAD function that is passed in through the TYDEX interface at an appropriate time to pick the relevant road height information.
- Calculate the tire forces and moments are output to MotionSolve. These forces must be in the Wheel Carrier axis system (TYDEX C). Some Utility subroutines are available from MotionSolve that might help with these calculations.
- Load the relevant results in the VARINF array described by the TYDEX standard.
- Handle errors within the code in the user defined road models and those that can originate from the road call or calls to MotionSolve API.
Calling the User Tire Interface
The User Tire Interface calls the User Tire model several times during the simulation with different JOBFLG. The JOBFLG variable decides the execution model (initialization, reading tire property file, initial condition) of TYRE. The User Tire Interface expects some variables to be updated according to the JOBFLG value. The JOBFLG is called in following order:JOBFLG
1: Initialization mode
2: Reading tire and road property files
11: Actual array size
6: Initial conditions
0: Normal call
99: Final call
For the complete details about the JOBFLG variable please refer to the Tire Subroutine Arguments topic.