createFieldsTurbo.H
Go to the documentation of this file.
1 Info << "Reading thermophysical properties\n"
2  << endl;
3 
4 pThermoPtr_.reset(fluidThermo::New(mesh));
5 fluidThermo& thermo = pThermoPtr_();
6 thermo.validate(args.executable(), "h", "e");
7 
8 volScalarField& p = thermo.p();
9 
10 rhoPtr_.reset(
11  new volScalarField(
12  IOobject(
13  "rho",
14  runTime.timeName(),
15  mesh,
16  IOobject::READ_IF_PRESENT,
17  IOobject::AUTO_WRITE),
18  thermo.rho()));
19 volScalarField& rho = rhoPtr_();
20 
21 Info << "Reading field U\n"
22  << endl;
23 
24 UPtr_.reset(
25  new volVectorField(
26  IOobject(
27  "U",
28  runTime.timeName(),
29  mesh,
30  IOobject::MUST_READ,
31  IOobject::AUTO_WRITE),
32  mesh));
33 volVectorField& U = UPtr_();
34 
35 URelPtr_.reset(
36  new volVectorField(
37  IOobject(
38  "URel",
39  runTime.timeName(),
40  mesh,
41  IOobject::READ_IF_PRESENT,
42  IOobject::AUTO_WRITE),
43  U));
44 
46 
47 pressureControlPtr_.reset(new pressureControl(p, rho, simple.dict()));
48 
49 mesh.setFluxRequired(p.name());
50 
51 Info << "Creating turbulence model\n"
52  << endl;
53 
54 turbulencePtr_.reset(
55  compressible::turbulenceModel::New(
56  rho,
57  U,
58  phi,
59  thermo));
60 
61 initialMass_ = fvc::domainIntegrate(rho);
62 
63 // create MRF
64 MRFPtr_.reset(new IOMRFZoneListDF(mesh));
65 
U
U
Definition: pEqnPimpleDyM.H:60
pressureControl
pressureControl & pressureControl
Definition: createRefsRhoSimpleC.H:12
simple
simpleControl & simple
Definition: createRefsRhoSimpleC.H:5
compressibleCreatePhiPython.H
initialMass_
initialMass_
Definition: createRefsRhoSimpleC.H:13
p
volScalarField & p
Definition: createRefsPimple.H:6
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
phi
surfaceScalarField & phi
Definition: createRefsPimple.H:8
thermo
fluidThermo & thermo
Definition: createRefsRhoSimpleC.H:6
args
Foam::argList & args
Definition: setRootCasePython.H:42
runTime
Time & runTime
Definition: createRefsHeatTransfer.H:1
rho
volScalarField & rho
Definition: createRefsRhoSimpleC.H:8