|
FhSim
3.1.0
Marine systems simulation
|
Inheritance diagram for Pendulum:
Collaboration diagram for Pendulum:Protected Member Functions | |
| void | SetOutputPortValues (const double T, const double *const X) const |
| const double * | Angle (const double T, const double *const X) |
| const double * | AngularVelocity (const double T, const double *const X) |
| int | LocalIndex (int globalStateIndex) const |
|
inlineprotected |
Turns a model-global state index into one local to this SimObject.
OdeFcn and the port functions are handed the whole model's state vector, so they use the global indices AddState returned directly. OdeJacobian is handed this object's own slice, whose first element is Angle, so every index it uses goes through this function (BASE-0033).