44 phi.boundaryFieldRef();
48 if (Ubf[patchi].fixesValue())
50 Ubf[patchi].initEvaluate();
56 if (Ubf[patchi].fixesValue())
60 phibf[patchi] = Ubf[patchi] &
mesh.Sf().boundaryField()[patchi];
74 const fvMesh&
mesh =
U.mesh();
78 volVectorField::Boundary& Ubf =
U.boundaryFieldRef();
79 surfaceScalarField::Boundary& phibf =
80 phi.boundaryFieldRef();
84 if (Ubf[patchi].fixesValue())
86 Ubf[patchi].initEvaluate();
92 if (Ubf[patchi].fixesValue())
94 Ubf[patchi].evaluate();
97 rho.boundaryField()[patchi]
100 &
mesh.Sf().boundaryField()[patchi]
void evaluate(const UPstream::commsTypes commsType=UPstream::defaultCommsType)
Evaluate boundary conditions for each patch field. Uses specified or default comms.
void correctUphiBCs(volVectorField &U, surfaceScalarField &phi)
If the mesh is moving correct the velocity BCs on the moving walls to.
GeometricField< vector, fvPatchField, volMesh > volVectorField
#define forAll(list, i)
Loop across all elements in list.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Mesh data needed to do the Finite Volume discretisation.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField