createFields.H
Go to the documentation of this file.
1 autoPtr<fluidThermo> pThermo(
2  fluidThermo::New(mesh));
3 fluidThermo& thermo = pThermo();
4 thermo.validate(args.executable(), "h", "e");
5 
6 volScalarField& p = thermo.p();
7 
8 volScalarField rho(
9  IOobject(
10  "rho",
11  runTime.timeName(),
12  mesh,
13  IOobject::READ_IF_PRESENT,
14  IOobject::AUTO_WRITE),
15  thermo.rho());
16 
17 Info << "Reading field U\n"
18  << endl;
19 volVectorField U(
20  IOobject(
21  "U",
22  runTime.timeName(),
23  mesh,
24  IOobject::MUST_READ,
25  IOobject::AUTO_WRITE),
26  mesh);
27 
28 Info << "Reading field nut\n"
29  << endl;
30 volScalarField nut(
31  IOobject(
32  "nut",
33  runTime.timeName(),
34  mesh,
35  IOobject::MUST_READ,
36  IOobject::AUTO_WRITE),
37  mesh);
38 
39 volScalarField nuEff = nut + thermo.nu();
40 
41 #include "compressibleCreatePhi.H"
U
volVectorField & U
Definition: createRefsPimpleDyM.H:7
p
volScalarField & p
Definition: createFields.H:6
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
thermo
fluidThermo & thermo
Definition: createFields.H:3
rho
volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), thermo.rho())
pThermo
autoPtr< fluidThermo > pThermo(fluidThermo::New(mesh))
args
Foam::argList & args
Definition: setRootCasePython.H:42
runTime
Time & runTime
Definition: createRefsHeatTransfer.H:1