Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/Additional Numerical Models/TEAMERLUPA2_inf_depth_20m/TwoBodySixDOF

This file was deleted.

12 changes: 6 additions & 6 deletions LUPATEAMER2 Fall 2023/TwoBodySixDOF/wecSimInputFile.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%
% Depth is set at 3.69 m
%
% Updated by: Hannah Mankle 6/3/2025
% Updated by: Hannah Mankle 9/3/2025


%% Simulation Data
Expand Down Expand Up @@ -48,10 +48,8 @@
body(2).mass = 202.21; % [kg] Positively bouyant spar.
body(2).viz.color = [211/256 211/256 211/256];
body(2).inertia = [304.786 305.250 15.775]; % [kg-m^2] As measured from dry swing tests
% body(2).initial.axis = [1 1 0];
% body(2).initial.angle = -0.0010;
% body(2).linearDamping(4,4) = 3;
% body(2).linearDamping(5,5) = 3;
body(2).linearDamping(4,4) = 200; % Linear damping to help stablize model at beginning of simulation
body(2).linearDamping(5,5) = 200;
body(2).quadDrag.cd = [0.6 0.6 2.8 0.6 0.6 2.8]; % [-] Quadratic drag coefficient Cd as found from Beatty 2015 and Singh & Mittal 2005
body(2).quadDrag.area = [0.546 0.546 0.636 0.546 0.546 0.636]; % [m^2] Characteristic area in relevant plane
body(2).setInitDisp([0 0 0],[0 0 0 0],[0 0 -0.42]); % [m] Initial Displacement Set to engage mooring lines for pre-tension.
Expand All @@ -67,8 +65,10 @@
pto(1) = ptoClass('PTO1'); % Initialize PTO Class for PTO1
pto(1).stiffness = 0; % [N/m] PTO Stiffness
pto(1).damping = 0; % [N/(m/s)] PTO Damping Typical values fall between 0-10,000 N/(m/s)
ptoDampingLoss = -350; % [N/m/s] Linear damping Found experimentally through free decay tests. It is negative because it is a electromechanical loss.
ptoDampingLoss = 900; % [N/m/s]
pto(1).location = [0 0 0]; % [m] PTO Location
pto(1).equilibriumPosition = -0.42; % [m] initial PTO location, coresponses with spar displacement & needed if model is using stiffness terms.


%% Mooring Matrix
R = 0.325; % [m] Radius of mooring plate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
% Heave plate diameter is 0.9 m
% Depth is set at 2.78 m
%
% Updated by: Hannah Mankle 6/6/2025
% Updated by: Hannah Mankle 9/3/2025


%% Simulation Data
Expand Down Expand Up @@ -51,16 +51,11 @@
body(2).mass = 202.21; % [kg] Positively bouyant spar.
body(2).viz.color = [211/256 211/256 211/256];
body(2).inertia = [304.786 305.250 15.775]; % [kg-m^2] As measured from dry swing tests
% body(2).initial.axis = [1 1 0];
% body(2).initial.angle = -0.0010;
% body(2).linearDamping(4,4) = 3;
% body(2).linearDamping(5,5) = 3;
body(2).linearDamping(3,3) = 700;
body(2).quadDrag.cd = [0.6 0.6 2.8 0.6 0.6 2.8]; % [-] Quadratic drag coefficient Cd as found from Beatty 2015 and Singh & Mittal 2005
body(2).quadDrag.area = [0.546 0.546 0.636 0.546 0.546 0.636]; % [m^2] Characteristic area in relevant plane
body(2).setInitDisp([0 0 0],[0 0 0 0],[0 0 -0.42]); % [m] Initial Displacement Set to engage mooring lines for pre-tension.

% add linear damping to pitch and roll

%% PTO and Constraint Parameters
% Translational Joint
constraint(1) = constraintClass('Constraint1'); % Initialize Constraint Class for Constraint1
Expand All @@ -70,8 +65,9 @@
pto(1) = ptoClass('PTO1'); % Initialize PTO Class for PTO1
pto(1).stiffness = 0; % [N/m] PTO Stiffness
pto(1).damping = 0; % [N/(m/s)] PTO Damping Typical values fall between 0-10,000 N/(m/s)
ptoDampingLoss = -350; % [N/m/s] Linear damping Found experimentally through free decay tests. It is negative because it is a electromechanical loss.
ptoDampingLoss = -900; % [N/m/s] Linear damping Found experimentally through free decay tests. It is negative because it is a electromechanical loss.
pto(1).location = [0 0 0]; % [m] PTO Location
% pto(1).location = -0.42; % [m] initial PTO location, coresponses with spar displacement & needed if model is using stiffness terms.

%% Mooring Matrix
R = 0.325; % [m] Radius of mooring plate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
% Heave plate diameter is 1.14 m
% Depth is set at 2.78 m
%
% Updated by: Hannah Mankle 6/6/2025
% Updated by: Hannah Mankle 9/3/2025

%% Simulation Data
simu=simulationClass();
Expand Down Expand Up @@ -43,6 +43,7 @@
body(2).mass = 202.21; % [kg] Positively bouyant spar.
body(2).viz.color = [211/256 211/256 211/256];
body(2).inertia = [304.786 305.250 15.775]; % [kg-m^2] As measured from dry swing tests
body(2).linearDamping(3,3) = 700; % Based on 0.9 m heave plate, value may need to be changed
body(2).quadDrag.cd = [0.6 0.6 2.8 0.6 0.6 2.8]; % [-] Quadratic drag coefficient Cd as found from Beatty 2015 and Singh & Mittal 2005
body(2).quadDrag.area = [0.558 0.558 0.636 0.558 0.558 0.636]; % [m^2] Characteristic area in relevant plane
body(2).setInitDisp([0 0 0],[0 0 0 0],[0 0 -0.22]); % [m] Initial Displacement Set to engage mooring lines for pre-tension.
Expand All @@ -56,8 +57,9 @@
pto(1) = ptoClass('PTO1'); % Initialize PTO Class for PTO1
pto(1).stiffness = 0; % [N/m] PTO Stiffness
pto(1).damping = 0; % [N/(m/s)] PTO Damping Typical values fall between 0-10,000 N/(m/s)
ptoDampingLoss = -350; % [N/m/s] Linear damping Found experimentally through free decay tests. It is negative because it is a electromechanical loss.
ptoDampingLoss = -900; % [N/m/s] Linear damping loss. It is negative because it is a electromechanical loss. Value determined from validated 0.9 m heave plate and may need updating.
pto(1).location = [0 0 0]; % [m] PTO Location
% pto(1).location = -0.22; % [m] initial PTO location, coresponses with spar displacement & needed if model is using stiffness terms.

%% Mooring Matrix
R = 0.325; % [m] Radius of mooring plate
Expand Down