34 namespace functionObjects
60 meanAngularVelocity_(
Zero)
82 convergedAngularVelocity_ =
83 dict.lookup<
vector>(
"convergedAngularVelocity", angularVelocityUnits());
93 if (time_.timeIndex() <= time_.startTimeIndex() + 1)
96 meanAngularVelocity_ =
cmptMag(angularVelocity());
100 const scalar dt = time_.deltaTValue();
101 const scalar beta =
min(dt/w_, 1);
105 meanAngularVelocity_ =
106 (1 - beta)*meanAngularVelocity_ + beta*
cmptMag(angularVelocity());
111 time_.value() - time_.startTime().value() > w_
112 && meanVelocity_ < convergedVelocity_
113 && meanAngularVelocity_ < convergedAngularVelocity_
Macros for easy insertion into run-time selection tables.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
@ writeNow
set endTime to stop immediately w/ writing
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base-class for Time/database functionObjects.
Convergence control based on the 6-DoF motion state.
sixDoFRigidBodyControl(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual ~sixDoFRigidBodyControl()
Destructor.
virtual bool execute()
Execute, currently does nothing.
virtual bool read(const dictionary &)
Read the sixDoFRigidBodyControl data.
Writes the 6-DoF motion state.
virtual bool read(const dictionary &)
Read the sixDoFRigidBodyState data.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
A class for handling words, derived from string.
const dimensionSet velocity
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
addToRunTimeSelectionTable(functionObject, fvModel, dictionary)
const dimensionSet & dimVelocity
const dimensionSet & dimTime
dimensioned< Type > min(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
tmp< DimensionedField< Type, GeoMesh, Field > > cmptMag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)