/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     interFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         40;

deltaT          0.005;

writeControl    adjustableRunTime;

writeInterval   2;

purgeWrite      0;

writeFormat     ascii;

writePrecision  7;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

adjustTimeStep  on;

maxCo           0.2;

maxAlphaCo      0.2;

maxDeltaT       1;

writeIntervalProbes 100;


functions
{
	linesample //mesure the fields between the two points defined in the sets over Time (used for convergence analysis)
	//For hydraulics jump analysis, I use a second linesample downstream
	{
	
		type 			sets;
		libs			("libsampling.so");
		writeControl 		adjustableRunTime;
		writeInterval		2;
		
		interpolationScheme	cellPoint;
		
		setFormat		raw;
		
		sets
		(
			data
			{
				type	uniform;
				axis	xyz;
				start	(-4.5 0 0.5);
				end	(-4.5 4 0.5);
				nPoints 100;
		 	}
		);
		
		fields			(alpha.water);
		
		includeOutOfBounds	true;
	}
}
// ************************************************************************* //
