createFieldsPimpleDyM.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 
32 label pRefCell = 0;
33 scalar pRefValue = 0.0;
34 setRefCell(p, pimple.dict(), pRefCell, pRefValue);
35 mesh.setFluxRequired(p.name());
36 
37 
38 singlePhaseTransportModel laminarTransport(U, phi);
39 
40 autoPtr<incompressible::turbulenceModel> turbulence
41 (
42  incompressible::turbulenceModel::New(U, phi, laminarTransport)
43 );
44 
45 #include "createMRF.H"
46 #include "createFvOptions.H"
U
U
Definition: pEqnPimpleDyM.H:60
pRefValue
scalar & pRefValue
Definition: createRefsPimple.H:12
laminarTransport
singlePhaseTransportModel & laminarTransport
Definition: createRefsPimple.H:9
pRefCell
label & pRefCell
Definition: createRefsPimple.H:11
turbulence
Info<< "Reading field p\n"<< endl;volScalarField p(IOobject("p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\n"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);label pRefCell=0;scalar pRefValue=0.0;setRefCell(p, pimple.dict(), pRefCell, pRefValue);mesh.setFluxRequired(p.name());singlePhaseTransportModel laminarTransport(U, phi);autoPtr< incompressible::turbulenceModel > turbulence(incompressible::turbulenceModel::New(U, phi, laminarTransport))
p
volScalarField & p
Definition: createRefsPimple.H:6
pimple
pimpleControlDF & pimple
Definition: createRefsPimple.H:5
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
phi
surfaceScalarField & phi
Definition: createRefsPimple.H:8
runTime
Time & runTime
Definition: createRefsHeatTransfer.H:1