Skip to content

Commit 80c7c31

Browse files
MShabarajtgrasb
andauthored
QTF Example (#86)
* Modifies the MOST example to include the QTFs * Fixes a typo in Mesh.cal * runs mostIO before starting the tests * comments the turbSim test as it a part of mostIO * fixes a bug * Adds the QTF results and modifies gitignore * limits the test to the constant case only * Small change so tests will rerun * Update wecSimInputFile.m * Update wecSimInputFile.m disables the QTF calculation in the example case * Delete Generalized_Body_Modes/gbmWEC-Sim.mat --------- Co-authored-by: jtgrasb <87095491+jtgrasb@users.noreply.github.com>
1 parent eb3dda8 commit 80c7c31

11 files changed

Lines changed: 25781 additions & 16 deletions

File tree

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,4 @@ WECCCOMP/**/SS*.fig
9595
Passive_Yaw/**/IrrYaw.mat
9696
Passive_Yaw/**/figYawIrr.fig
9797
yaw*.mat
98-
99-
100-
98+
!MOST/hydroData/VolturnUS15MW_nemoh/Results/QTF/*.dat
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Mesh/Volturn_nemoh
2+
0
3+
0. 0.
4+
0.000000 0.000000 0
5+
980
6+
2
7+
0.
8+
1.
9+
1000.
10+
9.81

MOST/hydroData/VolturnUS15MW_nemoh/Nemoh.cal

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,18 @@
3131
0 ! Show pressure
3232
0 0 180 ! Kochin function ! Number of directions of calculation (0 for no calculations), Min and Max (degrees)
3333
0 50 400 400 ! Free surface elevation ! Number of points in x direction (0 for no calcutions) and y direction and dimensions of domain in x and y direction
34-
0 ! Response Amplitude Operator (RAO), 0 no calculation, 1 calculated
34+
1 ! Response Amplitude Operator (RAO), 0 no calculation, 1 calculated
3535
1 ! output freq type, 1,2,3=[rad/s,Hz,s]
3636
--- QTF----------------------------------------------------------------------------------------------------------------------------
37-
0 ! QTF flag, 1 is calculated
37+
1 ! QTF flag, 1 is calculated
38+
65 0.0628 4.082 ! Number of radial frequencies, Min, and Max values for the QTF computation
39+
1 ! 1 Unidirection, Bidirection 0
40+
2 ! Contrib, 1 DUOK, 2 DUOK+HASBO, 3 Full QTF (DUOK+HASBO+HASFS+ASYMP)
41+
NA ! Name of free surface meshfile (Only for Contrib 3), type 'NA' if not applicable
42+
0 0 0 ! Free surface QTF parameters: Re Nre NBessel (for Contrib 3)
43+
0 ! 1 Includes Hydrostatic terms of the quadratic first order motion, -[K]xi2_tilde
44+
1 ! For QTFposProc, output freq type, 1,2,3=[rad/s,Hz,s]
45+
1 ! For QTFposProc, 1 includes DUOK in total QTFs, 0 otherwise
46+
1 ! For QTFposProc, 1 includes HASBO in total QTFs, 0 otherwise
47+
0 ! For QTFposProc, 1 includes HASFS+ASYMP in total QTFs, 0 otherwise
48+
-----------------------------------------------------------------------------------------------------------------------------------

MOST/hydroData/VolturnUS15MW_nemoh/Results/QTF/OUT_QTFM_N_0.dat

Lines changed: 12871 additions & 0 deletions
Large diffs are not rendered by default.

MOST/hydroData/VolturnUS15MW_nemoh/Results/QTF/OUT_QTFP_N_0.dat

Lines changed: 12871 additions & 0 deletions
Large diffs are not rendered by default.

MOST/hydroData/VolturnUS15MW_nemoh/input.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2 ! Gauss quadrature (GQ) surface integration, N^2 GQ Nodes, specify N(1,4)
2+
0.001 ! eps_zmin for determine minimum z of flow and source points of panel, zmin=eps_zmin*body_diameter
3+
1 ! 0 GAUSS ELIM.; 1 LU DECOMP.: 2 GMRES !Linear system solver
4+
10 1e-5 1000 ! Restart parameter, Relative Tolerance, max iter -> additional input for GMRES

MOST/tests/TestMOST.m

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,18 @@ function runBEMIO(testCase)
4444
end
4545
function runTurbSim(testCase)
4646
% Only re-run turbSim before testing. The *.mat file is too
47-
% large to commit to the repo.
47+
% large to commit to the repo.
4848
cd(fullfile(testCase.mostDataDir,'turbSim'));
4949
run_turbsim();
5050
cd(testCase.testDir)
5151
end
52+
function runMOSTIO(testCase)
53+
% Test the pre-processing here so that it does not interfere
54+
% with the precise comparison of results.
55+
cd(testCase.mostDataDir);
56+
mostIO
57+
cd(testCase.testDir)
58+
end
5259
function runConstantTest(testCase)
5360
cd(fullfile(testCase.testDir,'constant'))
5461
runLoadConstant;
@@ -199,13 +206,5 @@ function turbulent_windSpeed(testCase)
199206
fprintf(['Wind speed, Diff = ' ...
200207
num2str(max(abs(org-new))) '\n']);
201208
end
202-
203-
function runMOSTIO(testCase)
204-
% Test the pre-processing here so that it does not interfere
205-
% with the precise comparison of results.
206-
cd(testCase.mostDataDir);
207-
mostIO
208-
cd(testCase.testDir)
209-
end
210209
end
211210
end

MOST/tests/constant/wecSimInputFile.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
0.00E+00 8.92E+06 0.00E+00 1.68E+10 0.00E+00 0.00E+00
4040
-8.92E+06 0.00E+00 0.00E+00 0.00E+00 1.68E+10 0.00E+00
4141
0.00E+00 0.00E+00 0.00E+00 0.00E+00 0.00E+00 4.80E+10];
42+
body(1).QTFs = 0;
4243

4344
%% Mooring class
4445
mooring(1) = mooringClass('mooring1'); % Initialize mooringClass

MOST/tests/turbulent/wecSimInputFile.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
0.00E+00 8.92E+06 0.00E+00 1.68E+10 0.00E+00 0.00E+00
4040
-8.92E+06 0.00E+00 0.00E+00 0.00E+00 1.68E+10 0.00E+00
4141
0.00E+00 0.00E+00 0.00E+00 0.00E+00 0.00E+00 4.80E+10];
42+
body(1).QTFs = 0;
4243

4344
%% Mooring class
4445
mooring(1) = mooringClass('mooring1'); % Initialize mooringClass

0 commit comments

Comments
 (0)