Skip to content

Commit

Permalink
Merge pull request #1204 from kthyng/update_larval_fish
Browse files Browse the repository at this point in the history
Changes to LarvalFish so Stokes can be modeled
  • Loading branch information
knutfrode authored Dec 15, 2023
2 parents 80ba911 + 8c56f1d commit c6cb259
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion opendrift/models/larvalfish.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ class LarvalFish(OceanDrift):
'ocean_vertical_diffusivity': {'fallback': 0.01, 'profiles': True},
'ocean_mixed_layer_thickness': {'fallback': 50},
'sea_water_temperature': {'fallback': 10, 'profiles': True},
'sea_water_salinity': {'fallback': 34, 'profiles': True}
'sea_water_salinity': {'fallback': 34, 'profiles': True},
'sea_surface_wave_stokes_drift_x_velocity': {'fallback': 0},
'sea_surface_wave_stokes_drift_y_velocity': {'fallback': 0},
}

required_profiles_z_range = [0, -50] # The depth range (in m) which profiles should cover
Expand Down Expand Up @@ -252,6 +254,10 @@ def update(self):

self.update_fish_larvae()
self.advect_ocean_current()

# Stokes drift
self.stokes_drift()

self.update_terminal_velocity()
self.vertical_mixing()
self.larvae_vertical_migration()

0 comments on commit c6cb259

Please sign in to comment.