82 auto* ctorPtr = dictionaryConstructorTable(bodyType);
91 *dictionaryConstructorTablePtr_
125 os.writeEntry(
"type",
type());
126 os.writeEntry(
"mass", m());
127 os.writeEntry(
"centreOfMass",
c());
128 os.writeEntry(
"inertia", Ic());
static autoPtr< rigidBody > New(const word &name, const scalar &m, const vector &c, const symmTensor &Ic)
Select constructed from components.
errorManipArg< error, int > exit(error &err, const int errNo=1)
addToRunTimeSelectionTable(rigidBody, cuboid, dictionary)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void write(Ostream &) const
Write.
void merge(const subBody &)
Merge a body into this parent body.
virtual autoPtr< rigidBody > clone() const
Return clone of this rigidBody.
Macros for easy insertion into run-time selection tables.
const rigidBody & body() const
Return the original body from which this sub-body was constructed.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
virtual bool massless() const
Return false as this body is not massless.
defineTypeNameAndDebug(cuboid, 0)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
defineRunTimeSelectionTable(rigidBody, dictionary)
rigidBodyInertia transform(const spatialTransform &X, const rigidBodyInertia &I)
Return (^BX_A)^* I ^AX_B.
const dimensionedScalar c
Speed of light in a vacuum.
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
virtual ~rigidBody()
Destructor.
const spatialTransform & masterXT() const
Return the transform with respect to the master body.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...