BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / applications / solvers / incompressible / pimpleFoam / SRFPimpleFoam / createFields.H
bloba6cff20e14249006eca5ae86f7c20745b90e68d0
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 Urel\n" << endl;
16 volVectorField Urel
18     IOobject
19     (
20         "Urel",
21         runTime.timeName(),
22         mesh,
23         IOobject::MUST_READ,
24         IOobject::AUTO_WRITE
25     ),
26     mesh
29 Info<< "Reading/calculating face flux field phi\n" << endl;
30 surfaceScalarField phi
32     IOobject
33     (
34         "phi",
35         runTime.timeName(),
36         mesh,
37         IOobject::READ_IF_PRESENT,
38         IOobject::AUTO_WRITE
39     ),
40     linearInterpolate(Urel) & mesh.Sf()
43 label pRefCell = 0;
44 scalar pRefValue = 0.0;
45 setRefCell(p, mesh.solutionDict().subDict("PIMPLE"), pRefCell, pRefValue);
47 singlePhaseTransportModel laminarTransport(Urel, phi);
49 autoPtr<incompressible::turbulenceModel> turbulence
51     incompressible::turbulenceModel::New(Urel, phi, laminarTransport)
54 Info<< "Creating SRF model\n" << endl;
55 autoPtr<SRF::SRFModel> SRF
57     SRF::SRFModel::New(Urel)
60 // Create the absolute velocity
61 volVectorField U
63     IOobject
64     (
65         "U",
66         runTime.timeName(),
67         mesh,
68         IOobject::NO_READ,
69         IOobject::AUTO_WRITE
70     ),
71     Urel + SRF->U()