createFields.H
Go to the documentation of this file.
1 #include "readGravitationalAcceleration.H"
2 #include "readhRef.H"
3 
4 Info<< "Creating phaseSystem\n" << endl;
5 
6 autoPtr<twoPhaseSystem> fluidPtr
7 (
9 );
10 twoPhaseSystem& fluid = fluidPtr();
11 
12 phaseModel& phase1 = fluid.phase1();
13 phaseModel& phase2 = fluid.phase2();
14 
17 
22 
27 
29 
31 (
32  "pMin",
34  fluid
35 );
36 
37 #include "gh.H"
38 
39 rhoThermo& thermo1 = phase1.thermo();
40 rhoThermo& thermo2 = phase2.thermo();
41 
43 
45 const volScalarField& psi1 = thermo1.psi();
46 
48 const volScalarField& psi2 = thermo2.psi();
49 
50 Info<< "Reading field p_rgh\n" << endl;
52 (
53  IOobject
54  (
55  "p_rgh",
56  runTime.timeName(),
57  mesh,
58  IOobject::MUST_READ,
59  IOobject::AUTO_WRITE
60  ),
61  mesh
62 );
63 
64 label pRefCell = 0;
65 scalar pRefValue = 0.0;
67 (
68  p,
69  p_rgh,
70  pimple.dict(),
71  pRefCell,
72  pRefValue
73 );
74 mesh.setFluxRequired(p_rgh.name());
75 
76 const IOMRFZoneList& MRF = fluid.MRF();
77 fv::options& fvOptions = fluid.fvOptions();
pRefCell
label pRefCell
Definition: createFields.H:112
U2
volVectorField & U2
Definition: createFields.H:23
Foam::dimPressure
const dimensionSet dimPressure
gh.H
rho1
const dimensionedScalar & rho1
Definition: createFields.H:39
thermo2
rhoThermo & thermo2
Definition: createFields.H:40
pRefValue
scalar pRefValue
Definition: createFields.H:113
rho2
const dimensionedScalar & rho2
Definition: createFields.H:40
Foam::compressible::New
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
Definition: turbulentFluidThermoModel.C:36
phi1
surfaceScalarField & phi1
Definition: createFields.H:19
fluid
multiphaseSystem & fluid
Definition: createFields.H:10
pMin
dimensionedScalar pMin("pMin", dimPressure, fluid)
setRefCell
setRefCell(p, p_rgh, pimple.dict(), pRefCell, pRefValue)
phi
surfaceScalarField & phi
Definition: createFields.H:13
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
alphaPhi1
surfaceScalarField & alphaPhi1
Definition: createFields.H:20
phi2
surfaceScalarField & phi2
Definition: createFields.H:24
psi2
const volScalarField & psi2
Definition: createFields.H:48
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
fluidPtr
Info<< "Creating phaseSystem\n"<< endl;autoPtr< multiphaseSystem > fluidPtr(multiphaseSystem::New(mesh))
Foam::Info
messageStream Info
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition: dimensionedScalarFwd.H:41
thermo1
rhoThermo & thermo1
Definition: createFields.H:39
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
p
volScalarField & p
Definition: createFields.H:51
MRF
IOMRFZoneList & MRF
Definition: setRegionFluidFields.H:15
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
U1
volVectorField & U1
Definition: createFields.H:18
alpha1
volScalarField & alpha1
Definition: createFields.H:15
Foam::volVectorField
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
alphaRhoPhi1
surfaceScalarField & alphaRhoPhi1
Definition: createFields.H:21
Foam::surfaceScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Definition: surfaceFieldsFwd.H:52
readhRef.H
alphaRhoPhi2
surfaceScalarField & alphaRhoPhi2
Definition: createFields.H:26
phase2
phaseModel & phase2
Definition: createFields.H:13
alphaPhi2
surfaceScalarField & alphaPhi2
Definition: createFields.H:25
pimple
const dictionary & pimple
Definition: readFluidMultiRegionPIMPLEControls.H:1
psi1
const volScalarField & psi1
Definition: createFields.H:45
p_rgh
volScalarField & p_rgh
Definition: setRegionFluidFields.H:31
alpha2
volScalarField & alpha2
Definition: createFields.H:16
fvOptions
fv::options & fvOptions
Definition: setRegionFluidFields.H:16
phase1
phaseModel & phase1
Definition: createFields.H:12