53 void Foam::RBD::joints::composite::setLastJoint()
55 last().joint::operator=(*this);
96 last().jcalc(J, q, qDot);
104 os << static_cast<const PtrList<joint>&>(*this);
virtual void write(Ostream &) const
Write.
Abstract base-class for all rigid-body joints.
A list of keyword definitions, which are a keyword followed by any number of values (e...
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.
Prismatic joint for translation along the specified arbitrary axis.
Joint state returned by jcalc.
stressControl lookup("compactNormalStress") >> compactNormalStress
virtual void jcalc(joint::XSvc &J, const scalarField &q, const scalarField &qDot) const
Update the model state for this joint.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
virtual void write(Ostream &) const
Write.
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>
virtual autoPtr< joint > clone() const
Clone this joint.