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<multiphaseSystem> fluidPtr
7 (
9 );
10 multiphaseSystem& fluid = fluidPtr();
11 multiphaseSystem::phaseModelList& phases = fluid.phases();
12 
14 
16 (
17  "pMin",
19  fluid
20 );
21 
22 #include "gh.H"
23 
24 volScalarField& p = phases[0].thermo().p();
25 
26 Info<< "Reading field p_rgh\n" << endl;
28 (
29  IOobject
30  (
31  "p_rgh",
32  runTime.timeName(),
33  mesh,
34  IOobject::MUST_READ,
35  IOobject::AUTO_WRITE
36  ),
37  mesh
38 );
39 
40 label pRefCell = 0;
41 scalar pRefValue = 0.0;
43 (
44  p,
45  p_rgh,
46  pimple.dict(),
47  pRefCell,
48  pRefValue
49 );
50 mesh.setFluxRequired(p_rgh.name());
51 
52 const IOMRFZoneList& MRF = fluid.MRF();
53 fv::options& fvOptions = fluid.fvOptions();
pRefCell
label pRefCell
Definition: createFields.H:112
Foam::dimPressure
const dimensionSet dimPressure
gh.H
pRefValue
scalar pRefValue
Definition: createFields.H:113
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
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
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
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
Foam::surfaceScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Definition: surfaceFieldsFwd.H:52
readhRef.H
phases
multiphaseSystem::phaseModelList & phases
Definition: createFields.H:11
pimple
const dictionary & pimple
Definition: readFluidMultiRegionPIMPLEControls.H:1
p_rgh
volScalarField & p_rgh
Definition: setRegionFluidFields.H:31
fvOptions
fv::options & fvOptions
Definition: setRegionFluidFields.H:16