readTurbulenceProperties.H 501 Bytes
Newer Older
shunbo's avatar
shunbo committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
    Info<< "Reading turbulenceProperties\n" << endl;

    IOdictionary turbulenceProperties
    (
        IOobject
        (
            "turbulenceProperties",
            runTime.constant(),
            mesh,
            IOobject::MUST_READ_IF_MODIFIED,
            IOobject::NO_WRITE
        )
    );

    volVectorField force
    (
        U/dimensionedScalar("dt", dimTime, runTime.deltaTValue())
    );

    Kmesh K(mesh);
    UOprocess forceGen(K, runTime.deltaTValue(), turbulenceProperties);