Go to the documentation of this file. 1 #ifndef SimTK_SIMBODY_MULTIBODY_SYSTEM_H_
2 #define SimTK_SIMBODY_MULTIBODY_SYSTEM_H_
34 class SimbodyMatterSubsystem;
36 class DecorationSubsystem;
37 class GeneralContactSubsystem;
81 return calcPotentialEnergy(s)+calcKineticEnergy(s);
105 const MultibodySystemRep&
getRep()
const;
113 #endif // SimTK_SIMBODY_MULTIBODY_SYSTEM_H_
This object is intended to contain all state information for a SimTK::System, except topological info...
Definition: State.h:280
bool hasContactSubsystem() const
int setMatterSubsystem(SimbodyMatterSubsystem &)
This is the client-side handle class encapsulating the hidden implementation of the DecorationSubsyst...
Definition: DecorationSubsystem.h:54
const Real calcPotentialEnergy(const State &) const
Calculate the total potential energy of the system.
Real calcEnergy(const State &s) const
Calculate the total energy of the system.
Definition: MultibodySystem.h:80
const MultibodySystemRep & getRep() const
const GeneralContactSubsystem & getContactSubsystem() const
Vector_< Vec3 > & updParticleForces(const State &, Stage) const
This is a System that represents the dynamics of a particle moving along a smooth surface.
Definition: Assembler.h:37
const Vector_< SpatialVec > & getRigidBodyForces(const State &, Stage) const
DecorationSubsystem & updDecorationSubsystem()
SimTK_PIMPL_DOWNCAST(MultibodySystem, System)
Vector_< SpatialVec > & updRigidBodyForces(const State &, Stage) const
int setDecorationSubsystem(DecorationSubsystem &)
This subsystem contains the bodies ("matter") in the multibody system, the mobilizers (joints) that d...
Definition: SimbodyMatterSubsystem.h:133
const Real calcKineticEnergy(const State &) const
Calculate the total kinetic energy of the system.
MultibodySystem(MultibodySystemRep *)
const DecorationSubsystem & getDecorationSubsystem() const
const SimbodyMatterSubsystem & getMatterSubsystem() const
Vector & updMobilityForces(const State &, Stage) const
SimbodyMatterSubsystem & updMatterSubsystem()
The job of the MultibodySystem class is to coordinate the activities of various subsystems which can ...
Definition: MultibodySystem.h:48
const Vector_< Vec3 > & getParticleForces(const State &, Stage) const
bool hasMatterSubsystem() const
This class is basically a glorified enumerated type, type-safe and range checked but permitting conve...
Definition: Stage.h:66
int addForceSubsystem(ForceSubsystem &)
#define SimTK_SIMBODY_EXPORT
Definition: Simbody/include/simbody/internal/common.h:68
This is logically an abstract class, more specialized than "Subsystem" but not yet concrete.
Definition: ForceSubsystem.h:36
SimTK_Real Real
This is the default compiled-in floating point type for SimTK, either float or double.
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:606
int setContactSubsystem(GeneralContactSubsystem &)
This is the vector class intended to appear in user code for large, variable size column vectors.
Definition: BigMatrix.h:171
This is the base class that serves as the parent of all SimTK System objects; most commonly Simbody's...
Definition: System.h:97
bool hasDecorationSubsystem() const
GeneralContactSubsystem & updContactSubsystem()
MultibodySystem(SimbodyMatterSubsystem &m)
const Vector & getMobilityForces(const State &, Stage) const
class MultibodySystemRep & updRep()