Skip to content

Commit

Permalink
Fixing test directory bug and adding moorpy verification case files
Browse files Browse the repository at this point in the history
  • Loading branch information
mattEhall committed Jun 12, 2024
1 parent 5b5d59f commit 1d71069
Show file tree
Hide file tree
Showing 10 changed files with 334 additions and 1 deletion.
35 changes: 35 additions & 0 deletions tests/case1.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
MoorDyn Input File
single catenary line
----------------------- LINE TYPES ------------------------------------------
Name Diam MassDen EA BA/-zeta EI Cd Ca CdAx CaAx
(-) (m) (kg/m) (N) (N-s/-) (-) (-) (-) (-) (-)
main 0.2 500.00 2.0E+09 -1 0 1 0.27 1 0.20
---------------------- POINTS --------------------------------
Node Type X Y Z M V CdA CA
(-) (-) (m) (m) (m) (kg) (m^3) (m^2) (-)
1 Fixed -800.0 0.0 -300.0 0 0 0 0
2 Coupled 0.0 0.0 0.0 0 0 0 0
---------------------- LINES --------------------------------------
Line LineType NodeAnch NodeFair UnstrLen NumSegs Flags/Outputs
(-) (-) (-) (-) (m) (-) (-)
1 main 1 2 900.00 40 pt
---------------------- SOLVER OPTIONS ---------------------------------------
300 WtrDpth
0.001 dtM - time step to use in mooring integration (s)
3.0e6 kbot - bottom stiffness (Pa/m)
3.0e5 cbot - bottom damping (Pa-s/m)
1.0 dtIC - time interval for analyzing convergence during IC gen (s)
50.0 TmaxIC - max time for ic gen (s)
4.0 CdScaleIC - factor by which to scale drag coefficients during dynamic relaxation (-)
0.001 threshIC - threshold for IC convergence (-)
------------------------ OUTPUTS --------------------------------------------
FairTen1
AnchTen1
Con1fx
Con1fy
Con1fz
Con2fx
Con2fy
Con2fz
------------------------- need this line --------------------------------------

38 changes: 38 additions & 0 deletions tests/case2.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
MoorDyn Input File
catenary plus rope
----------------------- LINE TYPES ------------------------------------------
Name Diam MassDen EA BA/-zeta EI Cd Ca CdAx CaAx
(-) (m) (kg/m) (N) (N-s/-) (-) (-) (-) (-) (-)
main 0.2 200.00 2.0E+09 -1 0 4 0.27 4 0.20
polyester 0.15 25 30e6 -0.8 0 4 1.0 4 0.0
---------------------- POINTS --------------------------------
Node Type X Y Z M V CdA CA
(-) (-) (m) (m) (m) (kg) (m^3) (m^2) (-)
1 Fixed -800.0 0.0 -300.0 0 0 0 0
2 Free -400.0 0.0 -100.0 0 0 0 0
3 Coupled 0.0 0.0 0.0 0 0 0 0
---------------------- LINES --------------------------------------
Line LineType NodeAnch NodeFair UnstrLen NumSegs Flags/Outputs
(-) (-) (-) (-) (m) (-) (-)
1 main 1 2 500.00 25 pt
2 polyester 2 3 380.00 15 pt
---------------------- SOLVER OPTIONS ---------------------------------------
300 WtrDpth
0.001 dtM - time step to use in mooring integration (s)
3.0e6 kbot - bottom stiffness (Pa/m)
3.0e5 cbot - bottom damping (Pa-s/m)
1.0 dtIC - time interval for analyzing convergence during IC gen (s)
50.0 TmaxIC - max time for ic gen (s)
4.0 CdScaleIC - factor by which to scale drag coefficients during dynamic relaxation (-)
0.001 threshIC - threshold for IC convergence (-)
------------------------ OUTPUTS --------------------------------------------
FairTen1
AnchTen1
Con1fx
Con1fy
Con1fz
Con2fx
Con2fy
Con2fz
------------------------- need this line --------------------------------------

40 changes: 40 additions & 0 deletions tests/case3.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
MoorDyn Input File
single catenary line from VolturnUS-S
----------------------- LINE TYPES ------------------------------------------
Name Diam MassDen EA BA/-zeta EI Cd Ca CdAx CaAx
(-) (m) (kg/m) (N) (N-s/-) (-) (-) (-) (-) (-)
main 0.2 500.00 2.0E+09 -1 0 1 0.27 1 0.20
---------------------- POINTS --------------------------------
Node Type X Y Z M V CdA CA
(-) (-) (m) (m) (m) (kg) (m^3) (m^2) (-)
1 Fixed -800.0 0.0 -300.0 0 0 0 0
2 Free -400.0 0.0 -100.0 0 200 0 0
3 Free -200.0 0.0 -100.0 1e5 0 0 0
4 Coupled 0.0 0.0 0.0 0 0 0 0
---------------------- LINES --------------------------------------
Line LineType NodeAnch NodeFair UnstrLen NumSegs Flags/Outputs
(-) (-) (-) (-) (m) (-) (-)
1 main 1 2 400.00 20 pt
2 main 2 3 250.00 10 pt
3 main 3 4 250.00 10 pt
---------------------- SOLVER OPTIONS ---------------------------------------
2 writeLog
300 WtrDpth
0.001 dtM - time step to use in mooring integration (s)
3.0e6 kbot - bottom stiffness (Pa/m)
3.0e5 cbot - bottom damping (Pa-s/m)
1.0 dtIC - time interval for analyzing convergence during IC gen (s)
0.0 TmaxIC - max time for ic gen (s)
4.0 CdScaleIC - factor by which to scale drag coefficients during dynamic relaxation (-)
0.001 threshIC - threshold for IC convergence (-)
------------------------ OUTPUTS --------------------------------------------
FairTen1
AnchTen1
Con1fx
Con1fy
Con1fz
Con2fx
Con2fy
Con2fz
------------------------- need this line --------------------------------------

32 changes: 32 additions & 0 deletions tests/case4.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
MoorDyn input file for matching RM3 WEC umbilical cable at 50 m
NOTE: Re-running this file in MD_C using go.py gives different results each run!!
---------------------- LINE DICTIONARY -----------------------------------------------------
LineType Diam MassDenInAir EA cIntDamp EI Cd Ca CdAx CaAx
(-) (m) (kg/m) (N) (Pa-s) (N-m^2) (-) (-) (-) (-)
cable 0.2 200 2e9 -0.8 0 1.0 0.0 1.2 0.008
buoyancy 0.7 200 2e9 -0.8 0 1.0 0.0 1.2 0.008
---------------------- POINTS -----------------------------------------------------
Node Type X Y Z M V CdA Ca
(-) (-) (m) (m) (m) (kg) (m^3) (m2) ()
1 Fixed -800 0 -300 0 0 0 0
2 Free -300 0 -200 0 0 0 0
3 Free -100 0 -200 0 0 0 0
4 Fixed 0 0 0 0 0 0 0 # NOTE: this was coupled before
---------------------- LINES -----------------------------------------------------
Line LineType NodeA NodeB UnstrLen NumSegs Flags/Outputs
(-) (-) (-) (-) (m) (-) (-)
1 cable 1 2 360 18 pt
2 buoyancy 2 3 240 12 pt
3 cable 3 4 360 18 pt
---------------------- SOLVER OPTIONS ----------------------------------------
2 writeLog
0.001 dtM - time step to use in mooring integration
0.5 dtOut
1.5e5 kb - bottom stiffness Senu used 1.5e6 but for MD this causes pretty bad bumps on seabed contact
1e4 cb - bottom damping Senu used zero
300 WtrDpth - water depth
5.0 ICDfac - factor by which to scale drag coefficients during dynamic relaxation IC gen
0.0001 ICthresh - threshold for IC convergence
0 TmaxIC - threshold for IC convergence
---------------------- OUTPUT -----------------------------------------
--------------------- need this line ------------------
35 changes: 35 additions & 0 deletions tests/case5.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
MoorDyn Input File
single catenary line from VolturnUS-S
----------------------- LINE TYPES ------------------------------------------
Name Diam MassDen EA BA/-zeta EI Cd Ca CdAx CaAx
(-) (m) (kg/m) (N) (N-s/-) (-) (-) (-) (-) (-)
main 0.2 500.0 2E+09 -1 0 1 0.27 1 0.20
---------------------- POINTS --------------------------------
Node Type X Y Z M V CdA CA
(-) (-) (m) (m) (m) (kg) (m^3) (m^2) (-)
1 Fixed -400.0 0.0 -300.0 0 0 0 0
2 Coupled 0.0 0.0 0.0 0 0 0 0
---------------------- LINES --------------------------------------
Line LineType NodeAnch NodeFair UnstrLen NumSegs Flags/Outputs
(-) (-) (-) (-) (m) (-) (-)
1 main 1 2 890.00 40 pt
---------------------- SOLVER OPTIONS ---------------------------------------
300 WtrDpth
0.001 dtM - time step to use in mooring integration (s)
3.0e6 kbot - bottom stiffness (Pa/m)
3.0e5 cbot - bottom damping (Pa-s/m)
1.0 dtIC - time interval for analyzing convergence during IC gen (s)
50.0 TmaxIC - max time for ic gen (s)
4.0 CdScaleIC - factor by which to scale drag coefficients during dynamic relaxation (-)
0.001 threshIC - threshold for IC convergence (-)
------------------------ OUTPUTS --------------------------------------------
FairTen1
AnchTen1
Con1fx
Con1fy
Con1fz
Con2fx
Con2fy
Con2fz
------------------------- need this line --------------------------------------

39 changes: 39 additions & 0 deletions tests/case6.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
MoorDyn Input File
W shape with seabed contact
----------------------- LINE TYPES ------------------------------------------
Name Diam MassDen EA BA/-zeta EI Cd Ca CdAx CaAx
(-) (m) (kg/m) (N) (N-s/-) (-) (-) (-) (-) (-)
main 0.2 500.00 2.0E+09 -1 0 1 0.27 1 0.20
---------------------- POINTS --------------------------------
Node Type X Y Z M V CdA CA
(-) (-) (m) (m) (m) (kg) (m^3) (m^2) (-)
1 Fixed -400.0 0.0 0.0 0 0 0 0
2 Free 0.0 0.0 -100.0 0 200 0 0
3 Free 0.0 200.0 -200.0 0 0 0 0
4 Fixed 0.0 400.0 0.0 0 0 0 0
---------------------- LINES --------------------------------------
Line LineType NodeAnch NodeFair UnstrLen NumSegs Flags/Outputs
(-) (-) (-) (-) (m) (-) (-)
1 main 1 2 660.00 20 pt
2 main 2 3 330.00 10 pt
3 main 3 4 330.00 10 pt
---------------------- SOLVER OPTIONS ---------------------------------------
300 WtrDpth
0.001 dtM - time step to use in mooring integration (s)
3.0e6 kbot - bottom stiffness (Pa/m)
3.0e5 cbot - bottom damping (Pa-s/m)
1.0 dtIC - time interval for analyzing convergence during IC gen (s)
50.0 TmaxIC - max time for ic gen (s)
4.0 CdScaleIC - factor by which to scale drag coefficients during dynamic relaxation (-)
0.001 threshIC - threshold for IC convergence (-)
------------------------ OUTPUTS --------------------------------------------
FairTen1
AnchTen1
Con1fx
Con1fy
Con1fz
Con2fx
Con2fy
Con2fz
------------------------- need this line --------------------------------------

48 changes: 48 additions & 0 deletions tests/case7a.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
MoorDyn Input File
Case 7: Single catenary line attached to body to test 6DOF stifness
----------------------- LINE TYPES ------------------------------------------
Name Diam MassDen EA BA/-zeta EI Cd Ca CdAx CaAx
(-) (m) (kg/m) (N) (N-s/-) (-) (-) (-) (-) (-)
main 0.2 200.00 2.0E+09 -1 0 4 0.27 4 0.20
----------------------- 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.00 0.00 0.00 0.00 0.00 0.00 0.0 0.0 0.000e+00 0.0 0.00 0.00
---------------------- POINTS --------------------------------
Node Type X Y Z M V CdA CA
(-) (-) (m) (m) (m) (kg) (m^3) (m^2) (-)
1 Fixed 100.0 0.0 -50.0 0 0 0 0
2 Body1 0.0 0.0 -10.0 0 0 0 0
---------------------- LINES --------------------------------------
Line LineType EndA EndB UnstrLen NumSegs Flags/Outputs
(-) (-) (-) (-) (m) (-) (-)
1 main 1 2 112.00 80 pt
---------------------- SOLVER OPTIONS ---------------------------------------
50 WtrDpth
0.0002 dtM - time step to use in mooring integration (s)
3.0e6 kbot - bottom stiffness (Pa/m)
3.0e5 cbot - bottom damping (Pa-s/m)
1.0 dtIC - time interval for analyzing convergence during IC gen (s)
60.0 TmaxIC - max time for ic gen (s)
4.0 CdScaleIC - factor by which to scale drag coefficients during dynamic relaxation (-)
0.001 threshIC - threshold for IC convergence (-)
------------------------ OUTPUTS --------------------------------------------
FairTen1
AnchTen1
Con1fx
Con1fy
Con1fz
Con2fx
Con2fy
Con2fz
Con2px
Con2py
Con2pz
Body1fx
Body1fy
Body1fz
Body1mx
Body1my
Body1mz
------------------------- need this line --------------------------------------

File renamed without changes.
61 changes: 61 additions & 0 deletions tests/case9.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
test case for two bodies with one shared mooring line between them
---------------------- LINE TYPES -----------------------------------------------------
Name Diam MassDen EA BA/-zeta EI Cd Ca CdAx CaAx
(-) (m) (kg/m) (N) (N-s/-) (-) (-) (-) (-) (-)
main 0.2 200.00 2.0E+09 -1 0 30 0.27 30 0.20
----------------------- 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.00 0.00 0.00 0.00 0.00 0.00 0.0 0.0 0.0 0.0 0.00 0.00
2 coupled 200.00 0.00 0.00 0.00 0.00 0.00 0.0 0.0 0.0 0.0 0.00 0.00
---------------------- POINTS --------------------------------
Node Type X Y Z M V CdA CA
(-) (-) (m) (m) (m) (kg) (m^3) (m^2) (-)
1 Fixed -141.4 -141.4 -100.0 0 0 0 0
2 Fixed -141.4 141.4 -100.0 0 0 0 0
3 Fixed 341.4 -141.4 -100.0 0 0 0 0
4 Fixed 341.4 141.4 -100.0 0 0 0 0
5 Body1 -14.14 -14.14 -20.0 0 0 0 0
6 Body1 -14.14 14.14 -20.0 0 0 0 0
7 Body2 14.14 -14.14 -20.0 0 0 0 0
8 Body2 14.14 14.14 -20.0 0 0 0 0
9 Body1 20.0 0.0 -20.0 0 0 0 0
10 Body2 -20.0 0.0 -20.0 0 0 0 0
---------------------- LINES -----------------------------------------------------
Line LineType EndA EndB UnstrLen NumSegs Flags/Outputs
(-) (-) (-) (-) (m) (-) (-)
1 main 1 5 210.0 40 -
2 main 2 6 210.0 40 -
3 main 3 7 210.0 40 -
4 main 4 8 210.0 40 -
5 main 9 10 168.2 40 -
---------------------- SOLVER OPTIONS ----------------------------------------
100 depth
0.0004 dtM - time step to use in mooring integration (s)
3e6 kbot - bottom stiffness (Pa/m)
3e5 cbot - bottom damping (Pa-s/m)
2 dtIC - time interval for analyzing convergence during IC gen (s)
600 TmaxIC - max time for ic gen (s)
4 CdScaleIC - factor by which to scale drag coefficients during dynamic relaxation (-)
0.01 threshIC - threshold for IC convergence (-)
0.1 dtOut
----------------------------OUTPUTS--------------------------------------------
FairTen1
FairTen2
FairTen3
FairTen4
FairTen5
AnchTen5
Body1fx
Body1fy
Body1fz
Body1mx
Body1my
Body1mz
Body2fx
Body2fy
Body2fz
Body2mx
Body2my
Body2mz
--------------------- need this line ------------------
Loading

0 comments on commit 1d71069

Please sign in to comment.