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(), "e");
9
10volScalarField& p = thermo.p();
11
12volScalarField rho
13(
14 IOobject
15 (
16 "rho",
17 runTime.timeName(),
18 mesh
19 ),
20 thermo.rho()
21);
22
23Info<< "Reading field U\n" << endl;
24volVectorField U
25(
26 IOobject
27 (
28 "U",
29 runTime.timeName(),
30 mesh,
31 IOobject::MUST_READ,
32 IOobject::AUTO_WRITE
33 ),
34 mesh
35);
36
38
39mesh.setFluxRequired(p.name());
40
41Info<< "Creating turbulence model\n" << endl;
42autoPtr<compressible::turbulenceModel> turbulence
43(
44 compressible::turbulenceModel::New
45 (
46 rho,
47 U,
48 phi,
49 thermo
50 )
51);
52
53#include "createK.H"
54
55#include "createMRF.H"
56#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))