createFields.H
Go to the documentation of this file.
1 Info<< "Reading thermophysical properties\n" << endl;
2 
3 autoPtr<psiThermo> pThermo
4 (
6 );
7 psiThermo& thermo = pThermo();
8 
9 volScalarField& e = thermo.he();
10 
11 Info<< "Reading field U\n" << endl;
13 (
14  IOobject
15  (
16  "U",
17  runTime.timeName(),
18  mesh,
19  IOobject::MUST_READ,
20  IOobject::AUTO_WRITE
21  ),
22  mesh
23 );
24 
26 (
27  IOobject
28  (
29  "rho",
30  runTime.timeName(),
31  mesh,
32  IOobject::NO_READ,
33  IOobject::AUTO_WRITE
34  ),
35  thermo.rho()
36 );
37 
38 volVectorField rhoU
39 (
40  IOobject
41  (
42  "rhoU",
43  runTime.timeName(),
44  mesh,
45  IOobject::NO_READ,
46  IOobject::NO_WRITE
47  ),
48  rho*U
49 );
50 
52 (
53  IOobject
54  (
55  "rhoE",
56  runTime.timeName(),
57  mesh,
58  IOobject::NO_READ,
59  IOobject::NO_WRITE
60  ),
61  rho*(e + 0.5*magSqr(U))
62 );
63 
65 (
66  IOobject
67  (
68  "pos",
69  runTime.timeName(),
70  mesh
71  ),
72  mesh,
73  dimensionedScalar("pos", dimless, 1.0)
74 );
75 
77 (
78  IOobject
79  (
80  "neg",
81  runTime.timeName(),
82  mesh
83  ),
84  mesh,
85  dimensionedScalar("neg", dimless, -1.0)
86 );
87 
88 surfaceScalarField phi("phi", fvc::flux(rhoU));
89 
90 Info<< "Creating turbulence model\n" << endl;
91 autoPtr<compressible::turbulenceModel> turbulence
92 (
94  (
95  rho,
96  U,
97  phi,
98  thermo
99  )
100 );
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
surfaceScalarField & phi
volScalarField & rhoE
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:253
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:55
dimensionedScalar neg(const dimensionedScalar &ds)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
rho
Definition: createFields.H:81
dimensionedScalar pos(const dimensionedScalar &ds)
dynamicFvMesh & mesh
volVectorField U(IOobject("U", runTime.timeName(), runTime, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedVector("zero", dimVelocity, Zero))
dimensioned< scalar > magSqr(const dimensioned< Type > &)
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:47
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
messageStream Info
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
Definition: fvcFlux.C:32
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Info<< "Reading thermophysical properties\n"<< endl;autoPtr< psiThermo > pThermo(psiThermo::New(mesh))