Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / applications / solvers / solidMechanics / deprecatedSolvers / icoFsiFoam / createFields.H
blob0e1e4a7013aa0b6337689d6c2fb8b8b63251a6c7
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     dimensionedScalar rhoFluid
21     (
22         transportProperties.lookup("rho")
23     );
26     Info<< "Reading field p\n" << endl;
27     volScalarField p
28     (
29         IOobject
30         (
31             "p",
32             runTime.timeName(),
33             mesh,
34             IOobject::MUST_READ,
35             IOobject::AUTO_WRITE
36         ),
37         mesh
38     );
41     Info<< "Reading field U\n" << endl;
42     volVectorField U
43     (
44         IOobject
45         (
46             "U",
47             runTime.timeName(),
48             mesh,
49             IOobject::MUST_READ,
50             IOobject::AUTO_WRITE
51         ),
52         mesh
53     );
55 #   include "createPhi.H"
57     label pRefCell = 0;
58     scalar pRefValue = 0.0;
59     setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);