createFields.H
Go to the documentation of this file.
1 Info<< "Reading thermophysical properties\n" << endl;
2 
3 autoPtr<fluidThermo> pThermo(fluidThermo::New(mesh));
4 fluidThermo& thermo = pThermo();
5 thermo.validate(args.executable(), "h", "e");
6 
7 volScalarField& p = thermo.p();
8 
10 (
11  IOobject
12  (
13  "rho",
14  runTime.timeName(),
15  mesh,
16  IOobject::NO_READ,
17  IOobject::NO_WRITE
18  ),
19  thermo.rho()
20 );
21 
22 Info<< "Reading field U\n" << endl;
24 (
25  IOobject
26  (
27  "U",
28  runTime.timeName(),
29  mesh,
30  IOobject::MUST_READ,
31  IOobject::AUTO_WRITE
32  ),
33  mesh
34 );
35 
36 #include "compressibleCreatePhi.H"
37 
38 Info<< "Creating turbulence model\n" << endl;
39 autoPtr<compressible::momentumTransportModel> turbulence
40 (
42  (
43  rho,
44  U,
45  phi,
46  thermo
47  )
48 );
49 
50 Info<< "Creating thermophysical transport model\n" << endl;
51 autoPtr<fluidThermophysicalTransportModel> thermophysicalTransport
52 (
54 );
55 
56 
57 #include "readGravitationalAcceleration.H"
58 #include "readhRef.H"
59 #include "gh.H"
60 #include "readpRef.H"
61 
62 
63 Info<< "Reading field p_rgh\n" << endl;
65 (
66  IOobject
67  (
68  "p_rgh",
69  runTime.timeName(),
70  mesh,
71  IOobject::MUST_READ,
72  IOobject::AUTO_WRITE
73  ),
74  mesh
75 );
76 
78 (
79  p,
80  p_rgh,
81  simple.dict(),
82  thermo.incompressible()
83 );
84 
85 mesh.setFluxRequired(p_rgh.name());
86 
88 (
89  p_rgh,
90  p,
91  rho,
92  U,
93  gh,
94  ghf,
95  pRef,
96  thermo,
97  simple.dict()
98 );
99 
101 
102 #include "createMRF.H"
103 #include "createFvModels.H"
104 #include "createFvConstraints.H"
105 #include "checkRadiationModel.H"
volScalarField & p_rgh
const word & executable() const
Name of executable without the path.
Definition: argListI.H:36
Info<< "Reading thermophysical properties\"<< endl;autoPtr< fluidReactionThermo > pThermo(fluidReactionThermo::New(mesh))
pressureReference pressureReference(mixture.p(), p_rgh, pimple.dict(), false)
engineTime & runTime
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
dimensioned< Type > domainIntegrate(const GeometricField< Type, fvPatchField, volMesh > &vf)
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:58
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:57
rho
Definition: createFields.H:81
dynamicFvMesh & mesh
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
phi
Definition: correctPhi.H:3
void hydrostaticInitialisation(volScalarField &p_rgh, volScalarField &p, volScalarField &rho, const volVectorField &U, const volScalarField &gh, const surfaceScalarField &ghf, const uniformDimensionedScalarField &pRef, fluidThermo &thermo, const dictionary &dict)
Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::momentumTransportModel > turbulence(compressible::momentumTransportModel::New(rho, U, phi, thermo))
Definition: createFields.H:94
const surfaceScalarField & ghf
scalar pRef
Definition: createFields.H:6
Info<< "Creating thermophysical transport model\"<< endl;autoPtr< fluidThermophysicalTransportModel > thermophysicalTransport(fluidThermophysicalTransportModel::New(turbulence(), thermo))
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector(dimVelocity, Zero))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const volScalarField & gh
messageStream Info
Foam::argList args(argc, argv)
Creates and initialises the face-flux field phi.
simpleControl simple(mesh)