Skip to content

Commit

Permalink
Merge pull request #1248 from knutfrode/dev
Browse files Browse the repository at this point in the history
Small updates to biodegradation example
  • Loading branch information
knutfrode authored Mar 8, 2024
2 parents 470017f + 67e89a9 commit aba69c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions examples/example_biodegradation.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# Fast decay for droplets, and slow decay for slick
decay = {'biodegradation_decay_rate_slick': np.log(2)/timedelta(days=100).total_seconds(),
'biodegradation_decay_rate_droplet': np.log(2)/timedelta(days=3).total_seconds(),
'oil_type': 'GENERIC MEDIUM CRUDE'}
'oil_type': 'GENERIC MEDIUM CRUDE', 'm3_per_hour': .5}

#%%
# Seed 5000 oil elements at surface, and 5000 elements at 100m depth
Expand All @@ -41,6 +41,3 @@
#%%
# Print and plot results
o.plot_oil_budget(show_watercontent_and_viscosity=False, show_wind_and_current=False)

#%%
# .. image:: /gallery/animations/example_biodegradation_0.gif
2 changes: 1 addition & 1 deletion opendrift/models/openoil/openoil.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class Oil(Lagrangian3DArray):
}),
('mass_biodegraded', {
'dtype': np.float32,
'units': 'fraction',
'units': 'kg',
'seed': False,
'default': 0
}),
Expand Down

0 comments on commit aba69c1

Please sign in to comment.