41 fixedValueFvPatchScalarField(p, iF),
60 fixedValueFvPatchScalarField(p, iF),
69 if (dict.
found(
"value"))
92 fixedValueFvPatchScalarField(ptf, p, iF, mapper),
94 phiName_(ptf.phiName_),
95 rhoName_(ptf.rhoName_),
96 psiName_(ptf.psiName_),
99 timeSeries_(ptf.timeSeries_)
109 fixedValueFvPatchScalarField(tppsf),
110 UName_(tppsf.UName_),
111 phiName_(tppsf.phiName_),
112 rhoName_(tppsf.rhoName_),
113 psiName_(tppsf.psiName_),
114 gamma_(tppsf.gamma_),
116 timeSeries_(tppsf.timeSeries_)
127 fixedValueFvPatchScalarField(tppsf, iF),
128 UName_(tppsf.UName_),
129 phiName_(tppsf.phiName_),
130 rhoName_(tppsf.rhoName_),
131 psiName_(tppsf.psiName_),
132 gamma_(tppsf.gamma_),
134 timeSeries_(tppsf.timeSeries_)
150 p0_ = timeSeries_(this->db().time().timeOutputValue());
155 if (psiName_ ==
"none" && rhoName_ ==
"none")
159 else if (rhoName_ ==
"none")
166 scalar gM1ByG = (gamma_ - 1.0)/gamma_;
173 (1.0 + 0.5*psip*gM1ByG*(1.0 -
pos(phip))*
magSqr(Up)),
183 else if (psiName_ ==
"none")
194 "timeVaryingUniformTotalPressureFvPatchScalarField::updateCoeffs()"
195 ) <<
" rho or psi set inconsitently, rho = " << rhoName_
196 <<
", psi = " << psiName_ <<
".\n"
197 <<
" Set either rho or psi or neither depending on the "
198 "definition of total pressure.\n"
199 <<
" Set the unused variables to 'none'.\n"
200 <<
" on patch " << this->patch().name()
201 <<
" of field " << this->dimensionedInternalField().name()
202 <<
" in file " << this->dimensionedInternalField().objectPath()
206 fixedValueFvPatchScalarField::updateCoeffs();
212 updateCoeffs(patch().lookupPatchField<volVectorField, vector>(UName_));
224 if (phiName_ !=
"phi")
232 timeSeries_.write(os);
233 writeEntry(
"value", os);