correctPhi.H
Go to the documentation of this file.
1 // Calculate absolute flux
2 // from the mapped surface velocity
3 phi = mesh.Sf() & Uf();
4 
5 correctUphiBCs(U, phi, true);
6 
7 if (divU.valid())
8 {
10  (
11  phi,
12  U,
13  p_rgh,
15  divU(),
17  pimple
18  );
19 }
20 else
21 {
23  (
24  phi,
25  U,
26  p_rgh,
28  geometricZeroField(),
30  pimple
31  );
32 }
33 
34 #include "continuityErrs.H"
35 
36 // Make the flux relative to the mesh motion
pressureReference & pressureReference
volScalarField & p_rgh
pimpleNoLoopControl & pimple
dynamicFvMesh & mesh
phi
Definition: correctPhi.H:3
autoPtr< surfaceVectorField > Uf
tmp< volScalarField > divU
Definition: alphaSuSp.H:9
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
CorrectPhi(phi, p, rho, psi, dimensionedScalar("rAUf", dimTime, 1), divrhoU(), pimple)
correctUphiBCs(rho, U, phi, true)
U
Definition: pEqn.H:72
tmp< volScalarField > rAU
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
void makeRelative(surfaceScalarField &phi, const volVectorField &U)
Make the given flux relative.
Definition: fvcMeshPhi.C:75