/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  14
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       dictionary;
    object      configDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

documentation
{
    docBrowser      "firefox";
    doxyDocDirs
    (
        "$WM_PROJECT_USER_DIR/html"
        "~OpenFOAM/html"
        "$WM_PROJECT_DIR/doc/Doxygen/html"
        "http://cpp.openfoam.org/v14"
    );
    doxySourceFileExt "_8C.html";
}

InfoSwitches
{
    writePrecision          6;
    writeJobControl         0;
    writeJobInfo            0;
    writeDictionaries       0;

    // Allow case-supplied C++ code (#codeStream, codedFixedValue)
    allowSystemOperations   1;
}

OptimisationSwitches
{
    // On NFS mounted file system: maximum wait for files to appear/get
    // updated. Set to 0 on distributed case.
    fileModificationSkew 10;

    //- Modification checking:
    //  - timeStamp         : use modification time on file
    //  - inotify           : use inotify framework
    //  - timeStampMaster   : do time stamp (and file reading) only on master.
    //  - inotifyMaster     : do inotify (and file reading) only on master.
    fileModificationChecking timeStampMaster;

    //- Parallel IO file handler
    //  uncollated (default), collated or masterUncollated
    fileHandler uncollated;

    //- collated: thread buffer size for queued file writes.
    //  If set to 0 or not sufficient for the file size threading is not used.
    //  Default: 2e9
    maxThreadFileBufferSize 2e9;

    //- masterUncollated: non-blocking buffer size.
    //  If the file exceeds this buffer size scheduled transfer is used.
    //  Default: 2e9
    maxMasterFileBufferSize 2e9;

    commsType       nonBlocking; // scheduled; // blocking;
    floatTransfer   0;
    nProcsSimpleSum 0;

    // Force dumping (at next timestep) upon signal (-1 to disable)
    writeNowSignal              -1; // 10; // SIGUSR1

    // Force dumping and exit (at next timestep) upon signal (-1 to disable)
    stopAtWriteNowSignal        -1; // 12; // SIGUSR2
}

DebugSwitches
{
    dimensionSet        1;
    fileName            2;
    GAMGAgglomeration   1;
    level               2;
    lduMatrix           1;
    SolverPerformance   1;
    vtkUnstructuredReader 1;
}

units
{
    set     SI;

    SI
    {
        kg      [1 0 0 0 0 0 0];
        m       [0 1 0 0 0 0 0];
        s       [0 0 1 0 0 0 0];
        K       [0 0 0 1 0 0 0];
        kmol    [0 0 0 0 1 0 0];
        A       [0 0 0 0 0 1 0];
        Cd      [0 0 0 0 0 0 1];
    }

    CGS
    {
        g       [1 0 0 0 0 0 0];
        cm      [0 1 0 0 0 0 0];
        s       [0 0 1 0 0 0 0];
        K       [0 0 0 1 0 0 0];
        mol     [0 0 0 0 1 0 0];
        A       [0 0 0 0 0 1 0];
        Cd      [0 0 0 0 0 0 1];
    }

    USCS
    {
        lb      [1 0 0 0 0 0 0];
        ft      [0 1 0 0 0 0 0];
        s       [0 0 1 0 0 0 0];
        R       [0 0 0 1 0 0 0];
        lbmol   [0 0 0 0 1 0 0];
        A       [0 0 0 0 0 1 0];
        Cd      [0 0 0 0 0 0 1];
    }

    // Conversions between fundamental units
    g       1e-3                [kg];
    lb      0.45359237          [kg];
    cm      1e-2                [m];
    ft      0.3048              [m];
    K       1.8                 [R];
    kmol    1000                [mol];
    lbmol   453.59237           [mol];

    // Derived units
    Hz      1                   [s^-1];
    N       1                   [kg m s^-2];
    pdl     1                   [lb ft s^-2];
    Pa      1                   [N m^-2];
    J       1                   [N m];
    W       1                   [J s^-1];
    V       1                   [W/A];

    // Scaled units
    um      1e-6                [m];
    mm      1e-3                [m];
    km      1e3                 [m];
    in      25.4                [mm];
    yd      3                   [ft];
    mi      1760                [yd];
    us      1e-6                [s];
    ms      1e-3                [s];
    min     60                  [s];
    hr      3600                [s];
    lbf     32.174049           [pdl];

    // Derived scaled units
    l       1e-3                [m^3];
    ml      1e-6                [m^3];
    rpm     1                   [rot/min];
    bar     1e5                 [Pa];
    atm     101325              [Pa];
    kPa     1e3                 [Pa];
    MPa     1e6                 [Pa];
    psi     1                   [lbf/in^2];
    cal     4.184               [J];
    kcal    4184                [J];
    cSt     1e-6                [m^2/s];
    cP      1e-3                [kg/m/s];
}

constants
{
    pStd    1e5                 [kg m^-1 s^-2];
    Tstd    298.15              [K];
}

// ************************************************************************* //
