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

application             interPhaseChangeFoam;

startFrom               latestTime;

startTime                0;

stopAt                  endTime;

endTime                0.0875;

deltaT                  0.0001;
writeControl            adjustableRunTime;

writeInterval           0.0001;

purgeWrite              20;

writeFormat             binary;

writePrecision          6;

writeCompression        off;

timeFormat              general;

runTimeModifiable       yes;

adjustTimeStep          on;

maxCo                   5;

maxAlphaCo              2;



functions
{
probes1
{
// Where to load it from
functionObjectLibs ( "libsampling.so" );

type        probes;

// Name of the directory for probe data
name        probes;

// Fields to be probed
fields (
        p 
         
       );

probeLocations
(
   (-0.1 0.0 0.03)
   (-0.1 0.2 0.03)
   (-0.1 -0.2 0.03)
   (-0.1 0.3 0.03)
   (-0.1 -0.3 0.03)         // at center of the motor bike mask
   
);
writeControl timeStep;
writeInterval 1;
}
probes2
{
// Where to load it from
functionObjectLibs ( "libsampling.so" );

type        probes;

// Name of the directory for probe data
name        probes;

// Fields to be probed
fields (
        p 
         
       );

probeLocations
(
   (0.0015708  0.002636  0.03)
   (0.0114743 0.0061422 0.03)
   (0.0206107 0.007214 0.03) 
   (0.0315938 0.0074934 0.03) 
   (0.05 0.0066077 0.03) 
   (0.0593691 0.005749 0.03) 
   (0.0684062 0.004737 0.03)
   (0.0938153 0.0010804 0.03)        // at center of the motor bike mask
   
);
writeControl timeStep;
writeInterval 1;
}
}

functions
{
forceCoeffsCyl
{
         // rhoInf - reference density
        // CofR - Centre of rotation
        // dragDir - Direction of drag coefficient
       // liftDir - Direction of lift coefficient
       // pitchAxis - Pitching moment axis
      // magUinf - free stream velocity magnitude
      // lRef - reference length
     // Aref - reference area
type forceCoeffs;
functionObjectLibs ("libforces.so");
        patches ("airfoil");
      pName p;
      Uname U;
      rhoName rhoInf;
      rhoInf 997;
//// Dump to file
log true;
       CofR (0.0 0 0);
      liftDir (0 1 0);
     dragDir (1 0 0);
     pitchAxis (0 0 1);
     magUInf 1.0;
     lRef 0.1;// reference enght
     Aref 1.0; // reference area 1 for 2d
    writeControl timeStep;
      writeInterval 1;
}
}

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