#include <MultibodySystem.h>
We insist on having exactly one MatterSubsystem, and we would like also to have:
MultibodySystem | ( | ) |
MultibodySystem | ( | MultibodySystemRep * | ) | [explicit, protected] |
int addForceSubsystem | ( | ForceSubsystem & | ) |
int setMatterSubsystem | ( | SimbodyMatterSubsystem & | ) |
const SimbodyMatterSubsystem& getMatterSubsystem | ( | ) | const |
SimbodyMatterSubsystem& updMatterSubsystem | ( | ) |
bool hasMatterSubsystem | ( | ) | const |
int setDecorationSubsystem | ( | DecorationSubsystem & | ) |
const DecorationSubsystem& getDecorationSubsystem | ( | ) | const |
DecorationSubsystem& updDecorationSubsystem | ( | ) |
bool hasDecorationSubsystem | ( | ) | const |
int setContactSubsystem | ( | GeneralContactSubsystem & | ) |
const GeneralContactSubsystem& getContactSubsystem | ( | ) | const |
GeneralContactSubsystem& updContactSubsystem | ( | ) |
bool hasContactSubsystem | ( | ) | const |
const Real calcPotentialEnergy | ( | const State & | ) | const |
Calculate the total potential energy of the system.
The state must be at Dynamics stage or later.
const Real calcKineticEnergy | ( | const State & | ) | const |
Calculate the total kinetic energy of the system.
The state must be at Velocity stage or later.
Real calcEnergy | ( | const State & | s | ) | const [inline] |
Calculate the total energy of the system.
The state must be at Dynamics stage or later.
const Vector_<SpatialVec>& getRigidBodyForces | ( | const State & | , | |
Stage | ||||
) | const |
Vector_<SpatialVec>& updRigidBodyForces | ( | const State & | , | |
Stage | ||||
) | const |
class MultibodySystemRep& updRep | ( | ) |
const MultibodySystemRep& getRep | ( | ) | const |
Reimplemented in MolecularMechanicsSystem.