43 const dictionary& relaxationDict,
47 relaxationModel(typeName, relaxationDict, runTime),
48 rampStartRelaxation_(coeffDict().
lookup<scalar>(
"rampStartRelaxation")),
49 holdRelaxation_(coeffDict().
lookup<scalar>(
"holdRelaxation")),
50 fallEndRelaxation_(coeffDict().
lookup<scalar>(
"fallEndRelaxation")),
51 rampEndFraction_(coeffDict().
lookup<scalar>(
"rampEndFraction")),
52 fallStartFraction_(coeffDict().
lookup<scalar>(
"fallStartFraction")),
53 rampGradient_((holdRelaxation_ - rampStartRelaxation_)/(rampEndFraction_)),
56 (fallEndRelaxation_ - holdRelaxation_)/(1 - fallStartFraction_)
69 scalar tSpan = tEnd - tStart;
73 return rampStartRelaxation_;
76 if (t - tStart < rampEndFraction_*tSpan)
80 return rampGradient_*((t - tStart)/tSpan) + rampStartRelaxation_;
82 else if (t - tStart > fallStartFraction_*tSpan)
87 fallGradient_*((t - tStart)/tSpan)
88 + fallEndRelaxation_ - fallGradient_;
94 return holdRelaxation_;
virtual dimensionedScalar startTime() const
Return start time.
virtual dimensionedScalar endTime() const
Return end time.
Macros for easy insertion into run-time selection tables.
scalar userTimeValue() const
Return current user time value.
const Time & runTime_
Reference to the conformalVoronoiMesh holding this cvControls object.
stressControl lookup("compactNormalStress") >> compactNormalStress
const Type & value() const
Return const reference to value.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
const Time & time() const
Return time.
defineTypeNameAndDebug(combustionModel, 0)
virtual scalar relaxation()
Return the current relaxation coefficient.
rampHoldFall(const dictionary &relaxationDict, const Time &runTime)
Construct from components.