createFields.H
Go to the documentation of this file.
1Info<< "Reading thermophysical properties\n" << endl;
2
3autoPtr<fluidThermo> pThermo
4(
5 fluidThermo::New(mesh)
6);
7fluidThermo& thermo = pThermo();
8thermo.validate(args.executable(), "h", "e");
9
10volScalarField& p = thermo.p();
11
12volScalarField rho
13(
14 IOobject
15 (
16 "rho",
17 runTime.timeName(),
18 mesh,
19 IOobject::READ_IF_PRESENT,
20 IOobject::AUTO_WRITE
21 ),
22 thermo.rho()
23);
24
25Info<< "Reading 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
42
43mesh.setFluxRequired(p.name());
44
45Info<< "Creating turbulence model\n" << endl;
46autoPtr<compressible::turbulenceModel> turbulence
47(
48 compressible::turbulenceModel::New
49 (
50 rho,
51 U,
52 phi,
53 thermo
54 )
55);
56
57dimensionedScalar initialMass = fvc::domainIntegrate(rho);
58
59#include "createMRF.H"
60#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
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
const dictionary & simple
Foam::argList args(argc, argv)
Info<< "Reading thermophysical properties\n"<< endl;autoPtr< psiReactionThermo > pThermo(psiReactionThermo::New(mesh))
dimensionedScalar initialMass
Definition: createFields.H:57