FoamFile
{
version         2.0;
format          ascii;

class           dictionary;
object          caseSetupDict;
}

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

regions (region0);

region0
{

modificationSwitches
{
resetInternalFields yes; //overwrite existing field internal values - yes/no
resetBoundaryFields yes; //overwrite exiting field boundaries - yes/no
resetSystemDicts yes; //write system dictionaries
resetConstDicts yes; //write constant dictionaries
resetBoundaryMesh yes; //applies boundary mesh modifications
deleteUnusedFields yes; //deletes files in target directory that are not 
                        //fields initialised by caseSetup
reuseExistingDicts no; //merge existing dictionaries instead of overwriting
}

boundaryMesh
{
partialNamed
{
    inlet{type inlet;}
    outlet{type outlet;}
    wall{type wall;}
}

exactNamed
{
    topAndBottom {type inlet;}
}

}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//

global
{
state 
(
    steady
    incompressible
    ras
);

turbulenceModel kOmegaSST;
materials (air);

materialProperties {}

fieldMaps{}

constant {}

system 
{
    controlDict
    {
        endTime         1000;
        writeInterval   100;
    }
}

}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//

fields
{

U{initialisation{type potentialFlow;}}

p{initialisation{type potentialFlow;}}

k{initialisation{type Prandtl;}}

omega{initialisation{type Prandtl;}}
}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//

boundaryConditions
{

regionDefaults
{
    wall 
        {
            p {type wallPressure;}
        }

        inlet {}
        outlet {}
        patch {}
    }

    partialNamed
    {
        outlet 
        {
            p {type fixedValue; value uniform 0;}
        }

	    inlet
        {
            U {type surfaceNormalFixedValue; value uniform (1 0 0); refValue uniform -1;}
            k {type fixedValue; value uniform 0.001;}
            omega {type fixedValue; value uniform 1000;}
	    }
    }

    exactNamed
	{
	}

}

functions
(
    /*
    vr1
    {
        type volumeReport;
        functionObjectLibs ( "libEngys.so" );
        fields (U p Ua_fdrag );
    }
*/
    forces
    {
        type                forces;
        functionObjectLibs  ( "libforces.so" );
        outputControl       timeStep;
        outputInterval      10;
        patches             (wing);
        pName               p;
        UName               U;
        rhoName             rhoInf;
        log                 true;
        rhoInf              1;
        CofR                (0.4974612746 -0.01671895744 0.125);
    }
);

}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//

include "$FOAM_CONFIG/caseSetupDict.defaults";

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