Skip to content

Commit

Permalink
Update test_opendrift.py
Browse files Browse the repository at this point in the history
  • Loading branch information
knutfrode authored Jul 4, 2024
1 parent e5685fb commit 54e9e2b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions recipe/test_opendrift.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,23 @@
'16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc')
o.add_reader([reader_norkyst, reader_arome])

#%%
# Adjusting some configuration
o.set_config('processes:evaporation', True)
o.set_config('processes:emulsification', True)
o.set_config('drift:vertical_mixing', True)
o.set_config('vertical_mixing:timestep', 5)

#%%
# Seeding some particles
time = reader_arome.start_time
oil_type = 'GULLFAKS, EXXON'
oil_type = 'ARABIAN MEDIUM, API'
oil_type = 'ALGERIAN CONDENSATE'
oil_type = 'HEIDRUN AARE 2023'
o.seed_elements(lon=4.9, lat=60.1, radius=3000, number=2000,
time=time, z=0, oil_type=oil_type)

#%%
# Adjusting some configuration
o.set_config('processes:evaporation', True)
o.set_config('processes:emulsification', True)
o.set_config('drift:vertical_mixing', True)
o.set_config('vertical_mixing:timestep', 5)

#%%
# Running model
o.run(steps=4*40, time_step=900, time_step_output=3600)
Expand Down

0 comments on commit 54e9e2b

Please sign in to comment.