3 volVectorField::Boundary& bfld =
U.boundaryFieldRef();
6 if (bfld[patchi].fixesValue())
8 bfld[patchi].initEvaluate();
12 surfaceScalarField::Boundary& phiBfld =
phi.boundaryFieldRef();
15 if (bfld[patchi].fixesValue())
17 bfld[patchi].evaluate();
19 phiBfld[patchi] = bfld[patchi] &
mesh.Sf().boundaryField()[patchi];
26 p.boundaryField().size(),
33 if (
p.boundaryField()[patchi].fixesValue())
35 pcorrTypes[patchi] = fixedValueFvPatchScalarField::typeName;
61 while (
pimple.correctNonOrthogonal())
74 refCells[zoneId] == -1
75 &&
cellTypes[cellI] == cellCellStencil::CALCULATED
76 && refZones[zoneId] == -1
79 refCells[zoneId] = cellI;
80 refZones[zoneId] = zoneId;
92 DynamicList<label> validCells(refCells.size());
95 if (refCells[zoneId] != -1)
97 validCells.push_back(refCells[zoneId]);
101 pcorrEqn.setReferences
117 mesh.fvMesh::solve(pcorrEqn, d);
119 if (
pimple.finalNonOrthogonalIter())
121 phi -= pcorrEqn.flux();
fvMatrix< scalar > fvScalarMatrix
const labelIOList & zoneIDs
volScalarField pcorr(IOobject("pcorr", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedScalar(p.dimensions(), Zero), pcorrTypes)
wordList pcorrTypes(p.boundaryField().size(), fvPatchFieldBase::zeroGradientType())
const word zeroGradientType
A zeroGradient patch field type.
const labelList & cellTypes
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
forAll(p.boundaryField(), patchi)
dimensionedScalar rAUf("rAUf", dimTime, 1.0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
IOList< label > labelIOList
IO for a List of label.
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
const cellCellStencilObject & overlap
Type gMax(const FieldField< Field, Type > &f)
List< word > wordList
List of word.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
List< label > labelList
A List of labels.
static constexpr const zero Zero
Global zero (0)