Go to the documentation of this file. 1 #ifndef SimTK_SIMBODY_PARTICLECONSURFACESYSTEM_H_
2 #define SimTK_SIMBODY_PARTICLECONSURFACESYSTEM_H_
43 class ParticleConSurfaceSystem;
62 :
Guts(), geom(geom) {
88 Vector& dq)
const override {dq=u;}
90 Vector& fu)
const override {fu=fq;}
92 Vector& u)
const override {u=dq;}
94 Vector& fq)
const override {fq=fu;}
106 const ContactGeometryImpl& geom;
123 return SimTK_DYNAMIC_CAST_DEBUG<const ParticleConSurfaceSystemGuts&>
128 return SimTK_DYNAMIC_CAST_DEBUG<ParticleConSurfaceSystemGuts&>
Guts & updSystemGuts()
Obtain a writable reference to the System::Guts object to which this handle refers.
Definition: System.h:876
This object is intended to contain all state information for a SimTK::System, except topological info...
Definition: State.h:280
bool prescribeUImpl(State &) const override
Definition: ParticleConSurfaceSystem.h:98
Results for advanced users of project() methods.
Definition: System.h:1067
Vector & updU(SubsystemIndex)
Definition: ParticleConSurfaceSystem.h:44
Vector & updQ(SubsystemIndex)
void setDefaultTimeAndState(Real t, const Vector &q, const Vector &u)
Definition: ParticleConSurfaceSystem.h:132
int realizeAccelerationImpl(const State &) const override
This is a System that represents the dynamics of a particle moving along a smooth surface.
Definition: Assembler.h:37
void multiplyByNPInvImpl(const State &state, const Vector &dq, Vector &u) const override
Definition: ParticleConSurfaceSystem.h:91
SubsystemIndex getSubsysIndex() const
Definition: ParticleConSurfaceSystem.h:68
ParticleConSurfaceSystem(const ContactGeometryImpl &geom)
Definition: ParticleConSurfaceSystem.h:113
Real & updTime()
You can call these as long as System stage >= Model, but the stage will be backed up if necessary to ...
int realizeTopologyImpl(State &) const override
const System & getSystem() const
void projectQImpl(State &, Vector &qErrEst, const ProjectOptions &options, ProjectResults &results) const override
void setHasTimeAdvancedEvents(bool)
This determines whether this System wants to be notified whenever time advances irreversibly.
This is a concrete Subsystem that is part of every System. It provides a variety of services for the ...
Definition: System.h:910
void adoptSystemGuts(System::Guts *g)
Put new unowned Guts into this empty handle and take over ownership.
const ParticleConSurfaceSystem & getParticleConSurfaceSystem() const
Definition: ParticleConSurfaceSystem.h:144
const ParticleConSurfaceSystemGuts & getGuts() const
Definition: ParticleConSurfaceSystem.h:122
bool prescribeQImpl(State &) const override
Definition: ParticleConSurfaceSystem.h:97
void multiplyByNImpl(const State &state, const Vector &u, Vector &dq) const override
Definition: ParticleConSurfaceSystem.h:87
void multiplyByNPInvTransposeImpl(const State &state, const Vector &fu, Vector &fq) const override
Definition: ParticleConSurfaceSystem.h:93
int realizePositionImpl(const State &) const override
void projectUImpl(State &, Vector &uErrEst, const ProjectOptions &options, ProjectResults &results) const override
This is the declaration for the System::Guts class, the abstract object to which a System handle poin...
Definition: SystemGuts.h:71
ParticleConSurfaceSystemGuts(const ContactGeometryImpl &geom)
Definition: ParticleConSurfaceSystem.h:61
Options for the advanced project() methods.
Definition: System.h:950
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 realizeInstanceImpl(const State &) const override
ParticleConSurfaceSystemGuts & updGuts()
Definition: ParticleConSurfaceSystem.h:127
void multiplyByNTransposeImpl(const State &state, const Vector &fq, Vector &fu) const override
Definition: ParticleConSurfaceSystem.h:89
This is the base class that serves as the parent of all SimTK System objects; most commonly Simbody's...
Definition: System.h:97
int realizeModelImpl(State &) const override
SubsystemIndex getMySubsystemIndex() const
Return the SubsystemIndex within the containing System.
Definition: SubsystemGuts.h:495
int realizeDynamicsImpl(const State &) const override
int realizeVelocityImpl(const State &) const override
const Guts & getSystemGuts() const
Obtain a const reference to the System::Guts object to which this handle refers.
Definition: System.h:872
State & updDefaultState()
Don't use this; make a copy of the default state instead and modify your copy.
Guts(const String &name="<NONAME>", const String &version="0.0.0")
Definition: ParticleConSurfaceSystem.h:111
ParticleConSurfaceSystemGuts * cloneImpl() const override
Definition: ParticleConSurfaceSystem.h:72