53 void Foam::RBD::joints::composite::setLastJoint()
55 last().joint::operator=(*this);
99 last().jcalc(J, state);
107 os << static_cast<const PtrList<joint>&>(*this);
Abstract base-class for all rigid-body joints.
Ostream & writeKeyword(Foam::Ostream &os, const keyType &kw)
Write the keyword to the Ostream with the current level of indentation.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void write(Ostream &) const
Write.
virtual ~composite()
Destructor.
defineTypeNameAndDebug(composite, 0)
addToRunTimeSelectionTable(joint, composite, dictionary)
T & last()
Return reference to the last element of the list.
Macros for easy insertion into run-time selection tables.
Holds the motion state of rigid-body model.
Prismatic joint for translation along the specified arbitrary axis.
Joint state returned by jcalc.
virtual void write(Ostream &) const
Write.
joint(const rigidBodyModel &model, const label nDoF)
Construct joint setting the size of the motion sub-space.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual autoPtr< joint > clone() const
Clone this joint.
virtual void jcalc(joint::XSvc &J, const rigidBodyModelState &state) const
Update the model state for this joint.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
composite(const PtrList< joint > &joints)
Construct for given PtrList<joint>
Basic rigid-body model representing a system of rigid-bodies connected by 1-6 DoF joints...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.