55 void Foam::RBD::joints::composite::setLastJoint()
57 last().joint::operator=(*this);
98 last().jcalc(J, q, qDot);
105 os.writeKeyword(
"joints");
106 os << static_cast<const PtrList<joint>&>(*this);
Abstract base-class for all rigid-body joints.
T & last()
Return reference to the last element of the list.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void write(Ostream &) const
Write.
virtual ~composite()
Destructor.
defineTypeNameAndDebug(composite, 0)
addToRunTimeSelectionTable(joint, composite, dictionary)
Lookup type of boundary radiation properties.
Macros for easy insertion into run-time selection tables.
Prismatic joint for translation along the specified arbitrary axis.
Joint state returned by jcalc.
virtual void write(Ostream &) const
Write.
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...
OBJstream os(runTime.globalPath()/outputName)
virtual autoPtr< joint > clone() const
Clone this joint.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
composite(const PtrList< joint > &joints)
Construct for given PtrList<joint>