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().thermoRef().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());
runTime
engineTime & runTime
Definition: createEngineTime.H:13
Foam::dimPressure
const dimensionSet dimPressure
gh.H
p_rgh
p_rgh
Definition: createFields.H:95
createRDeltaT.H
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:369
setRefCell
setRefCell(p, pimple.dict(), pRefCell, pRefValue)
fluidPtr
Info<< "Reading field p_rgh\n"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\n"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field T\n"<< endl;volScalarField T(IOobject("T", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Calculating field g.h\n"<< endl;volScalarField p(IOobject("p", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), p_rgh);Info<< "Creating multiphaseSystem\n"<< endl;autoPtr< multiphaseSystem > fluidPtr
Definition: createFields.H:66
pimple
pimpleControl & pimple
Definition: setRegionFluidFields.H:56
Foam::Info
messageStream Info
Information stream (stdout output on master, null elsewhere)
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition: dimensionedScalarFwd.H:42
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:57
p
volScalarField & p
Definition: createFields.H:23
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::New
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
Definition: DimensionedFieldReuseFunctions.H:105
readhRef.H
pMin
dimensionedScalar pMin("pMin", dimPressure, fluid)
pRefCell
label pRefCell
Definition: createFields.H:75
pRefValue
scalar pRefValue
Definition: createFields.H:76
fluid
multiphaseSystem & fluid
Definition: createFields.H:68