createFields.H
Go to the documentation of this file.
1 Info<< "Reading field p\n" << endl;
2 volScalarField p
3 (
4  IOobject
5  (
6  "p",
7  runTime.timeName(),
8  mesh,
9  IOobject::MUST_READ,
10  IOobject::AUTO_WRITE
11  ),
12  mesh
13 );
14 
15 Info<< "Reading field U\n" << endl;
16 volVectorField U
17 (
18  IOobject
19  (
20  "U",
21  runTime.timeName(),
22  mesh,
23  IOobject::MUST_READ,
24  IOobject::AUTO_WRITE
25  ),
26  mesh
27 );
28 
29 #include "createPhi.H"
30 
31 singlePhaseTransportModel laminarTransport(U, phi);
32 
33 autoPtr<incompressible::turbulenceModel> turbulence
34 (
35  incompressible::turbulenceModel::New(U, phi, laminarTransport)
36 );
37 
38 
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)