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
7 changes: 0 additions & 7 deletions .github/workflows/run-tests-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ jobs:
os: [ubuntu-latest, windows-latest]
release: [R2024b]
include: ${{ fromJSON(inputs.include) }}
exclude:
- os: ubuntu-latest
folder: Mooring
- os: ubuntu-latest
folder: OWC
- os: ubuntu-latest
folder: Paraview_Visualization
name: "${{ matrix.folder }} - ${{ matrix.os }} - ${{ matrix.release }}"
timeout-minutes: 45
steps:
Expand Down
2 changes: 1 addition & 1 deletion Mooring/MoorDyn/Mooring/lines.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Mooring line data file for MoorDyn in libmoordyn.dll
---------------------- LINE TYPES -----------------------------------------------------
LineType Diam Mass/m EA BA/-zeta EI Cd Ca CdAx CaAx
(-) (m) (kg/m) (N) (N-s/-) (N-m^2) (-) (-) (-) (-)
Chain 0.144 126.0 583.376E6 -0.8 0 1.6 1.0 0.05 0.0
Chain 0.144 126.0 583.376E6 -0.8 0 1.6 1.0 0.05 0.0
---------------------------- BODIES -----------------------------------------------------
ID Attachment X0 Y0 Z0 r0 p0 y0 Mass CG* I* Volume CdA* Ca
(#) (-) (m) (m) (m) (deg) (deg) (deg) (kg) (m) (kg-m^2) (m^3) (m^2) (-)
Expand Down
4 changes: 3 additions & 1 deletion Mooring/TestMooring.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ function checkVisibilityRestored(testCase)
end
end

methods(Test)
methods(Test)
function testMoorDyn(testCase)
isCI = strcmpi(getenv("GITHUB_ACTIONS"), "true");
testCase.assumeFalse(isCI, "Skipping MoorDyn test on GitHub CI");
assumeEqual(testCase, ...
exist("MoorDyn_caller", "file"), 2, ...
"MoorDyn is not installed");
Expand Down
2 changes: 1 addition & 1 deletion OWC/FloatingOWC/Mooring/lines.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Chain 0.032 34.82 1.5e6 -0.8 1e4 1.6 1.0 0
---------------------------- BODIES -----------------------------------------------------
ID Attachment X0 Y0 Z0 r0 p0 y0 Mass CG* I* Volume CdA* Ca
(#) (-) (m) (m) (m) (deg) (deg) (deg) (kg) (m) (kg-m^2) (m^3) (m^2) (-)
1 Coupled 0 0 -2.58 0 0 0 2.914e6 -31.96 1.53e9 2.9013e3 0 0
1 Coupled 0 0 -2.58 0 0 0 2.914e6 -31.96 1.53e9 2.9013e3 0 0
---------------------- POINTS -----------------------------------------------------
ID Attachment X Y Z Mass Volume CdA CA
(#) (word/ID) (m) (m) (m) (kg) (mˆ3) (m^2) (-)
Expand Down
3 changes: 2 additions & 1 deletion OWC/TestOWC.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ function testOWCOrifice(testCase)
wecSim
close_system('OWC_rigid',0)
end

function testOWCFloating(testCase)
isCI = strcmpi(getenv("GITHUB_ACTIONS"), "true");
testCase.assumeFalse(isCI, "Skipping MoorDyn test on GitHub CI");
assumeEqual(testCase, exist("MoorDyn_caller", "file"), 2, ...
"MoorDyn is not installed");
cd('FloatingOWC')
Expand Down
2 changes: 1 addition & 1 deletion Paraview_Visualization/RM3_MoorDyn_Viz/Mooring/lines.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Mooring line data file for MoorDyn in libmoordyn.dll
---------------------- LINE TYPES -----------------------------------------------------
LineType Diam Mass/m EA BA/-zeta EI Cd Ca CdAx CaAx
(-) (m) (kg/m) (N) (N-s/-) (N-m^2) (-) (-) (-) (-)
Chain 0.144 126.0 583.376E6 -0.8 0 1.6 1.0 0.05 0.0
Chain 0.144 126.0 583.376E6 -0.8 0 1.6 1.0 0.05 0.0
---------------------------- BODIES -----------------------------------------------------
ID Attachment X0 Y0 Z0 r0 p0 y0 Mass CG* I* Volume CdA* Ca
(#) (-) (m) (m) (m) (deg) (deg) (deg) (kg) (m) (kg-m^2) (m^3) (m^2) (-)
Expand Down
2 changes: 2 additions & 0 deletions Paraview_Visualization/RM3_MoorDyn_Viz/TestMoorDynViz.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ function removeVTK(testCase)

methods(Test)
function testParaview_Visualization_RM3_MoorDyn_Viz(testCase)
isCI = strcmpi(getenv("GITHUB_ACTIONS"), "true");
testCase.assumeFalse(isCI, "Skipping MoorDyn test on GitHub CI");
wecSim
end
end
Expand Down
Loading