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 volVectorField U(
7  IOobject(
8  "U",
9  mesh.time().timeName(),
10  mesh,
11  IOobject::NO_READ,
12  IOobject::NO_WRITE),
13  mesh,
14  dimensionedVector("U", dimensionSet(0, 1, -1, 0, 0, 0, 0), vector::zero),
15  zeroGradientFvPatchField<vector>::typeName);
16 
17 // need the p field for DATurbulenceModel
18 volScalarField p(
19  IOobject(
20  "p",
21  mesh.time().timeName(),
22  mesh,
23  IOobject::NO_READ,
24  IOobject::NO_WRITE),
25  mesh,
26  dimensionedScalar("p", dimensionSet(0, 2, -2, 0, 0, 0, 0), 0.0),
27  zeroGradientFvPatchField<scalar>::typeName);
28 
29 #include "createPhi.H"
30 
31 singlePhaseTransportModel laminarTransport(U, phi);
32 
33 autoPtr<incompressible::turbulenceModel> turbulence(
34  incompressible::turbulenceModel::New(U, phi, laminarTransport));
p
volScalarField & p
Definition: createFields.H:8
laminarTransport
singlePhaseTransportModel laminarTransport(U, phi)
runTime
Time & runTime
Definition: createFields.H:3
turbulence
autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
mesh
fvMesh & mesh
Definition: createFields.H:4
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)