ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / applications / solvers / incompressible / simpleFoam / createFields.H
blob947da10c9d357a84850c37b2ae13f21ae9ab9499
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     );
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     );
29     #include "createPhi.H"
32     label pRefCell = 0;
33     scalar pRefValue = 0.0;
34     setRefCell(p, mesh.solutionDict().subDict("SIMPLE"), pRefCell, pRefValue);
36     singlePhaseTransportModel laminarTransport(U, phi);
38     autoPtr<incompressible::RASModel> turbulence
39     (
40         incompressible::RASModel::New(U, phi, laminarTransport)
41     );