34 namespace functionObjects
60 meanAngularVelocity_(
Zero)
82 convergedAngularVelocity_ =
83 dict.lookup<
vector>(
"convergedAngularVelocity", angularVelocityUnits());
93 if (time_.timeIndex() <= time_.startTimeIndex() + 1)
95 meanVelocity_ =
cmptMag(velocity());
96 meanAngularVelocity_ =
cmptMag(angularVelocity());
100 const scalar dt = time_.deltaTValue();
101 const scalar beta =
min(dt/w_, 1);
103 meanVelocity_ = (1 - beta)*meanVelocity_ + beta*
cmptMag(velocity());
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 keyword definitions, which are a keyword followed by any number of values (e....
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.
A class for handling words, derived from string.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
word name(const bool)
Return a word representation of a bool.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
const dimensionSet dimTime
dimensionSet cmptMag(const dimensionSet &)
const dimensionSet dimVelocity