43 const dictionary& relaxationDict,
47 relaxationModel(typeName, relaxationDict, runTime),
50 lastTimeValue_(runTime_.time().timeOutputValue()),
51 relaxation_(relaxationStart_)
59 if (runTime_.time().timeOutputValue() > lastTimeValue_)
61 scalar currentRelaxation = relaxation_;
64 (relaxation_ - relaxationEnd_)
67 runTime_.time().endTime().value()
68 - runTime_.time().timeOutputValue()
70 /(runTime_.time().timeOutputValue() - lastTimeValue_)
74 lastTimeValue_ = runTime_.time().timeOutputValue();
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
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
virtual scalar relaxation()
Return the current relaxation coefficient.