44 const dictionary& relaxationDict,
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_)
68 runTime_.time().endTime().value()
69 - runTime_.time().timeOutputValue()
71 /(runTime_.time().timeOutputValue() - lastTimeValue_)
75 lastTimeValue_ = runTime_.time().timeOutputValue();
77 return currentRelaxation;
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
adaptiveLinear(const dictionary &relaxationDict, const Time &runTime)
Construct from components.
Macros for easy insertion into run-time selection tables.
defineTypeNameAndDebug(combustionModel, 0)
virtual scalar relaxation()
Return the current relaxation coefficient.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)