99 scalar s0 =
sin(qj.
x());
100 scalar c0 =
cos(qj.
x());
101 scalar s1 =
sin(qj.
y());
103 scalar s2 =
sin(qj.
z());
108 c2*c1, s2*c0 + c2*s1*s0, s2*s0 - c2*s1*c0,
109 -s2*c1, c2*c0 - s2*s1*s0, c2*s0 + s2*s1*c0,
127 -s2*c1*qDotj.
z()*qDotj.
x()
128 - c2*s1*qDotj.
y()*qDotj.
x()
129 + c2*qDotj.
z()*qDotj.
y(),
131 -c2*c1*qDotj.
z()*qDotj.
x()
132 + s2*s1*qDotj.
y()*qDotj.
x()
133 - s2*qDotj.
z()*qDotj.
y(),
135 c1*qDotj.
y()*qDotj.
x(),
Abstract base-class for all rigid-body joints.
A list of keyword definitions, which are a keyword followed by any number of values (e...
spatialVector v
The constrained joint velocity.
label qIndex_
Index of this joints data in the rigidBodyModel state.
compactSpatialTensor S
The joint motion sub-space (3-DoF)
defineTypeNameAndDebug(composite, 0)
addToRunTimeSelectionTable(joint, composite, dictionary)
spatialVector c
The constrained joint acceleration correction.
Macros for easy insertion into run-time selection tables.
const dimensionedScalar c2
Second radiation constant: default SI units: [m K].
Holds the motion state of rigid-body model.
const dimensionedScalar c1
First radiation constant: default SI units: [W/m^2].
Rxyz(const rigidBodyModel &model)
Construct for given model.
Joint state returned by jcalc.
dimensionedScalar cos(const dimensionedScalar &ds)
const scalarField & q() const
Return access to the joint position and orientation.
SpatialVector< scalar > spatialVector
SpatialVector of scalars.
const scalarField & qDot() const
Return access to the joint velocity.
virtual ~Rxyz()
Destructor.
VSForm block(const label start) const
joint(const rigidBodyModel &model, const label nDoF)
Construct joint setting the size of the motion sub-space.
dimensionedScalar sin(const dimensionedScalar &ds)
List< spatialVector > S_
Joint motion sub-space.
spatialTransform X
The joint transformation.
virtual autoPtr< joint > clone() const
Clone this joint.
virtual void jcalc(joint::XSvc &J, const rigidBodyModelState &state) const
Update the model state for this joint.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Basic rigid-body model representing a system of rigid-bodies connected by 1-6 DoF joints...
Tensor< scalar > tensor
Tensor of scalars.