55void Foam::RBD::joints::composite::setLastJoint()
57 last().joint::operator=(*this);
98 last().jcalc(J, q, qDot);
105 os.writeKeyword(
"joints");
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,...
constexpr PtrList() noexcept
Joint state returned by jcalc.
Abstract base-class for all rigid-body joints.
virtual void write(Ostream &) const
Write.
joint(const label nDoF)
Construct joint setting the size of the motion sub-space.
Prismatic joint for translation along the specified arbitrary axis.
composite(const PtrList< joint > &joints)
Construct for given PtrList<joint>.
virtual void write(Ostream &) const
Write.
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.
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,...
Lookup type of boundary radiation properties.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
Namespace for rigid-body joints.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.