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 
13 (
14  "pMin",
16  fluid
17 );
18 
19 #include "gh.H"
20 
21 volScalarField& p = fluid.phase1().thermo().p();
22 
23 Info<< "Reading field p_rgh\n" << endl;
25 (
26  IOobject
27  (
28  "p_rgh",
29  runTime.timeName(),
30  mesh,
31  IOobject::MUST_READ,
32  IOobject::AUTO_WRITE
33  ),
34  mesh
35 );
36 
37 label pRefCell = 0;
38 scalar pRefValue = 0.0;
40 (
41  p,
42  p_rgh,
43  pimple.dict(),
44  pRefCell,
45  pRefValue
46 );
47 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
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\n"<< endl;autoPtr< multiphaseSystem > fluidPtr(multiphaseSystem::New(mesh))
const dictionary & pimple
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:253
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