56 this->valueFraction() = 0.0;
70 phiName_(ptf.phiName_),
71 rhoName_(ptf.rhoName_),
72 fieldInf_(ptf.fieldInf_),
91 if (dict.
found(
"value"))
103 this->refValue() = *
this;
105 this->valueFraction() = 0.0;
109 dict.
lookup(
"fieldInf") >> fieldInf_;
115 "advectiveFvPatchField<Type>::"
116 "advectiveFvPatchField"
117 "(const fvPatch&, const Field<Type>&, const dictionary&)",
119 ) <<
"unphysical lInf specified (lInf < 0)\n"
120 <<
" on patch " << this->patch().name()
121 <<
" of field " << this->dimensionedInternalField().name()
122 <<
" in file " << this->dimensionedInternalField().objectPath()
169 reinterpret_cast<const surfaceScalarField*>(0),
170 reinterpret_cast<const scalar*>(0)
178 reinterpret_cast<const volScalarField*>(0),
179 reinterpret_cast<const scalar*>(0)
182 return phip/(rhop*this->patch().magSf());
186 return phip/this->patch().magSf();
201 this->dimensionedInternalField().
mesh()
202 .ddtScheme(this->dimensionedInternalField().
name())
204 scalar deltaT = this->db().time().deltaT().value();
209 this->dimensionedInternalField().name()
217 scalarField alpha = w*deltaT*this->patch().deltaCoeffs();
219 label
patchi = this->patch().index();
239 this->valueFraction() = (1.0 +
k)/(1.0 + alpha + k);
250 this->valueFraction() = (1.5 +
k)/(1.5 + alpha + k);
256 "advectiveFvPatchField<Type>::updateCoeffs()"
257 ) <<
" Unsupported temporal differencing scheme : "
259 <<
"\n on patch " << this->patch().name()
260 <<
" of field " << this->dimensionedInternalField().name()
261 <<
" in file " << this->dimensionedInternalField().objectPath()
275 this->valueFraction() = 1.0/(1.0 + alpha);
285 this->valueFraction() = 1.5/(1.5 + alpha);
291 "advectiveFvPatchField<Type>::updateCoeffs()"
292 ) <<
" Unsupported temporal differencing scheme : "
294 <<
"\n on patch " << this->patch().name()
295 <<
" of field " << this->dimensionedInternalField().name()
296 <<
" in file " << this->dimensionedInternalField().objectPath()
310 if (phiName_ !=
"phi")
314 if (rhoName_ !=
"rho")
327 this->writeEntry(
"value", os);