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());
multiphaseSystem::phaseModelList & phases
Definition: createFields.H:12
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:531
multiphaseInter::multiphaseSystem & fluid
Definition: createFields.H:69
setRefCell(p, pimple.dict(), pRefCell, pRefValue)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
p_rgh
Definition: createFields.H:95
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:81
dynamicFvMesh & mesh
const dimensionSet dimPressure
pimpleControl & pimple
volScalarField & p
Definition: createFields.H:23
dimensionedScalar pMin("pMin", dimPressure, fluid)
label pRefCell
Definition: createFields.H:75
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Info<< "Reading field p_rgh\"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field T\"<< endl;volScalarField T(IOobject("T", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Calculating field g.h\"<< endl;volScalarField p(IOobject("p", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), p_rgh);Info<< "Creating multiphaseSystem\"<< endl;autoPtr< multiphaseInter::multiphaseSystem > fluidPtr
Definition: createFields.H:66
messageStream Info
Information stream (stdout output on master, null elsewhere)
scalar pRefValue
Definition: createFields.H:76