createFieldsPiso.H
Go to the documentation of this file.
1 Info << "Reading field p\n"
2  << endl;
3 pPtr_.reset(
4  new volScalarField(
5  IOobject(
6  "p",
7  runTime.timeName(),
8  mesh,
9  IOobject::MUST_READ,
10  IOobject::AUTO_WRITE),
11  mesh));
12 volScalarField& p = pPtr_();
13 
14 Info << "Reading field U\n"
15  << endl;
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 #include "createPhiPython.H"
28 
29 // actuator related stuff
30 Info << "Creating source term. " << endl;
31 fvSourcePtr_.reset(
32  new volVectorField(
33  IOobject(
34  "fvSource",
35  runTime.timeName(),
36  mesh,
37  IOobject::NO_READ,
38  IOobject::AUTO_WRITE),
39  mesh,
40  dimensionedVector("fvSource", dimensionSet(0, 1, -2, 0, 0, 0, 0), vector::zero),
41  zeroGradientFvPatchField<vector>::typeName));
42 volVectorField& fvSource = fvSourcePtr_();
43 
44 setRefCell(p, piso.dict(), pRefCell_, pRefValue_);
45 mesh.setFluxRequired(p.name());
46 
47 laminarTransportPtr_.reset(
48  new singlePhaseTransportModel(U, phi));
49 singlePhaseTransportModel& laminarTransport = laminarTransportPtr_();
50 
51 turbulencePtr_.reset(
52  incompressible::turbulenceModel::New(U, phi, laminarTransport));
U
U
Definition: pEqnPimpleDyM.H:60
laminarTransport
singlePhaseTransportModel & laminarTransport
Definition: createRefsPimple.H:9
fvSource
volScalarField & fvSource
Definition: createRefsHeatTransfer.H:7
piso
pisoControl & piso
Definition: createRefsPiso.H:5
p
volScalarField & p
Definition: createRefsPimple.H:6
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
phi
surfaceScalarField & phi
Definition: createRefsPimple.H:8
createPhiPython.H
runTime
Time & runTime
Definition: createRefsHeatTransfer.H:1