Go to the documentation of this file.
4 volVectorField::Boundary& bfld =
U.boundaryFieldRef();
7 if (bfld[patchi].fixesValue())
9 bfld[patchi].initEvaluate();
13 surfaceScalarField::Boundary& phiBfld =
phi.boundaryFieldRef();
16 if (bfld[patchi].fixesValue())
18 bfld[patchi].evaluate();
22 &
mesh.Sf().boundaryField()[patchi];
29 p_rgh.boundaryField().size(),
30 zeroGradientFvPatchScalarField::typeName
33 for (label i=0; i<
p_rgh.boundaryField().size(); i++)
35 if (
p_rgh.boundaryField()[i].fixesValue())
37 pcorrTypes[i] = fixedValueFvPatchScalarField::typeName;
71 while (
pimple.correctNonOrthogonal())
84 refCells[zoneId] == -1
85 &&
cellTypes[cellI] == cellCellStencil::CALCULATED
86 && refZones[zoneId] == -1
89 refCells[zoneId] = cellI;
90 refZones[zoneId] = zoneId;
101 DynamicList<label> validCells(refCells.size());
104 if (refCells[zoneId] != -1)
106 validCells.append(refCells[zoneId]);
110 pcorrEqn.setReferences
119 const dictionary& d =
mesh.solver
128 mesh.fvMesh::solve(pcorrEqn, d);
130 if (
pimple.finalNonOrthogonalIter())
132 phi -= pcorrEqn.flux();
dimensionedScalar rAUf("rAUf", dimTime, 1.0)
List< label > labelList
A List of labels.
bool adjustPhi(surfaceScalarField &phi, const volVectorField &U, volScalarField &p)
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)
void makeRelative(surfaceScalarField &phi, const volVectorField &U)
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)
void makeAbsolute(surfaceScalarField &phi, const volVectorField &U)
forAll(p.boundaryField(), patchi)
Type gMax(const FieldField< Field, Type > &f)