42 timeVaryingMappedFixedValueFvPatchScalarField(p, iF),
60 timeVaryingMappedFixedValueFvPatchScalarField(p, iF, dict),
89 timeVaryingMappedFixedValueFvPatchScalarField(ptf, p, iF, mapper),
91 phiName_(ptf.phiName_),
92 rhoName_(ptf.rhoName_),
94 psiName_(ptf.psiName_),
105 timeVaryingMappedFixedValueFvPatchScalarField(tppsf),
106 UName_(tppsf.UName_),
107 phiName_(tppsf.phiName_),
108 rhoName_(tppsf.rhoName_),
110 psiName_(tppsf.psiName_),
122 timeVaryingMappedFixedValueFvPatchScalarField(tppsf, iF),
123 UName_(tppsf.UName_),
124 phiName_(tppsf.phiName_),
125 rhoName_(tppsf.rhoName_),
127 psiName_(tppsf.psiName_),
139 timeVaryingMappedFixedValueFvPatchScalarField::autoMap(m);
149 timeVaryingMappedFixedValueFvPatchScalarField::rmap(ptf, addr);
164 timeVaryingMappedFixedValueFvPatchScalarField::updateCoeffs();
172 if (rhoName_ ==
"none")
176 else if (rhoName_ ==
"rho")
184 "timeVaryingMappedTotalPressureFvPatchScalarField::"
186 ) <<
" rhoName set inconsistently, rhoName = " << rhoName_
188 <<
" Set rhoName to 'rho' or 'none' depending on the "
189 "definition of total pressure." <<
nl
190 <<
" on patch " << this->patch().name()
191 <<
" of field " << this->dimensionedInternalField().name()
192 <<
" in file " << this->dimensionedInternalField().objectPath()
196 else if (dimensionedInternalField().dimensions() ==
dimPressure)
198 if (rhoName_ !=
"none")
205 else if (psiName_ !=
"none")
212 scalar gM1ByG = (gamma_ - 1.0)/gamma_;
219 (1.0 + 0.5*psip*gM1ByG*(1.0 -
pos(phip))*
magSqr(Up)),
233 "timeVaryingMappedTotalPressureFvPatchScalarField::"
235 ) <<
" rhoName or psiName set inconsistently, rhoName = "
236 << rhoName_ <<
", psiName = " << psiName_ <<
".\n"
237 <<
" Set either rhoName or psiName depending on the "
238 "definition of total pressure." <<
nl
239 <<
" Set the unused variable(s) to 'none'.\n"
240 <<
" on patch " << this->patch().name()
241 <<
" of field " << this->dimensionedInternalField().name()
242 <<
" in file " << this->dimensionedInternalField().objectPath()
250 "timeVaryingMappedTotalPressureFvPatchScalarField::updateCoeffs()"
251 ) <<
"Incorrect dimensions for pressure "
252 << dimensionedInternalField().dimensions()
254 <<
" for compressible/variable density flow\n"
256 <<
" for incompressible flow.\n"
257 <<
" on patch " << this->patch().name()
258 <<
" of field " << this->dimensionedInternalField().name()
259 <<
" in file " << this->dimensionedInternalField().objectPath()
267 updateCoeffs(patch().lookupPatchField<volVectorField, vector>(UName_));
276 writeEntryIfDifferent<word>(os,
"UName",
"U", UName_);
277 writeEntryIfDifferent<word>(os,
"phiName",
"phi", phiName_);
282 timeVaryingMappedFixedValueFvPatchScalarField::write(os);