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.
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.
Macros for easy insertion into run-time selection tables.
A class for handling words, derived from string.
virtual void write(Ostream &) const
Write.
defineTypeNameAndDebug(cuboid, 0)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
defineRunTimeSelectionTable(rigidBody, dictionary)
const spatialTransform & masterXT() const
Return the transform with respect to the master body.
word name(const complex &)
Return a string representation of a complex.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
rigidBodyInertia transform(const spatialTransform &X, const rigidBodyInertia &I)
Return (^BX_A)^* I ^AX_B.
const rigidBody & body() const
Return the original body from which this sub-body was constructed.
const dimensionedScalar c
Speed of light in a vacuum.
virtual bool massless() const
Return false as this body is not massless.
virtual ~rigidBody()
Destructor.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.