101 os.writeEntry(
"axis", S_[0].l());
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,...
Joint state returned by jcalc.
spatialVector c
The constrained joint acceleration correction.
spatialVector v
The constrained joint velocity.
spatialVector S1
The joint motion sub-space (1-DoF).
spatialTransform X
The joint transformation.
Abstract base-class for all rigid-body joints.
List< spatialVector > S_
Joint motion sub-space.
virtual void write(Ostream &) const
Write.
label qIndex_
Index of this joints data in the rigidBodyModel state.
joint(const label nDoF)
Construct joint setting the size of the motion sub-space.
Prismatic joint for translation along the specified arbitrary axis.
virtual void write(Ostream &) const
Write.
virtual autoPtr< joint > clone() const
Clone this joint.
Pa(const vector &axis)
Construct for given model and axis.
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,...
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
Namespace for rigid-body joints.
SpatialVector< scalar > spatialVector
SpatialVector of scalars.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
spatialTransform Xt(const vector &r)
Translational spatial transformation tensor for translation r.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
static constexpr const zero Zero
Global zero (0).