48 relaxationModel(typeName, relaxationDict,
runTime),
49 relaxationStart_(coeffDict().
get<scalar>(
"relaxationStart")),
50 relaxationEnd_(coeffDict().
get<scalar>(
"relaxationEnd")),
51 lastTimeValue_(runTime_.time().timeOutputValue()),
52 relaxation_(relaxationStart_)
60 if (
runTime_.time().timeOutputValue() > lastTimeValue_)
62 scalar currentRelaxation = relaxation_;
65 (relaxation_ - relaxationEnd_)
71 /(
runTime_.time().timeOutputValue() - lastTimeValue_)
75 lastTimeValue_ =
runTime_.time().timeOutputValue();
77 return currentRelaxation;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Produces a linear ramp which adapts its gradient to changes in endTime and deltaT to always arrive at...
virtual scalar relaxation()
Return the current relaxation coefficient.
adaptiveLinear(const dictionary &relaxationDict, const Time &runTime)
Construct from components.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base class for providing relaxation values to the cell motion controller.
const Time & runTime_
Reference to the conformalVoronoiMesh holding this cvControls object.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.