createFields.H
Go to the documentation of this file.
1 // add dummy U, phi, and laminarTransport
2 
3 Time& runTime = runTimePtr_();
4 fvMesh& mesh = meshPtr_();
5 
6 autoPtr<fluidThermo> pThermo(fluidThermo::New(mesh));
7 fluidThermo& thermo = pThermo();
8 
9 volScalarField rho(
10  IOobject(
11  "rho",
12  mesh.time().timeName(),
13  mesh,
14  IOobject::NO_READ,
15  IOobject::NO_WRITE),
16  mesh,
17  dimensionedScalar("rho", dimensionSet(1, -3, 0, 0, 0, 0, 0), 1.0),
18  zeroGradientFvPatchField<scalar>::typeName);
19 
20 volVectorField U(
21  IOobject(
22  "U",
23  mesh.time().timeName(),
24  mesh,
25  IOobject::NO_READ,
26  IOobject::NO_WRITE),
27  mesh,
28  dimensionedVector("U", dimensionSet(0, 1, -1, 0, 0, 0, 0), vector::zero),
29  zeroGradientFvPatchField<vector>::typeName);
30 
31 // need the p field for DATurbulenceModel
32 volScalarField p(
33  IOobject(
34  "p",
35  mesh.time().timeName(),
36  mesh,
37  IOobject::NO_READ,
38  IOobject::NO_WRITE),
39  mesh,
40  dimensionedScalar("p", dimensionSet(1, -1, -2, 0, 0, 0, 0), 101325.0),
41  zeroGradientFvPatchField<scalar>::typeName);
42 
43 surfaceScalarField phi(
44  IOobject(
45  "phi",
46  runTime.timeName(),
47  mesh,
48  IOobject::READ_IF_PRESENT,
49  IOobject::AUTO_WRITE),
50  linearInterpolate(rho* U) & mesh.Sf());
51 
52 autoPtr<compressible::turbulenceModel> turbulence(
53  compressible::turbulenceModel::New(
54  rho,
55  U,
56  phi,
57  thermo));
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)