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;