createFields.H 853 Bytes
Newer Older
Henry's avatar
Henry committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    Info<< "Reading field p\n" << endl;
    volScalarField p
    (
        IOobject
        (
            "p",
            runTime.timeName(),
            mesh,
            IOobject::MUST_READ,
            IOobject::AUTO_WRITE
        ),
        mesh
    );

    Info<< "Reading field U\n" << endl;
    volVectorField U
    (
        IOobject
        (
            "U",
            runTime.timeName(),
            mesh,
            IOobject::MUST_READ,
            IOobject::AUTO_WRITE
        ),
        mesh
    );

    #include "createPhi.H"


    label pRefCell = 0;
    scalar pRefValue = 0.0;
34
    setRefCell(p, simple.dict(), pRefCell, pRefValue);
Henry's avatar
Henry committed
35

36

Henry's avatar
Henry committed
37
38
    singlePhaseTransportModel laminarTransport(U, phi);

39
    autoPtr<incompressible::turbulenceModel> turbulence
Henry's avatar
Henry committed
40
    (
41
        incompressible::turbulenceModel::New(U, phi, laminarTransport)
Henry's avatar
Henry committed
42
    );