55void 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);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Joint state returned by jcalc.
Abstract base-class for all rigid-body joints.
Prismatic joint for translation along the specified arbitrary axis.
virtual autoPtr< joint > clone() const
Clone this joint.
virtual ~composite()
Destructor.
virtual void jcalc(joint::XSvc &J, const scalarField &q, const scalarField &qDot) const
Update the model state for this joint.
T & last()
Return reference to the last element of the list.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write()
Write the output fields.
Lookup type of boundary radiation properties.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)