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<twoPhaseSystem> fluidPtr
8 (
10 );
11 twoPhaseSystem& fluid = fluidPtr();
12 
14 (
15  "pMin",
17  fluid
18 );
19 
20 #include "gh.H"
21 
22 volScalarField& p = fluid.phase1().thermo().p();
23 
24 Info<< "Reading field p_rgh\n" << endl;
26 (
27  IOobject
28  (
29  "p_rgh",
30  runTime.timeName(),
31  mesh,
32  IOobject::MUST_READ,
33  IOobject::AUTO_WRITE
34  ),
35  mesh
36 );
37 
38 label pRefCell = 0;
39 scalar pRefValue = 0.0;
41 (
42  p,
43  p_rgh,
44  pimple.dict(),
45  pRefCell,
46  pRefValue
47 );
48 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\"<< 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