Skip to content

Commit

Permalink
waveClass default to "EqualEnergy"
Browse files Browse the repository at this point in the history
  • Loading branch information
kmruehl committed Sep 7, 2017
1 parent e7055ab commit 3dde205
Show file tree
Hide file tree
Showing 17 changed files with 13 additions and 22 deletions.
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,13 @@ $ cat .gitignore
*build_exception*

# Tutorials
!/tutorials/verificationCases/RegularWaves/*.mat
!/tutorials/verificationCases/IrregularWaves/*.mat
/tutorials/BEMIO/**/*.h5
!/tutorials/verificationCases/IrregularWaves/irregularSS/irregularSS_org.mat
!/tutorials/verificationCases/IrregularWaves/irregularCIC/irregularCIC_org.mat
/tutorials/verificationCases/**/**/*.mat
!/tutorials/verificationCases/RegularWaves/regular/regular_org.mat
!/tutorials/verificationCases/RegularWaves/regularCIC/regularCIC_org.mat
!/tutorials/verificationCases/RegularWaves/regularSS/regularSS_org.mat
!/tutorials/verificationCases/IrregularWaves/irregularSS/irregularSS_org.mat
!/tutorials/verificationCases/IrregularWaves/irregularCIC/irregularCIC_org.mat

# moorDyn
source/functions/moorDyn/*
Expand Down
8 changes: 0 additions & 8 deletions USERS_GUIDE.html

This file was deleted.

2 changes: 1 addition & 1 deletion source/objects/waveClass.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
'numPointsX', 50, ... % Visualization number of points in x direction.
'numPointsY', 50) % Visualization number of points in y direction.
statisticsDataLoad = []; % File name to load wave statistics data for wecSimMCR
freqDisc = 'Traditional' % Method of frequency discretization for irregular waves. Options for this variable are 'EqualEnergy' or 'Traditional'. (default = 'EqualEnergy').
freqDisc = 'EqualEnergy' % Method of frequency discretization for irregular waves. Options for this variable are 'EqualEnergy' or 'Traditional'. (default = 'EqualEnergy').
end

properties (SetAccess = 'private', GetAccess = 'public')%internal
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
simu = simulationClass(); % Initialize Simulation Class
simu.simMechanicsFile = 'RM3.slx'; % Specify Simulink Model File
simu.rampTime = 100; % Wave Ramp Time [s]
simu.endTime=150; % Simulation End Time [s]
simu.endTime=200; % Simulation End Time [s]
simu.dt = 0.1; % Simulation Time-Step [s]
simu.explorer = 'off';

Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
simu = simulationClass(); % Initialize Simulation Class
simu.simMechanicsFile = 'RM3.slx'; % Specify Simulink Model File
simu.rampTime = 100; % Wave Ramp Time [s]
simu.endTime=150; % Simulation End Time [s]
simu.endTime=200; % Simulation End Time [s]
simu.dt = 0.1; % Simulation Time-Step [s]
simu.explorer = 'off';
simu.CITime = 20;
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
simu = simulationClass(); % Initialize Simulation Class
simu.simMechanicsFile = 'RM3.slx'; % Specify Simulink Model File
simu.rampTime = 100; % Wave Ramp Time [s]
simu.endTime=150; % Simulation End Time [s]
simu.endTime=200; % Simulation End Time [s]
simu.dt = 0.1; % Simulation Time-Step [s]
simu.explorer = 'off';
simu.ssCalc = 1;
Expand Down
12 changes: 6 additions & 6 deletions tutorials/verificationCases/plotOldNew.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function plotOldNew(B1,B2,Rel,InfoDiffB1, InfoDiffB2, InfoDiffRel,titstr)
a=text(10,1.2,str2);set(a,'FontSize',12)
b=get(n(1),'LineWidth')+1;
set(n(1),'LineWidth',b)
xlim([0 150])
xlim([0 200])
ylim([-2 2])

subplot(2,3,4)
Expand All @@ -58,7 +58,7 @@ function plotOldNew(B1,B2,Rel,InfoDiffB1, InfoDiffB2, InfoDiffRel,titstr)
set(m(1),'LineWidth',a)
xlabel('time(s)')
ylabel('Heave(m)')
xlim([100 150])
xlim([100 200])
ylim([-2 2])

%Second Column: Body 2 Heave
Expand All @@ -74,7 +74,7 @@ function plotOldNew(B1,B2,Rel,InfoDiffB1, InfoDiffB2, InfoDiffRel,titstr)
a=text(10,0.15,str2);set(a,'FontSize',12)
b=get(n(1),'LineWidth')+1;
set(n(1),'LineWidth',b)
xlim([0 150])
xlim([0 200])
ylim([-0.2 0.2])

subplot(2,3,5)
Expand All @@ -86,7 +86,7 @@ function plotOldNew(B1,B2,Rel,InfoDiffB1, InfoDiffB2, InfoDiffRel,titstr)
set(m(1),'LineWidth',a)
xlabel('time(s)')
ylabel('Heave(m)')
xlim([100 150])
xlim([100 200])
ylim([-0.2 0.2])

%Third Column: Relative Heave
Expand All @@ -102,7 +102,7 @@ function plotOldNew(B1,B2,Rel,InfoDiffB1, InfoDiffB2, InfoDiffRel,titstr)
a=text(10,1.2,str2);set(a,'FontSize',12)
b=get(n(1),'LineWidth')+1;
set(n(1),'LineWidth',b)
xlim([0 150])
xlim([0 200])
ylim([-2 2])
l=legend('WEC-Sim Org','WEC-Sim New');
set(l,'Position',[0.92 0.90 0.07 0.07],'Units','normalized',...
Expand All @@ -117,7 +117,7 @@ function plotOldNew(B1,B2,Rel,InfoDiffB1, InfoDiffB2, InfoDiffRel,titstr)
set(m(1),'LineWidth',a)
xlabel('time(s)')
ylabel('Heave(m)')
xlim([100 150])
xlim([100 200])
ylim([-2 2])

end

0 comments on commit 3dde205

Please sign in to comment.