Merge branch 'master' of ssh://opencfd@repo.or.cz/srv/git/OpenFOAM-1.5.x
[OpenFOAM-1.5.x.git] / applications / test / LduMatrix / createFields.H
blobea64f13026b379739aa4d88f7f3f317c99c04f1d
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     );
21     Info<< "Reading field p\n" << endl;
22     volScalarField p
23     (
24         IOobject
25         (
26             "p",
27             runTime.timeName(),
28             mesh,
29             IOobject::MUST_READ,
30             IOobject::AUTO_WRITE
31         ),
32         mesh
33     );
36     Info<< "Reading field U\n" << endl;
37     volVectorField U
38     (
39         IOobject
40         (
41             "U",
42             runTime.timeName(),
43             mesh,
44             IOobject::MUST_READ,
45             IOobject::AUTO_WRITE
46         ),
47         mesh
48     );
51 #   include "createPhi.H"
54     label pRefCell = 0;
55     scalar pRefValue = 0.0;
56     setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);