initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / applications / solvers / incompressible / icoFoam / createFields.H
blob6a7d6b9a80a6407871d5539d410e736177a1b770
1     Info<< "Reading transportProperties\n" << endl;
3     IOdictionary transportProperties
4     (
5         IOobject
6         (
7             "transportProperties",
8             runTime.constant(),
9             mesh,
10             IOobject::MUST_READ,
11             IOobject::NO_WRITE
12         )
13     );
15     dimensionedScalar nu
16     (
17         transportProperties.lookup("nu")
18     );
20     Info<< "Reading field p\n" << endl;
21     volScalarField p
22     (
23         IOobject
24         (
25             "p",
26             runTime.timeName(),
27             mesh,
28             IOobject::MUST_READ,
29             IOobject::AUTO_WRITE
30         ),
31         mesh
32     );
35     Info<< "Reading field U\n" << endl;
36     volVectorField U
37     (
38         IOobject
39         (
40             "U",
41             runTime.timeName(),
42             mesh,
43             IOobject::MUST_READ,
44             IOobject::AUTO_WRITE
45         ),
46         mesh
47     );
50 #   include "createPhi.H"
53     label pRefCell = 0;
54     scalar pRefValue = 0.0;
55     setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);