Skip to content

Commit 63501fe

Browse files
committed
Updated examples, integrate pointProps for connectors, unload update
-- updated examples and added RAFT examples -- integrated pointProps for connector objects and on loading -- updated unload function to recognize and write out mooring systems (instead of just using array_mooring table)
1 parent a219591 commit 63501fe

31 files changed

+1685
-113
lines changed

examples/01_Visualization/01_2D-visual_turbine_locations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ array:
66
keys : [ID, topsideID, platformID, mooringID, x_location, y_location, heading_adjust]
77
data : # ID# ID# ID# [m] [m] [deg]
88
- [fowt0, 0, 1, 0, -1600, -1600, 0 ]
9-
- [fowt1, 0, 1, 0, 0, -1600, 0 ] # 2 array, shared moorings
9+
- [fowt1, 0, 1, 0, 0, -1600, 0 ]
1010
- [fowt2, 0, 1, 0, 1600, -1600, 0 ]
1111
- [fowt3, 0, 1, 0, -1600, 0, 0 ]
1212
- [fowt4, 0, 1, 0, 0, 0, 0 ]

examples/01_Visualization/02_visual_moorings.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ array:
66
keys : [ID, topsideID, platformID, mooringID, x_location, y_location, heading_adjust]
77
data : # ID# ID# ID# [m] [m] [deg]
88
- [fowt0, 0, 1, ms1, -1600, -1600, 180 ]
9-
- [fowt1, 0, 1, ms1, 0, -1600, 0 ] # 2 array, shared moorings
9+
- [fowt1, 0, 1, ms1, 0, -1600, 0 ]
1010
- [fowt2, 0, 1, ms1, 1600, -1600, 0 ]
1111
- [fowt3, 0, 1, ms1, -1600, 0, 0 ]
1212
- [fowt4, 0, 1, ms1, 0, 0, 45 ]

examples/01_Visualization/03_visual_cables.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ array:
66
keys : [ID, topsideID, platformID, mooringID, x_location, y_location, heading_adjust]
77
data : # ID# ID# ID# [m] [m] [deg]
88
- [fowt0, 0, 1, 0, -1600, -1600, 0 ]
9-
- [fowt1, 0, 1, 0, 0, -1600, 0 ] # 2 array, shared moorings
9+
- [fowt1, 0, 1, 0, 0, -1600, 0 ]
1010
- [fowt2, 0, 1, 0, 1600, -1600, 0 ]
1111
- [fowt3, 0, 1, 0, -1600, 0, 0 ]
1212
- [fowt4, 0, 1, 0, 0, 0, 0 ]

examples/01_Visualization/06_visual_lease_boundaries.py renamed to examples/01_Visualization/05_visual_lease_boundaries.py

File renamed without changes.

examples/01_Visualization/06_visual_lease_boundaries.yaml renamed to examples/01_Visualization/05_visual_lease_boundaries.yaml

File renamed without changes.

examples/01_Visualization/05_visual_soil.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"""
2+
Simple driver file to create a 2d plot of locations of miscellaneous platform types in an array.
3+
The input file only contains the bare minimum information to build a 2d plot
4+
of the platform locations (no moorings, cables, anchors, platform design, topsides,
5+
site condition information, etc.)
6+
"""
7+
8+
from famodel import Project
9+
import matplotlib.pyplot as plt
10+
11+
# define name of ontology input file
12+
input_file = '06_2D-visual_misc_platforms.yaml'
13+
14+
# initialize Project class with input file, we don't need RAFT for this so mark False
15+
project = Project(file=input_file,raft=False)
16+
17+
# plot
18+
project.plot2d()
19+
20+
plt.show()
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
# ----- Array-level inputs -----
3+
4+
# Wind turbine array layout
5+
array:
6+
keys : [ID, topsideID, platformID, mooringID, x_location, y_location, heading_adjust]
7+
data : # ID# ID# ID# [m] [m] [deg]
8+
- [fowt0, 0, 1, 0, -1600, -1600, 0 ]
9+
- [fowt1, 0, 1, 0, 0, -1600, 0 ]
10+
- [fowt2, 0, 1, 0, 1600, -1600, 0 ]
11+
- [fowt3, 0, 1, 0, -1600, 0, 0 ]
12+
- [fowt4, 0, 2, 0, 0, 0, 0 ]
13+
- [wec0, 0, 3, 0, 1600, 0, 0 ]
14+
- [wec1, 0, 3, 0, -1600, 1600, 0 ]
15+
- [wec2, 0, 3, 0, 0, 1600, 0 ]
16+
- [oss0, 0, 4, 0, 1600, 1600, 0 ]
17+
18+
platforms:
19+
- type : FOWT # identify entity of each platform type
20+
- type : Tidal
21+
- type : WEC
22+
- type : Substation
23+

examples/01_Visualization/07_3D-visual_platform.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ array:
1212
keys : [ID, topsideID, platformID, mooringID, x_location, y_location, heading_adjust]
1313
data : # ID# ID# ID# [m] [m] [deg]
1414
- [fowt0, 0, 1, 0, -1600, -1600, 180 ]
15-
- [fowt1, 0, 1, 0, 0, -1600, 0 ] # 2 array, shared moorings
15+
- [fowt1, 0, 1, 0, 0, -1600, 0 ]
1616
- [fowt2, 0, 1, 0, 1600, -1600, 0 ]
1717
- [fowt3, 0, 1, 0, -1600, 0, 0 ]
1818
- [fowt4, 0, 1, 0, 0, 0, 45 ]

examples/01_Visualization/08_3D-visual_turbine.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ array:
1212
keys : [ID, topsideID, platformID, mooringID, x_location, y_location, heading_adjust]
1313
data : # ID# ID# ID# [m] [m] [deg]
1414
- [fowt0, 1, 1, 0, -1600, -1600, 180 ]
15-
- [fowt1, 1, 1, 0, 0, -1600, 0 ] # 2 array, shared moorings
15+
- [fowt1, 1, 1, 0, 0, -1600, 0 ]
1616
- [fowt2, 1, 1, 0, 1600, -1600, 0 ]
1717
- [fowt3, 1, 1, 0, -1600, 0, 0 ]
1818
- [fowt4, 1, 1, 0, 0, 0, 45 ]

0 commit comments

Comments
 (0)