25 const word objFuncName,
26 const word objFuncPart,
27 const dictionary& objFuncDict)
37 daTurb_(
daModel.getDATurbulenceModel())
54 FatalErrorIn(
" ") <<
"the magnitude of the axis parameter in "
55 << objFuncName <<
" " << objFuncPart <<
" is not 1.0!"
71 if (
mesh_.thisDb().foundObject<volScalarField>(
"p_rgh"))
75 #ifdef IncompressibleFlow
83 #ifdef CompressibleFlow
87 {
"U",
"nut",
"T", pName},
97 const labelList& objFuncFaceSources,
98 const labelList& objFuncCellSources,
99 scalarList& objFuncFaceValues,
100 scalarList& objFuncCellValues,
101 scalar& objFuncValue)
129 forAll(objFuncFaceValues, idxI)
131 objFuncFaceValues[idxI] = 0.0;
136 const objectRegistry& db =
mesh_.thisDb();
137 const volScalarField&
p = db.lookupObject<volScalarField>(
"p");
139 const surfaceVectorField::Boundary& Sfb =
mesh_.Sf().boundaryField();
142 const volSymmTensorField::Boundary& devRhoReffb = tdevRhoReff().boundaryField();
145 forAll(objFuncFaceSources, idxI)
147 const label& objFuncFaceI = objFuncFaceSources[idxI];
153 vector fN(Sfb[patchI][faceI] *
p.boundaryField()[patchI][faceI]);
155 vector fT(Sfb[patchI][faceI] & devRhoReffb[patchI][faceI]);
161 objFuncValue += objFuncFaceValues[idxI];
165 scalar& omega =
const_cast<scalar&
>(
MRF.getOmegaRef());
166 objFuncValue *= omega;
169 reduce(objFuncValue, sumOp<scalar>());