|
FhSim
3.1.0
Marine systems simulation
|
Inheritance diagram for HydroBall:
Collaboration diagram for HydroBall:Protected Member Functions | |
| void | SetOutputPortValues (const double T, const double *const X) const |
| const double * | Position (const double T, const double *const X) |
| const double * | Velocity (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 Position, so every index it uses goes through this function (BASE-0033).