Go to the documentation of this file.
82 auto cstrIter = dictionaryConstructorTablePtr_->cfind(bodyType);
84 if (!cstrIter.found())
91 *dictionaryConstructorTablePtr_
static autoPtr< T > New(Args &&... args)
Construct autoPtr of T with forwarding arguments.
const rigidBody & body() const
Return the original body from which this sub-body was constructed.
A class for handling words, derived from Foam::string.
void merge(const subBody &)
Merge a body into this parent body.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
virtual autoPtr< rigidBody > clone() const
Return clone of this rigidBody.
virtual bool massless() const
Return false as this body is not massless.
word name(const complex &c)
Return string representation of complex.
defineTypeNameAndDebug(cuboid, 0)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
virtual ~rigidBody()
Destructor.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual void write(Ostream &) const
Write.
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.
defineRunTimeSelectionTable(rigidBody, dictionary)
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
const dimensionedScalar c
Speed of light in a vacuum.
const spatialTransform & masterXT() const
Return the transform with respect to the master body.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
addToRunTimeSelectionTable(rigidBody, cuboid, dictionary)
static autoPtr< rigidBody > New(const word &name, const scalar &m, const vector &c, const symmTensor &Ic)
Select constructed from components.