Skip to content

Commit ec43432

Browse files
committed
Fix last few
1 parent f175f96 commit ec43432

4 files changed

Lines changed: 18 additions & 11 deletions

File tree

Mooring/MoorDyn/wecSimInputFile.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
%% Simulation Data
1+
%% Simulation Data
22
simu = simulationClass();
33
simu.simMechanicsFile = 'RM3MoorDyn.slx'; % WEC-Sim Model File
44
simu.mode = 'accelerator';

Mooring/TestMooring.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ function testMoorDyn(testCase)
6161
end
6262
function testMooringMatrix(testCase)
6363
cd MooringMatrix
64+
close_system('RM3MooringMatrix',0)
6465
wecSim
6566
close_system('RM3MooringMatrix',0)
6667
cd(testCase.testDir)

OWC/OrificeModel/hydroData/bemio.m

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,22 @@
66
% This will despike the resonance associated with the OWC moonpool and generate an h5
77
% file with the _clean suffix.
88

9-
load deSpike.mat
10-
outHydro = badBemioFix_fcn({'test17a.out'},'WAMIT',deSpike,[1,1;3,3;5,5;7,7]);
11-
writeBEMIOH5(outHydro);
9+
10+
% outHydro = cleanBEM({'test17a.out'},'WAMIT',deSpike,[1,1;3,3;5,5;7,7]);
11+
% writeBEMIOH5(outHydro);
1212

1313
%% Run BEMIO for WAMIT Run
14+
% 1) load deSpike.mat, to create structure depSpike in workspace.
15+
% 2) call cleanBEM to despike the resonance associated with the OWC
16+
% moonpool and generate an h5 file with the _clean suffix.
1417

15-
% hydro = struct();
16-
% hydro = readWAMIT(hydro,'test17a.out',[]);
17-
% hydro = radiationIRF(hydro,20,[],[],[],11);
18-
% hydro = radiationIRFSS(hydro,20,[]);
19-
% hydro = excitationIRF(hydro,20,[],[],[],11);
20-
% hydro.plotDofs = [1,1;3,3;5,5;7,7];
21-
% writeBEMIOH5(hydro);
18+
load deSpike.mat
19+
hydro = struct();
20+
hydro = readWAMIT(hydro,'test17a.out',[]);
21+
hydro = cleanBEM(hydro, deSpike);
22+
hydro = radiationIRF(hydro,20,[],[],[],11);
23+
hydro = radiationIRFSS(hydro,20,[]);
24+
hydro = excitationIRF(hydro,20,[],[],[],11);
25+
hydro.plotDofs = [1,1;3,3;5,5;7,7];
26+
writeBEMIOH5(hydro);
2227
% plotBEMIO(hydro);

Passive_Yaw/TestPassiveYawRegression.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function runYawIrrTest(testCase)
3232
cd(fullfile(testCase.testDir, ...
3333
'PassiveYawRegression'))
3434
runLoadPassiveYawIrr;
35+
close_system('OSWEC',0)
3536
testCase.IrrYaw = load('IrrYaw.mat').("IrrYaw");
3637
end
3738
end

0 commit comments

Comments
 (0)