initCorrectPhi.H
Go to the documentation of this file.
1 if
2 (
3  !runTime.restart()
4  || isType<twoPhaseChangeModels::noPhaseChange>(phaseChange)
5 )
6 {
7  if (correctPhi)
8  {
9  rAU = new volScalarField
10  (
11  IOobject
12  (
13  "rAU",
14  runTime.timeName(),
15  mesh,
16  IOobject::READ_IF_PRESENT,
17  IOobject::AUTO_WRITE
18  ),
19  mesh,
21  );
22 
23  correctUphiBCs(U, phi, true);
24 
26  (
27  phi,
28  U,
29  p_rgh,
31  geometricZeroField(),
33  pimple
34  );
35  }
36  else
37  {
38  correctUphiBCs(U, phi, true);
39 
41  (
42  phi,
43  U,
44  p_rgh,
45  dimensionedScalar(dimTime/rho.dimensions(), 1),
46  geometricZeroField(),
48  pimple
49  );
50  }
51 }
52 
53 #include "continuityErrs.H"
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.
twoPhaseChangeModel & phaseChange
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