createFields.H
Go to the documentation of this file.
1 #include "createRDeltaT.H"
2 #include "readGravitationalAcceleration.H"
3 #include "readhRef.H"
4 
5 Info<< "Creating phaseSystem\n" << endl;
6 
7 autoPtr<multiphaseSystem> fluidPtr
8 (
10 );
11 multiphaseSystem& fluid = fluidPtr();
12 multiphaseSystem::phaseModelList& phases = fluid.phases();
13 
15 (
16  "pMin",
18  fluid
19 );
20 
21 #include "gh.H"
22 
23 volScalarField& p = phases[0].thermoRef().p();
24 
25 Info<< "Reading field p_rgh\n" << endl;
27 (
28  IOobject
29  (
30  "p_rgh",
31  runTime.timeName(),
32  mesh,
33  IOobject::MUST_READ,
34  IOobject::AUTO_WRITE
35  ),
36  mesh
37 );
38 
39 label pRefCell = 0;
40 scalar pRefValue = 0.0;
42 (
43  p,
44  p_rgh,
45  pimple.dict(),
46  pRefCell,
47  pRefValue
48 );
49 mesh.setFluxRequired(p_rgh.name());
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
pimpleNoLoopControl & pimple
volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh)
setRefCell(p, p_rgh, pimple.dict(), pRefCell, pRefValue)
Info<< "Creating phaseSystem\"<< endl;autoPtr< multiphaseSystem > fluidPtr(multiphaseSystem::New(mesh))
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:256
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
dynamicFvMesh & mesh
const dimensionSet dimPressure
dimensionedScalar pMin("pMin", dimPressure, fluid)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
label pRefCell
Definition: createFields.H:106
messageStream Info
scalar pRefValue
Definition: createFields.H:107