createFields.H
Go to the documentation of this file.
1 autoPtr<fluidThermo> pThermo
2 (
3  fluidThermo::New(mesh)
4 );
5 fluidThermo& thermo = pThermo();
6 thermo.validate(args.executable(), "h", "e");
7 
8 volScalarField& p = thermo.p();
9 
10 volScalarField rho
11 (
12  IOobject
13  (
14  "rho",
15  runTime.timeName(),
16  mesh,
17  IOobject::READ_IF_PRESENT,
18  IOobject::AUTO_WRITE
19  ),
20  thermo.rho()
21 );
22 
23 Info<< "Reading field U\n" << endl;
24 volVectorField 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 
37 #include "compressibleCreatePhi.H"
38 
39 autoPtr<compressible::turbulenceModel> turbulence
40 (
41  compressible::turbulenceModel::New
42  (
43  rho,
44  U,
45  phi,
46  thermo
47  )
48 );
49 
50 
p
volScalarField & p
Definition: createFields.H:8
runTime
Time & runTime
Definition: createFields.H:3
turbulence
autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
pThermo
autoPtr< fluidThermo > pThermo(fluidThermo::New(mesh))
mesh
fvMesh & mesh
Definition: createFields.H:4
thermo
fluidThermo & thermo
Definition: createFields.H:7
phi
surfaceScalarField phi(IOobject("phi", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), linearInterpolate(rho *U) &mesh.Sf())
U
volVectorField U(IOobject("U", mesh.time().timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector("U", dimensionSet(0, 1, -1, 0, 0, 0, 0), vector::zero), zeroGradientFvPatchField< vector >::typeName)
rho
volScalarField rho(IOobject("rho", mesh.time().timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedScalar("rho", dimensionSet(1, -3, 0, 0, 0, 0, 0), 1.0), zeroGradientFvPatchField< scalar >::typeName)
args
Foam::argList & args
Definition: setRootCasePython.H:42