Skip to content

Commit 27085a5

Browse files
authored
Merge branch 'main' into new_base
2 parents 6ffec51 + 3ca5f29 commit 27085a5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

famodel/mooring/mooring.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,10 +1092,11 @@ def addCorrosion(self,corrosion_mm=10):
10921092
'''
10931093
for i in self.i_sec:
10941094
sec = self.getSubcomponent[i]
1095-
if sec['material']=='chain':
1096-
MBL_cor = sec['MBL']*( (sec['d_nom']-(corrosion_mm/1000))/sec['d_nom'] )**2 # corroded MBL
1095+
if sec['type']['material']=='chain':
1096+
MBL_cor = sec['type']['MBL']*( (sec['type']['d_nom']-(corrosion_mm/1000))/sec['type']['d_nom'] )**2 # corroded MBL
10971097
else:
1098-
MBL_cor = sec['MBL']
1098+
MBL_cor = sec['type']['MBL']
1099+
sec['type']['MBL'] = MBL_cor
10991100

11001101

11011102
def getEnvelope(self,ang_spacing=45,SFs=True):

famodel/project.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,6 +2193,8 @@ def plot2d(self, ax=None, plot_seabed=True,plot_bathymetry=True, plot_boundary=T
21932193
X, Y = np.meshgrid(self.grid_x, self.grid_y)
21942194

21952195
contourf = ax.contourf(X, Y, self.grid_depth, num_levels, cmap='Blues', vmin=np.min(self.grid_depth), vmax=np.max(self.grid_depth))
2196+
#contourf = ax.contourf(X, Y, self.grid_depth, num_levels, cmap='Blues', vmin=500, vmax=1300)
2197+
# >>>> TODO: Update the above to add optional inputs for bounds (vmin/vmax) on contour plot colors for bathymetry <<<<
21962198

21972199
if not bare: # Add colorbar with label
21982200
cbar = plt.colorbar(contourf, ax=ax, fraction=0.04, label='Water Depth (m)')

0 commit comments

Comments
 (0)