createFields.H
Go to the documentation of this file.
1#include "createRDeltaT.H"
2
3Info<< "Reading thermophysical properties\n" << endl;
4
5autoPtr<fluidThermo> pThermo
6(
7 fluidThermo::New(mesh)
8);
9fluidThermo& thermo = pThermo();
10thermo.validate(args.executable(), "h", "e");
11
12volScalarField& p = thermo.p();
13
14volScalarField rho
15(
16 IOobject
17 (
18 "rho",
19 runTime.timeName(),
20 mesh,
21 IOobject::READ_IF_PRESENT,
22 IOobject::AUTO_WRITE
23 ),
24 thermo.rho()
25);
26
27Info<< "Reading field U\n" << endl;
28volVectorField U
29(
30 IOobject
31 (
32 "U",
33 runTime.timeName(),
34 mesh,
35 IOobject::MUST_READ,
36 IOobject::AUTO_WRITE
37 ),
38 mesh
39);
40
42
44
45mesh.setFluxRequired(p.name());
46
47Info<< "Creating turbulence model\n" << endl;
48autoPtr<compressible::turbulenceModel> turbulence
49(
50 compressible::turbulenceModel::New
51 (
52 rho,
53 U,
54 phi,
55 thermo
56 )
57);
58
59#include "createDpdt.H"
60
61#include "createK.H"
62
63#include "createMRF.H"
64
65const dimensionedScalar rhoMax("rhoMax", dimDensity, GREAT, pimple.dict());
66const dimensionedScalar rhoMin("rhoMin", dimDensity, Zero, pimple.dict());
67
68#include "createFvOptions.H"
surfaceScalarField & phi
pimpleControl & pimple
const word & executable() const noexcept
Name of executable without the path.
Definition: argListI.H:51
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
U
Definition: pEqn.H:72
volScalarField & p
Creates and initialises the face-flux field phi.
dynamicFvMesh & mesh
engineTime & runTime
const dimensionedScalar rhoMin
const dimensionedScalar rhoMax
const pressureControl & pressureControl
compressible::turbulenceModel & turbulence
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:372
Foam::argList args(argc, argv)
Info<< "Reading thermophysical properties\n"<< endl;autoPtr< psiReactionThermo > pThermo(psiReactionThermo::New(mesh))