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());
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,...
virtual bool massless() const
Return false as this body is not massless.
virtual ~rigidBody()
Destructor.
virtual autoPtr< rigidBody > clone() const
Return clone of this rigidBody.
const spatialTransform & masterXT() const
Return the transform with respect to the master body.
const rigidBody & body() const
Return the original body from which this sub-body was constructed.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual bool merge() const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write()
Write the output fields.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
OBJstream os(runTime.globalPath()/outputName)
rigidBodyInertia transform(const spatialTransform &X, const rigidBodyInertia &I)
Return (^BX_A)^* I ^AX_B.
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 INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.