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 
18 volVectorField& U1 = phase1.U();
19 surfaceScalarField& phi1 = phase1.phi();
20 surfaceScalarField& alphaPhi1 = phase1.alphaPhi();
21 surfaceScalarField& alphaRhoPhi1 = phase1.alphaRhoPhi();
22 
23 volVectorField& U2 = phase2.U();
24 surfaceScalarField& phi2 = phase2.phi();
25 surfaceScalarField& alphaPhi2 = phase2.alphaPhi();
26 surfaceScalarField& alphaRhoPhi2 = phase2.alphaRhoPhi();
27 
28 surfaceScalarField& phi = fluid.phi();
29 
31 (
32  "pMin",
34  fluid
35 );
36 
37 #include "gh.H"
38 
39 rhoThermo& thermo1 = phase1.thermo();
40 rhoThermo& thermo2 = phase2.thermo();
41 
42 volScalarField& p = thermo1.p();
43 
44 volScalarField& rho1 = thermo1.rho();
45 const volScalarField& psi1 = thermo1.psi();
46 
47 volScalarField& rho2 = thermo2.rho();
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::IOoptionList& fvOptions = fluid.fvOptions();
phaseModel & phase1
Definition: createFields.H:12
const dimensionSet dimPressure
scalar pRefValue
Definition: createFields.H:113
phaseModel & phase2
Definition: createFields.H:13
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
setRefCell(p, p_rgh, pimple.dict(), pRefCell, pRefValue)
volScalarField & p_rgh
messageStream Info
dynamicFvMesh & mesh
const dictionary & pimple
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
Info<< "Creating phaseSystem\n"<< endl;autoPtr< multiphaseSystem > fluidPtr(multiphaseSystem::New(mesh))
label pRefCell
Definition: createFields.H:112
dimensionedScalar pMin("pMin", dimPressure, fluid)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.