79 dictionaryConstructorTable::iterator cstrIter =
80 dictionaryConstructorTablePtr_->find(bodyType);
82 if (cstrIter == dictionaryConstructorTablePtr_->end())
85 <<
"Unknown rigidBody type " 86 << bodyType <<
nl <<
nl 87 <<
"Valid rigidBody types are : " <<
endl 88 << dictionaryConstructorTablePtr_->sortedToc()
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 any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void write(Ostream &) const
Write.
void merge(const subBody &)
Merge a body into this parent body.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual autoPtr< rigidBody > clone() const
Return clone of this rigidBody.
const dimensionedScalar c
Speed of light in a vacuum.
Macros for easy insertion into run-time selection tables.
const rigidBody & body() const
Return the original body from which this sub-body was constructed.
This specialised rigidBody holds the original body after it has been merged into a master...
A class for handling words, derived from 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...
defineRunTimeSelectionTable(rigidBody, dictionary)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.
rigidBodyInertia transform(const spatialTransform &X, const rigidBodyInertia &I)
Return (^BX_A)^* I ^AX_B.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
virtual ~rigidBody()
Destructor.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const spatialTransform & masterXT() const
Return the transform with respect to the master body.