/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/

// This is a file to master the parameters

// 0.orig/U
TIStrengthMaster       0.0030;    //0.0017;

inletConditionMaster   "turbulentInlet";

//inletConditionMaster   "laminarInlet";

internalFieldMaster    uniform (11.4  0.0  0.0);


// system/fvOptions

turbineUporiginXMaster       0.0;

turbineUporiginMaster        ($turbineUporiginXMaster 0.0 0.0);
turbineUporiginOrigMaster    $turbineUporiginMaster;


//turbineDownoriginXMaster     378.0;    //3D
turbineDownoriginXMaster     630.0;    //3D

turbineDownoriginMaster      ($turbineDownoriginXMaster 0.0 0.0);
turbineDownoriginOrigMaster  $turbineDownoriginMaster;

motionUpMaster              "surgeInformation/Fixed";
motionDownMaster            "surgeInformation/Fixed";

epsilonFactorMaster        2.0;
tipSpeedRatioMaster        7.00;
rotorRadiusMaster          63.0;
freeStreamVelocityMaster   11.4;
HubOverhang                5.0;
NegativeHubHeight          -90.0;
HubHeight                  90.0;
tiltAngleMaster            0.0;
axisXMaster                0.9962;
axisZMaster                -0.0872;



upBlade1AziMaster          0.0;
upBlade2AziMaster          180.0;
upBlade3AziMaster          240.0;

FSVMasterDown              7.6; //[m/s]  (11.4 / 6 * 4)

downBlade1AziMaster        0.0;
downBlade2AziMaster        120.0;
downBlade3AziMaster        240.0;


controlModelMaster         0.0;     // 1 is with control 2 is without
// rotorMomentInertialMaster  38759228; //kgm^2 (from google but said by Jonkman) (parallel axis theorem gives similar value)

rotorMomentInertialMaster  43858351; //kgm^2 (calculated with doc, w/ gen) (parallel axis theorem gives similar value)





// topoSetDict

turbineUpp1Mater            -60.0;    
turbineUpp2Mater            60.0;


turbineDownp1Mater          570.0;
turbineDownp2Mater          690.0;


// system/controlDict

endTimeMaster          843.270;

purgeWriteMaster       25;

writeIntervalMaster    720;

funcStartMaster        347.228;
funcStopMaster         843.270;
intervalMaster         30;



surfaceStartMaster       347.228;    // 347.228;
surfaceEndMaster         843.270;
surfaceIntervalMaster    30;


checkPressureStartMaster     0;
checkPressureEndMaster       $endTimeMaster;
checkPressureIntervalMaster  105;


probingStartMaster       347.228;
probingEndMaster         $endTimeMaster;
probingIntervalMaster    1;


probingInflowStartMaster      100;
probingInflowEndMaster        300;
probingInflowIntervalMaster   1;


yPlaneForAvgStartMaster        347.228;
yPlaneForAvgEndMaster          843.270;
yPlaneForAvgIntervalMaster         30;

// phase locking

phaseLock000StartMaster       347.228;
phaseLock000EndMaster         843.270;
phaseLock000IntervalMaster    720;



phaseLock180StartMaster       349.708;
phaseLock180EndMaster         843.270;
phaseLock180IntervalMaster    $phaseLock000IntervalMaster;


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