/*--------------------------------*- 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         1;

deltaT          0.01;

writeControl    adjustableRunTime;

writeInterval   0.1;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression uncompressed;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

adjustTimeStep      yes;

initDeltaT          yes;

maxCo               1.0;

functions 
(
    totalEnergy
    {
        type "totalenergy";

        functionObjectLibs
        (
            "libfamfunctions.so"
        );

        outputControl     outputTime;

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

        log on;
    }


    totalMomentum
    {
        type "totalmomentum";

        functionObjectLibs
        (
            "libfamfunctions.so"
        );

        outputControl     outputTime;

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

);

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