40 fixedGradientFvPatchScalarField(p, iF),
56 fixedGradientFvPatchScalarField(ptf, p, iF, mapper),
58 phiName_(ptf.phiName_),
59 rhoName_(ptf.rhoName_),
60 adjoint_(ptf.adjoint_)
71 fixedGradientFvPatchScalarField(p, iF),
75 adjoint_(dict.
lookup(
"adjoint"))
77 if (dict.
found(
"gradient"))
80 fixedGradientFvPatchScalarField::updateCoeffs();
81 fixedGradientFvPatchScalarField::evaluate();
96 fixedGradientFvPatchScalarField(wbppsf),
97 UName_(wbppsf.UName_),
98 phiName_(wbppsf.phiName_),
99 rhoName_(wbppsf.rhoName_),
100 adjoint_(wbppsf.adjoint_)
110 fixedGradientFvPatchScalarField(wbppsf, iF),
111 UName_(wbppsf.UName_),
112 phiName_(wbppsf.phiName_),
113 rhoName_(wbppsf.rhoName_),
114 adjoint_(wbppsf.adjoint_)
145 patch().lookupPatchField<
volScalarField, scalar>(
"(1|A("+UName_+
"))");
149 gradient() = ((patch().Sf() & Up) - phip)/patch().magSf()/rAp;
153 gradient() = (phip - (patch().Sf() & Up))/patch().magSf()/rAp;
167 if (phiName_ !=
"phi")
171 if (rhoName_ !=
"rho")
176 gradient().writeEntry(
"gradient", os);