createFields.H
Go to the documentation of this file.
1#include "createRDeltaT.H"
2#include "readGravitationalAcceleration.H"
3#include "readhRef.H"
4
5Info<< "Creating phaseSystem\n" << endl;
6
7autoPtr<twoPhaseSystem> fluidPtr
8(
9 twoPhaseSystem::New(mesh)
10);
11twoPhaseSystem& fluid = fluidPtr();
12
13dimensionedScalar pMin
14(
15 "pMin",
16 dimPressure,
17 fluid
18);
19
20#include "gh.H"
21
22volScalarField& p = fluid.phase1().thermoRef().p();
23
24Info<< "Reading field p_rgh\n" << endl;
25volScalarField p_rgh
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
38label pRefCell = 0;
39scalar pRefValue = 0.0;
41(
42 p,
43 p_rgh,
44 pimple.dict(),
47);
48mesh.setFluxRequired(p_rgh.name());
volScalarField & p_rgh
const scalar pRefValue
const label pRefCell
pimpleControl & pimple
twoPhaseSystem & fluid
const dimensionedScalar & pMin
volScalarField & p
dynamicFvMesh & mesh
engineTime & runTime
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:372
setRefCell(p, pimple.dict(), pRefCell, pRefValue)
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< multiphaseInter::multiphaseSystem > fluidPtr
Definition: createFields.H:66