43 const dictionary& relaxationDict,
47 relaxationModel(typeName, relaxationDict, runTime),
48 relaxationStart_(coeffDict().
lookup<scalar>(
"relaxationStart")),
49 relaxationEnd_(coeffDict().
lookup<scalar>(
"relaxationEnd")),
50 lastTimeValue_(runTime_.time().userTimeValue()),
51 relaxation_(relaxationStart_)
59 if (runTime_.time().userTimeValue() > lastTimeValue_)
61 scalar currentRelaxation = relaxation_;
64 (relaxation_ - relaxationEnd_)
67 runTime_.time().endTime().value()
68 - runTime_.time().userTimeValue()
70 /(runTime_.time().userTimeValue() - lastTimeValue_)
74 lastTimeValue_ = runTime_.time().userTimeValue();
76 return currentRelaxation;
adaptiveLinear(const dictionary &relaxationDict, const Time &runTime)
Construct from components.
Macros for easy insertion into run-time selection tables.
stressControl lookup("compactNormalStress") >> compactNormalStress
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
virtual scalar relaxation()
Return the current relaxation coefficient.