Go to the documentation of this file.
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(),
27 zeroGradientFvPatchScalarField::typeName
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.append(refCells[zoneId]);
101 pcorrEqn.setReferences
109 const dictionary& d =
mesh.solver
117 mesh.fvMesh::solve(pcorrEqn, d);
119 if (
pimple.finalNonOrthogonalIter())
121 phi -= pcorrEqn.flux();
dimensionedScalar rAUf("rAUf", dimTime, 1.0)
List< label > labelList
A List of labels.
static constexpr const zero Zero
IOList< label > labelIOList
Label container classes.
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
const labelIOList & zoneIDs
volScalarField pcorr(IOobject("pcorr", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedScalar(p.dimensions(), Zero), pcorrTypes)
List< word > wordList
A List of words.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
fvMatrix< scalar > fvScalarMatrix
wordList pcorrTypes(p.boundaryField().size(), zeroGradientFvPatchScalarField::typeName)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
const cellCellStencilObject & overlap
const labelList & cellTypes
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
forAll(p.boundaryField(), patchi)
Type gMax(const FieldField< Field, Type > &f)