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);
0 commit comments