createFieldsScalarTransport.H
Go to the documentation of this file.
1 Info << "Reading field T\n"
2  << endl;
3 TPtr_.reset(
4  new volScalarField(
5  IOobject(
6  "T",
7  runTime.timeName(),
8  mesh,
9  IOobject::MUST_READ,
10  IOobject::AUTO_WRITE),
11  mesh));
12 
13 Info << "Reading field U\n"
14  << endl;
15 
16 UPtr_.reset(
17  new volVectorField(
18  IOobject(
19  "U",
20  runTime.timeName(),
21  mesh,
22  IOobject::MUST_READ,
23  IOobject::AUTO_WRITE),
24  mesh));
25 volVectorField& U = UPtr_();
26 
27 Info << "Reading transportProperties\n"
28  << endl;
29 
30 IOdictionary transportProperties(
31  IOobject(
32  "transportProperties",
33  runTime.constant(),
34  mesh,
35  IOobject::MUST_READ,
36  IOobject::NO_WRITE));
37 
38 Info << "Reading diffusivity DT\n"
39  << endl;
40 
41 DTPtr_.reset(
42  new dimensionedScalar(
43  "DT",
44  dimViscosity,
45  transportProperties));
46 
47 Info << "Reading/calculating face flux field phi\n"
48  << endl;
49 
50 phiPtr_.reset(
51  new surfaceScalarField(
52  IOobject(
53  "phi",
54  runTime.timeName(),
55  mesh,
56  IOobject::READ_IF_PRESENT,
57  IOobject::AUTO_WRITE),
58  fvc::flux(U)));
U
U
Definition: pEqnPimpleDyM.H:60
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
runTime
Time & runTime
Definition: createRefsHeatTransfer.H:1