initCorrectPhi.H
Go to the documentation of this file.
1 tmp<volScalarField> rAU;
2 
4 {
5  rAU = new volScalarField
6  (
7  IOobject
8  (
9  "rAU",
10  runTime.timeName(),
11  mesh,
12  IOobject::READ_IF_PRESENT,
13  IOobject::AUTO_WRITE
14  ),
15  mesh,
17  );
18 
19  correctUphiBCs(U, phi, true);
20 
22  (
23  phi,
24  U,
25  p_rgh,
27  geometricZeroField(),
29  pimple
30  );
31 
32  #include "continuityErrs.H"
33 }
34 else
35 {
36  correctUphiBCs(U, phi, true);
37 
39  (
40  phi,
41  U,
42  p_rgh,
43  dimensionedScalar(dimTime/rho.dimensions(), 1),
44  geometricZeroField(),
46  pimple
47  );
48 
49  #include "continuityErrs.H"
50 }
pressureReference & pressureReference
volScalarField & p_rgh
pimpleNoLoopControl & pimple
U
Definition: pEqn.H:72
void correctUphiBCs(volVectorField &U, surfaceScalarField &phi, const bool evaluateUBCs)
If the mesh is moving correct the velocity BCs on the moving walls to.
correctPhi
fvMesh & mesh
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:58
const dimensionSet dimTime
CorrectPhi(phi, U, p_rgh, dimensionedScalar(dimTime/rho.dimensions(), 1), geometricZeroField(), pressureReference, pimple)
const dimensionSet dimDensity
phi
Definition: correctPhi.H:3
tmp< volScalarField > rAU
Definition: initCorrectPhi.H:1
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.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField