createFields.H
Go to the documentation of this file.
1Info<< "Reading thermophysical properties\n" << endl;
2
3autoPtr<psiThermo> pThermo
4(
5 psiThermo::New(mesh)
6);
7psiThermo& thermo = pThermo();
8thermo.validate(args.executable(), "h", "e");
9
10volScalarField rho
11(
12 IOobject
13 (
14 "rho",
15 runTime.timeName(),
16 mesh,
17 IOobject::NO_READ,
18 IOobject::AUTO_WRITE
19 ),
20 thermo.rho()
21);
22
23volScalarField& p = thermo.p();
24
25Info<< "\nReading field U\n" << endl;
26volVectorField U
27(
28 IOobject
29 (
30 "U",
31 runTime.timeName(),
32 mesh,
33 IOobject::MUST_READ,
34 IOobject::AUTO_WRITE
35 ),
36 mesh
37);
38
40
41
42Info<< "Creating turbulence model\n" << endl;
43autoPtr<compressible::turbulenceModel> turbulence
44(
45 compressible::turbulenceModel::New
46 (
47 rho,
48 U,
49 phi,
50 thermo
51 )
52);
53
54#include "createDpdt.H"
55
56#include "createK.H"
57
58#include "createMRF.H"
59#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))