54 if (!
dict.found(
"centre"))
57 <<
"Required entry 'centre' not found"
61 dict.lookup(
"body") >> body_;
68 return motion_.p(bodyID_, centre_);
74 return motion_.d(bodyID_, normal_);
83 const word& modelType,
91 refCast<const RBD::rigidBodyMotion>
Macros for easy insertion into run-time selection tables.
label bodyIndex(const word &name) const
Return the ID of the body with the given name.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Mesh data needed to do the Finite Volume discretisation.
Finite volume model abstract base class.
static const dictionary & coeffs(const word &modelType, const dictionary &)
Return the coefficients sub-dictionary for a given model type.
Disk momentum source which approximates a propeller based on a given propeller curve.
virtual void readCoeffs(const dictionary &dict)
Read the model coefficients.
Disk momentum source derived from Foam::fv::propellerDisk with support for motion of the body the pro...
virtual void readCoeffs(const dictionary &dict)
Read the model coefficients.
virtual vector centre() const
Return the current propeller centre.
virtual vector normal() const
Return the current propeller normal.
rigidBodyPropellerDisk(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from components.
Virtual base class for mesh motion solver.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
To & refCast(From &r)
Reference type cast template function.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.