/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | faSavageHutterFOAM                              |
|   \\  /    A nd           | Copyright (C) 2017 Matthias Rauter              |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application         faSavageHutterFoam;

startFrom           latestTime;

startTime           0;

stopAt              endTime;

endTime             15;

deltaT              0.1;

writeControl        adjustableRunTime;

writeInterval       0.5;

purgeWrite          0;

writeFormat         ascii;

writePrecision      6;

writeCompression    uncompressed;

timeFormat          general;

timePrecision       6;

runTimeModifiable   yes;

adjustTimeStep      yes;

initDeltaT          yes;

maxCo               1.;

functions 
(
    totalEnergy
    {
        type "totalenergy";

        functionObjectLibs
        (
            "libfamfunctions.so"
        );

        outputControl     outputTime;

        rho rho [ 1 -3  0 0 0 0 0 ] 1500.;
        
        tableOutPut "energy.csv";

        log on;
    }


    totalMomentum
    {
        type "totalmomentum";

        functionObjectLibs
        (
            "libfamfunctions.so"
        );

        outputControl     outputTime;

        rho rho [ 1 -3  0 0 0 0 0 ] 1500.;
        
        log on;
    }

);

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