Go to the documentation of this file. 1 #ifndef SimTK_SIMBODY_GENERAL_FORCE_ELEMENTS_H_
2 #define SimTK_SIMBODY_GENERAL_FORCE_ELEMENTS_H_
34 class MultibodySystem;
35 class SimbodyMatterSubsystem;
117 int getNForces()
const {
return getNumForces();}
119 class GeneralForceSubsystemRep& updRep();
120 const GeneralForceSubsystemRep& getRep()
const;
125 #endif // SimTK_SIMBODY_GENERAL_FORCE_ELEMENTS_H_
This object is intended to contain all state information for a SimTK::System, except topological info...
Definition: State.h:280
const Force & getForce(ForceIndex index) const
Get a const reference to a force element by index.
This is a System that represents the dynamics of a particle moving along a smooth surface.
Definition: Assembler.h:37
#define SimTK_PIMPL_DOWNCAST(Derived, Parent)
Similar to the above but for private implementation abstract classes, that is, abstract class hierarc...
Definition: SimTKcommon/include/SimTKcommon/internal/common.h:593
This is the base class from which all Force element handle classes derive.
Definition: Force.h:50
ForceIndex adoptForce(Force &force)
Attach a new force to this subsystem.
This is a concrete subsystem which can apply arbitrary forces to a MultibodySystem.
Definition: GeneralForceSubsystem.h:47
const MultibodySystem & getMultibodySystem() const
Every Subsystem is owned by a System; a GeneralForceSubsystem expects to be owned by a MultibodySyste...
Force & updForce(ForceIndex index)
Get a writable reference to a force element by index.
The job of the MultibodySystem class is to coordinate the activities of various subsystems which can ...
Definition: MultibodySystem.h:48
void setForceIsDisabled(State &state, ForceIndex index, bool shouldBeDisabled) const
Disable or enable a particular force element contained in this subsystem.
#define SimTK_SIMBODY_EXPORT
Definition: Simbody/include/simbody/internal/common.h:68
GeneralForceSubsystem(MultibodySystem &)
This is logically an abstract class, more specialized than "Subsystem" but not yet concrete.
Definition: ForceSubsystem.h:36
void setNumberOfThreads(unsigned numThreads)
Set the number of threads that the GeneralForceSubsystem can use to calculate computationally expensi...
bool isForceDisabled(const State &state, ForceIndex index) const
Find out whether a particular force element contained in this subsystem is currently disabled in the ...
int getNumberOfThreads() const
Returns the number of threads that the GeneralForceSubsystem can use to calculate computationally exp...
int getNumForces() const
Get the number of force elements which have been added to this Subsystem.