createFields.H
Go to the documentation of this file.
1Info<< "Reading thermophysical properties\n" << endl;
2
3autoPtr<rhoThermo> pThermo(rhoThermo::New(mesh));
4rhoThermo& thermo = pThermo();
5thermo.validate(args.executable(), "h", "e");
6
7volScalarField rho
8(
9 IOobject
10 (
11 "rho",
12 runTime.timeName(),
13 mesh,
14 IOobject::NO_READ,
15 IOobject::NO_WRITE
16 ),
17 thermo.rho()
18);
19
20volScalarField& p = thermo.p();
21
22Info<< "Reading field U\n" << endl;
23volVectorField U
24(
25 IOobject
26 (
27 "U",
28 runTime.timeName(),
29 mesh,
30 IOobject::MUST_READ,
31 IOobject::AUTO_WRITE
32 ),
33 mesh
34);
35
37
38autoPtr<compressible::turbulenceModel> turbulence;
39
41(
42 "turbulenceProperties",
43 runTime.constant(),
44 mesh,
45 IOobject::MUST_READ_IF_MODIFIED,
46 IOobject::NO_WRITE,
47 false
48);
49
50if (turbulencePropertiesHeader.typeHeaderOk<IOdictionary>(false))
51{
52 Info<< "Creating turbulence model\n" << endl;
53
55 compressible::turbulenceModel::New
56 (
57 rho,
58 U,
59 phi,
60 thermo
61 );
62}
63
64#include "createDpdt.H"
65
66#include "createK.H"
67
69#include "createFvOptions.H"
surfaceScalarField & phi
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
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))
IOobject turbulencePropertiesHeader("turbulenceProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE, false)