Removed unnecessary return statement
[foam-extend-3.2.git] / applications / solvers / incompressible / pimpleFoam / createFields.H
blobe4127150c0d8f3ffba6326ab3edd187434f94c98
1 Info<< "Reading field p\n" << endl;
2 volScalarField p
4     IOobject
5     (
6         "p",
7         runTime.timeName(),
8         mesh,
9         IOobject::MUST_READ,
10         IOobject::AUTO_WRITE
11     ),
12     mesh
15 Info<< "Reading field U\n" << endl;
16 volVectorField U
18     IOobject
19     (
20         "U",
21         runTime.timeName(),
22         mesh,
23         IOobject::MUST_READ,
24         IOobject::AUTO_WRITE
25     ),
26     mesh
29 #include "createPhi.H"
32 label pRefCell = 0;
33 scalar pRefValue = 0.0;
34 setRefCell(p, mesh.solutionDict().subDict("PIMPLE"), pRefCell, pRefValue);
37 singlePhaseTransportModel laminarTransport(U, phi);
39 autoPtr<incompressible::turbulenceModel> turbulence
41     incompressible::turbulenceModel::New(U, phi, laminarTransport)