62 flowRate_(ptf.flowRate_),
63 phiName_(ptf.phiName_),
64 rhoName_(ptf.rhoName_),
94 flowRate_(ptf.flowRate_),
95 phiName_(ptf.phiName_),
96 rhoName_(ptf.rhoName_),
110 flowRate_(ptf.flowRate_),
111 phiName_(ptf.phiName_),
112 rhoName_(ptf.rhoName_),
126 const scalar totArea =
gSum(patch().magSf());
128 const scalar avgU = -flowRate_/totArea;
130 const vector avgCenter =
gSum(patch().Cf()*patch().magSf())/totArea;
131 const vector avgNormal =
gSum(patch().Sf())/totArea;
137 * (patch().Cf() - avgCenter) ^ avgNormal
162 "swirlFlowRateInletVelocityFvPatchVectorField::updateCoeffs()"
163 ) <<
"dimensions of " << phiName_ <<
" are incorrect" <<
nl
164 <<
" on patch " << this->patch().name()
165 <<
" of field " << this->dimensionedInternalField().name()
166 <<
" in file " << this->dimensionedInternalField().objectPath()
181 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
182 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
184 writeEntry(
"value", os);