Skip to content

Commit

Permalink
Moving OpenOil max_speed from obsolete class property to config setting
Browse files Browse the repository at this point in the history
  • Loading branch information
knutfrode committed Apr 19, 2024
1 parent 745ad4e commit a0c636e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions opendrift/models/openhns.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,6 @@ class OpenHNS(OceanDrift):
}


max_speed = 1.3 # m/s

hns_types = {
'butyl': {'evaporation_rate': .03, 'dissolution_rate': .05},
'acetone': {'evaporation_rate': .16, 'dissolution_rate': .01},
Expand Down
3 changes: 1 addition & 2 deletions opendrift/models/openoil/openoil.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,6 @@ class OpenOil(OceanDrift):
}


max_speed = 1.3 # m/s

# Default colors for plotting
status_colors = {
'initial': 'green',
Expand Down Expand Up @@ -488,6 +486,7 @@ def __init__(self, weathering_model='noaa', *args, **kwargs):
self._set_config_default('drift:vertical_mixing', True)
self._set_config_default('drift:current_uncertainty', 0.05)
self._set_config_default('drift:wind_uncertainty', 0.5)
self._set_config_default('drift:max_speed', 1.3)

def update_surface_oilfilm_thickness(self):
'''The mass of oil is summed within a grid of 100x100
Expand Down

0 comments on commit a0c636e

Please sign in to comment.