%% IMPACT model file

% Release
rRelease = 1.0;

% WEC type
iWecType = 4;

% Gravity
rGRAVITY = 9.81;

% Water density
rDENSITY = 1025;

% Floater

% Centre of gravity (from mean sea surface)
rCogFloater = -8;
% Body masses and Volume
rFloaterMass = 185000;
rFloaterVolume = 1782.93;

% Moment of Inertia
rFloaterIx = 5.3e+06;
rFloaterIy = 5.3e+06;
rFloaterIz = 8.8e+06;
arFloaterInertia = [5.3e+06 0 0;0 5.3e+06 0;0 0 8.8e+06];

% Additional damping
rAddedDampingBody1 = 0;
% Spar

% Centre of gravity (from mean sea surface)
rCogSpar = -36.6;

% Body masses and Volume
rSparMass = 1.3826e+07;

rSparVolume = 12500.7;

% Moment of Inertia
rSparIx = 2.9e+09;
rSparIy = 3e+09;
rSparIz = 5.9e+09;
arSparInertia = [2.9e+09 0 0;0 3e+09 0;0 0 5.9e+09];

% Additional damping
rAddedDampingBody2 = 0;

rTetherSpring = 500000;
rTetherPretension = 1.6113e+07;
rTetherLength0 = 20.165;

% Mooring
rMooringX = 20000;
rMooringY = 20000;
rMooringZ = 10000;

% Pto
s = tf('s');
tfPto = tf([ 1.000],[ 1.000]);

% Hydrodyanmics parameters
iBodyToBodyInteraction = 1;

% BEM .H5 file
stH5File = fullfile(matlabroot,'toolbox','IMPACT','demo','wec4','hydro','wec4.h5');