Oil film thickness

from datetime import datetime, timedelta
import matplotlib.pyplot as plt
import numpy as np
from opendrift.models.openoil import OpenOil


number = 10000
timestep = timedelta(minutes=10)
timestep_output = timedelta(minutes=60)
duration = timedelta(hours=20)
mass_oil = 2000  # mass oil per particle
oil_type = 'GENERIC DIESEL'
#oil_type = 'GENERIC BUNKER C'

First run, where surface oil thickness is updated

o1 = OpenOil(loglevel=20, weathering_model='noaa')
20:18:48 INFO    opendrift.models.basemodel:515: OpenDriftSimulation initialised (version 1.12.0 / v1.12.0-26-g390e945)

Northwards wind, eastwards current

o1.set_config('environment:fallback:land_binary_mask', 0)
o1.set_config('environment:fallback:x_wind', 0)
o1.set_config('environment:fallback:y_wind', 7)
o1.set_config('environment:fallback:sea_surface_wave_stokes_drift_x_velocity', 0)
o1.set_config('environment:fallback:sea_surface_wave_stokes_drift_y_velocity', .3)
o1.set_config('environment:fallback:x_sea_water_velocity', .1)
o1.set_config('environment:fallback:y_sea_water_velocity', 0)

Using Johansen droplet spectrum, which depends on oil film thickness

o1.set_config('wave_entrainment:droplet_size_distribution',
             'Johansen et al. (2015)')
o1.set_config('drift:wind_uncertainty', 2)
o1.set_config('drift:current_uncertainty', .1)
o1.set_config('processes:dispersion', False)
o1.set_config('processes:update_oilfilm_thickness', True)

o1.seed_elements(lon=4.5, lat=60, number=number,
                mass_oil=mass_oil, radius=1000,
                oil_type=oil_type,
                time=datetime.utcnow())
o1.run(time_step=timestep, time_step_output=timestep_output,
       duration=duration)
20:18:48 INFO    opendrift.models.openoil.adios.dirjs:86: Querying ADIOS database for oil: GENERIC DIESEL
20:18:48 INFO    opendrift.models.openoil.openoil:1715: Using density 855.84763 and viscosity 8.644570579524653e-06 of oiltype GENERIC DIESEL
20:18:48 INFO    opendrift.models.basemodel.environment:218: Adding a dynamical landmask with max. priority based on assumed maximum speed of 1.3 m/s. Adding a customised landmask may be faster...
20:18:51 INFO    opendrift.models.basemodel.environment:245: Fallback values will be used for the following variables which have no readers:
20:18:51 INFO    opendrift.models.basemodel.environment:248:    x_sea_water_velocity: 0.100000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    y_sea_water_velocity: 0.000000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    x_wind: 0.000000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    y_wind: 7.000000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    sea_surface_height: 0.000000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    upward_sea_water_velocity: 0.000000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_significant_height: 0.000000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_stokes_drift_x_velocity: 0.000000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_stokes_drift_y_velocity: 0.300000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    sea_ice_area_fraction: 0.000000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    sea_ice_x_velocity: 0.000000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    sea_ice_y_velocity: 0.000000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    sea_water_temperature: 10.000000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    sea_water_salinity: 34.000000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    sea_floor_depth_below_sea_level: 10000.000000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    ocean_vertical_diffusivity: 0.020000
20:18:51 INFO    opendrift.models.basemodel.environment:248:    ocean_mixed_layer_thickness: 50.000000
20:18:51 INFO    opendrift.models.basemodel:935: Using existing reader for land_binary_mask
20:18:51 INFO    opendrift.models.basemodel:946: All points are in ocean
20:18:51 INFO    opendrift.models.openoil.openoil:684: Oil-water surface tension is 0.030314 Nm
20:18:51 INFO    opendrift.models.openoil.openoil:697: Max water fraction not available for GENERIC DIESEL, using default
20:18:51 INFO    opendrift.models.basemodel:2035: 2024-12-12 20:18:48.155303 - step 1 of 120 - 10000 active elements (0 deactivated)
20:18:52 INFO    opendrift.models.basemodel:2035: 2024-12-12 20:28:48.155303 - step 2 of 120 - 10000 active elements (0 deactivated)
20:18:52 INFO    opendrift.models.basemodel:2035: 2024-12-12 20:38:48.155303 - step 3 of 120 - 10000 active elements (0 deactivated)
20:18:53 INFO    opendrift.models.basemodel:2035: 2024-12-12 20:48:48.155303 - step 4 of 120 - 10000 active elements (0 deactivated)
20:18:53 INFO    opendrift.models.basemodel:2035: 2024-12-12 20:58:48.155303 - step 5 of 120 - 10000 active elements (0 deactivated)
20:18:53 INFO    opendrift.models.basemodel:2035: 2024-12-12 21:08:48.155303 - step 6 of 120 - 10000 active elements (0 deactivated)
20:18:53 INFO    opendrift.models.basemodel:2035: 2024-12-12 21:18:48.155303 - step 7 of 120 - 10000 active elements (0 deactivated)
20:18:53 INFO    opendrift.models.basemodel:2035: 2024-12-12 21:28:48.155303 - step 8 of 120 - 10000 active elements (0 deactivated)
20:18:53 INFO    opendrift.models.basemodel:2035: 2024-12-12 21:38:48.155303 - step 9 of 120 - 10000 active elements (0 deactivated)
20:18:54 INFO    opendrift.models.basemodel:2035: 2024-12-12 21:48:48.155303 - step 10 of 120 - 10000 active elements (0 deactivated)
20:18:54 INFO    opendrift.models.basemodel:2035: 2024-12-12 21:58:48.155303 - step 11 of 120 - 10000 active elements (0 deactivated)
20:18:54 INFO    opendrift.models.basemodel:2035: 2024-12-12 22:08:48.155303 - step 12 of 120 - 10000 active elements (0 deactivated)
20:18:54 INFO    opendrift.models.basemodel:2035: 2024-12-12 22:18:48.155303 - step 13 of 120 - 10000 active elements (0 deactivated)
20:18:54 INFO    opendrift.models.basemodel:2035: 2024-12-12 22:28:48.155303 - step 14 of 120 - 10000 active elements (0 deactivated)
20:18:54 INFO    opendrift.models.basemodel:2035: 2024-12-12 22:38:48.155303 - step 15 of 120 - 10000 active elements (0 deactivated)
20:18:55 INFO    opendrift.models.basemodel:2035: 2024-12-12 22:48:48.155303 - step 16 of 120 - 10000 active elements (0 deactivated)
20:18:55 INFO    opendrift.models.basemodel:2035: 2024-12-12 22:58:48.155303 - step 17 of 120 - 10000 active elements (0 deactivated)
20:18:55 INFO    opendrift.models.basemodel:2035: 2024-12-12 23:08:48.155303 - step 18 of 120 - 10000 active elements (0 deactivated)
20:18:55 INFO    opendrift.models.basemodel:2035: 2024-12-12 23:18:48.155303 - step 19 of 120 - 10000 active elements (0 deactivated)
20:18:55 INFO    opendrift.models.basemodel:2035: 2024-12-12 23:28:48.155303 - step 20 of 120 - 10000 active elements (0 deactivated)
20:18:55 INFO    opendrift.models.basemodel:2035: 2024-12-12 23:38:48.155303 - step 21 of 120 - 10000 active elements (0 deactivated)
20:18:55 INFO    opendrift.models.basemodel:2035: 2024-12-12 23:48:48.155303 - step 22 of 120 - 10000 active elements (0 deactivated)
20:18:56 INFO    opendrift.models.basemodel:2035: 2024-12-12 23:58:48.155303 - step 23 of 120 - 10000 active elements (0 deactivated)
20:18:56 INFO    opendrift.models.basemodel:2035: 2024-12-13 00:08:48.155303 - step 24 of 120 - 10000 active elements (0 deactivated)
20:18:56 INFO    opendrift.models.basemodel:2035: 2024-12-13 00:18:48.155303 - step 25 of 120 - 10000 active elements (0 deactivated)
20:18:56 INFO    opendrift.models.basemodel:2035: 2024-12-13 00:28:48.155303 - step 26 of 120 - 10000 active elements (0 deactivated)
20:18:56 INFO    opendrift.models.basemodel:2035: 2024-12-13 00:38:48.155303 - step 27 of 120 - 10000 active elements (0 deactivated)
20:18:56 INFO    opendrift.models.basemodel:2035: 2024-12-13 00:48:48.155303 - step 28 of 120 - 10000 active elements (0 deactivated)
20:18:57 INFO    opendrift.models.basemodel:2035: 2024-12-13 00:58:48.155303 - step 29 of 120 - 10000 active elements (0 deactivated)
20:18:57 INFO    opendrift.models.basemodel:2035: 2024-12-13 01:08:48.155303 - step 30 of 120 - 10000 active elements (0 deactivated)
20:18:57 INFO    opendrift.models.basemodel:2035: 2024-12-13 01:18:48.155303 - step 31 of 120 - 10000 active elements (0 deactivated)
20:18:57 INFO    opendrift.models.basemodel:2035: 2024-12-13 01:28:48.155303 - step 32 of 120 - 10000 active elements (0 deactivated)
20:18:57 INFO    opendrift.models.basemodel:2035: 2024-12-13 01:38:48.155303 - step 33 of 120 - 10000 active elements (0 deactivated)
20:18:57 INFO    opendrift.models.basemodel:2035: 2024-12-13 01:48:48.155303 - step 34 of 120 - 10000 active elements (0 deactivated)
20:18:57 INFO    opendrift.models.basemodel:2035: 2024-12-13 01:58:48.155303 - step 35 of 120 - 10000 active elements (0 deactivated)
20:18:58 INFO    opendrift.models.basemodel:2035: 2024-12-13 02:08:48.155303 - step 36 of 120 - 10000 active elements (0 deactivated)
20:18:58 INFO    opendrift.models.basemodel:2035: 2024-12-13 02:18:48.155303 - step 37 of 120 - 10000 active elements (0 deactivated)
20:18:58 INFO    opendrift.models.basemodel:2035: 2024-12-13 02:28:48.155303 - step 38 of 120 - 10000 active elements (0 deactivated)
20:18:58 INFO    opendrift.models.basemodel:2035: 2024-12-13 02:38:48.155303 - step 39 of 120 - 10000 active elements (0 deactivated)
20:18:58 INFO    opendrift.models.basemodel:2035: 2024-12-13 02:48:48.155303 - step 40 of 120 - 10000 active elements (0 deactivated)
20:18:58 INFO    opendrift.models.basemodel:2035: 2024-12-13 02:58:48.155303 - step 41 of 120 - 10000 active elements (0 deactivated)
20:18:58 INFO    opendrift.models.basemodel:2035: 2024-12-13 03:08:48.155303 - step 42 of 120 - 10000 active elements (0 deactivated)
20:18:59 INFO    opendrift.models.basemodel:2035: 2024-12-13 03:18:48.155303 - step 43 of 120 - 10000 active elements (0 deactivated)
20:18:59 INFO    opendrift.models.basemodel:2035: 2024-12-13 03:28:48.155303 - step 44 of 120 - 10000 active elements (0 deactivated)
20:18:59 INFO    opendrift.models.basemodel:2035: 2024-12-13 03:38:48.155303 - step 45 of 120 - 10000 active elements (0 deactivated)
20:18:59 INFO    opendrift.models.basemodel:2035: 2024-12-13 03:48:48.155303 - step 46 of 120 - 10000 active elements (0 deactivated)
20:18:59 INFO    opendrift.models.basemodel:2035: 2024-12-13 03:58:48.155303 - step 47 of 120 - 10000 active elements (0 deactivated)
20:18:59 INFO    opendrift.models.basemodel:2035: 2024-12-13 04:08:48.155303 - step 48 of 120 - 10000 active elements (0 deactivated)
20:18:59 INFO    opendrift.models.basemodel:2035: 2024-12-13 04:18:48.155303 - step 49 of 120 - 10000 active elements (0 deactivated)
20:19:00 INFO    opendrift.models.basemodel:2035: 2024-12-13 04:28:48.155303 - step 50 of 120 - 10000 active elements (0 deactivated)
20:19:00 INFO    opendrift.models.basemodel:2035: 2024-12-13 04:38:48.155303 - step 51 of 120 - 10000 active elements (0 deactivated)
20:19:00 INFO    opendrift.models.basemodel:2035: 2024-12-13 04:48:48.155303 - step 52 of 120 - 10000 active elements (0 deactivated)
20:19:00 INFO    opendrift.models.basemodel:2035: 2024-12-13 04:58:48.155303 - step 53 of 120 - 10000 active elements (0 deactivated)
20:19:00 INFO    opendrift.models.basemodel:2035: 2024-12-13 05:08:48.155303 - step 54 of 120 - 10000 active elements (0 deactivated)
20:19:00 INFO    opendrift.models.basemodel:2035: 2024-12-13 05:18:48.155303 - step 55 of 120 - 10000 active elements (0 deactivated)
20:19:00 INFO    opendrift.models.basemodel:2035: 2024-12-13 05:28:48.155303 - step 56 of 120 - 10000 active elements (0 deactivated)
20:19:01 INFO    opendrift.models.basemodel:2035: 2024-12-13 05:38:48.155303 - step 57 of 120 - 10000 active elements (0 deactivated)
20:19:01 INFO    opendrift.models.basemodel:2035: 2024-12-13 05:48:48.155303 - step 58 of 120 - 10000 active elements (0 deactivated)
20:19:01 INFO    opendrift.models.basemodel:2035: 2024-12-13 05:58:48.155303 - step 59 of 120 - 10000 active elements (0 deactivated)
20:19:01 INFO    opendrift.models.basemodel:2035: 2024-12-13 06:08:48.155303 - step 60 of 120 - 10000 active elements (0 deactivated)
20:19:01 INFO    opendrift.models.basemodel:2035: 2024-12-13 06:18:48.155303 - step 61 of 120 - 10000 active elements (0 deactivated)
20:19:01 INFO    opendrift.models.basemodel:2035: 2024-12-13 06:28:48.155303 - step 62 of 120 - 10000 active elements (0 deactivated)
20:19:01 INFO    opendrift.models.basemodel:2035: 2024-12-13 06:38:48.155303 - step 63 of 120 - 10000 active elements (0 deactivated)
20:19:02 INFO    opendrift.models.basemodel:2035: 2024-12-13 06:48:48.155303 - step 64 of 120 - 10000 active elements (0 deactivated)
20:19:02 INFO    opendrift.models.basemodel:2035: 2024-12-13 06:58:48.155303 - step 65 of 120 - 10000 active elements (0 deactivated)
20:19:02 INFO    opendrift.models.basemodel:2035: 2024-12-13 07:08:48.155303 - step 66 of 120 - 10000 active elements (0 deactivated)
20:19:02 INFO    opendrift.models.basemodel:2035: 2024-12-13 07:18:48.155303 - step 67 of 120 - 10000 active elements (0 deactivated)
20:19:02 INFO    opendrift.models.basemodel:2035: 2024-12-13 07:28:48.155303 - step 68 of 120 - 10000 active elements (0 deactivated)
20:19:02 INFO    opendrift.models.basemodel:2035: 2024-12-13 07:38:48.155303 - step 69 of 120 - 10000 active elements (0 deactivated)
20:19:02 INFO    opendrift.models.basemodel:2035: 2024-12-13 07:48:48.155303 - step 70 of 120 - 10000 active elements (0 deactivated)
20:19:02 INFO    opendrift.models.basemodel:2035: 2024-12-13 07:58:48.155303 - step 71 of 120 - 10000 active elements (0 deactivated)
20:19:03 INFO    opendrift.models.basemodel:2035: 2024-12-13 08:08:48.155303 - step 72 of 120 - 10000 active elements (0 deactivated)
20:19:03 INFO    opendrift.models.basemodel:2035: 2024-12-13 08:18:48.155303 - step 73 of 120 - 10000 active elements (0 deactivated)
20:19:03 INFO    opendrift.models.basemodel:2035: 2024-12-13 08:28:48.155303 - step 74 of 120 - 10000 active elements (0 deactivated)
20:19:03 INFO    opendrift.models.basemodel:2035: 2024-12-13 08:38:48.155303 - step 75 of 120 - 10000 active elements (0 deactivated)
20:19:03 INFO    opendrift.models.basemodel:2035: 2024-12-13 08:48:48.155303 - step 76 of 120 - 10000 active elements (0 deactivated)
20:19:03 INFO    opendrift.models.basemodel:2035: 2024-12-13 08:58:48.155303 - step 77 of 120 - 10000 active elements (0 deactivated)
20:19:03 INFO    opendrift.models.basemodel:2035: 2024-12-13 09:08:48.155303 - step 78 of 120 - 10000 active elements (0 deactivated)
20:19:04 INFO    opendrift.models.basemodel:2035: 2024-12-13 09:18:48.155303 - step 79 of 120 - 10000 active elements (0 deactivated)
20:19:04 INFO    opendrift.models.basemodel:2035: 2024-12-13 09:28:48.155303 - step 80 of 120 - 10000 active elements (0 deactivated)
20:19:04 INFO    opendrift.models.basemodel:2035: 2024-12-13 09:38:48.155303 - step 81 of 120 - 10000 active elements (0 deactivated)
20:19:04 INFO    opendrift.models.basemodel:2035: 2024-12-13 09:48:48.155303 - step 82 of 120 - 10000 active elements (0 deactivated)
20:19:04 INFO    opendrift.models.basemodel:2035: 2024-12-13 09:58:48.155303 - step 83 of 120 - 10000 active elements (0 deactivated)
20:19:04 INFO    opendrift.models.basemodel:2035: 2024-12-13 10:08:48.155303 - step 84 of 120 - 10000 active elements (0 deactivated)
20:19:04 INFO    opendrift.models.basemodel:2035: 2024-12-13 10:18:48.155303 - step 85 of 120 - 10000 active elements (0 deactivated)
20:19:05 INFO    opendrift.models.basemodel:2035: 2024-12-13 10:28:48.155303 - step 86 of 120 - 10000 active elements (0 deactivated)
20:19:05 INFO    opendrift.models.basemodel:2035: 2024-12-13 10:38:48.155303 - step 87 of 120 - 10000 active elements (0 deactivated)
20:19:05 INFO    opendrift.models.basemodel:2035: 2024-12-13 10:48:48.155303 - step 88 of 120 - 10000 active elements (0 deactivated)
20:19:05 INFO    opendrift.models.basemodel:2035: 2024-12-13 10:58:48.155303 - step 89 of 120 - 10000 active elements (0 deactivated)
20:19:05 INFO    opendrift.models.basemodel:2035: 2024-12-13 11:08:48.155303 - step 90 of 120 - 10000 active elements (0 deactivated)
20:19:05 INFO    opendrift.models.basemodel:2035: 2024-12-13 11:18:48.155303 - step 91 of 120 - 10000 active elements (0 deactivated)
20:19:05 INFO    opendrift.models.basemodel:2035: 2024-12-13 11:28:48.155303 - step 92 of 120 - 10000 active elements (0 deactivated)
20:19:06 INFO    opendrift.models.basemodel:2035: 2024-12-13 11:38:48.155303 - step 93 of 120 - 10000 active elements (0 deactivated)
20:19:06 INFO    opendrift.models.basemodel:2035: 2024-12-13 11:48:48.155303 - step 94 of 120 - 10000 active elements (0 deactivated)
20:19:06 INFO    opendrift.models.basemodel:2035: 2024-12-13 11:58:48.155303 - step 95 of 120 - 10000 active elements (0 deactivated)
20:19:06 INFO    opendrift.models.basemodel:2035: 2024-12-13 12:08:48.155303 - step 96 of 120 - 10000 active elements (0 deactivated)
20:19:06 INFO    opendrift.models.basemodel:2035: 2024-12-13 12:18:48.155303 - step 97 of 120 - 10000 active elements (0 deactivated)
20:19:06 INFO    opendrift.models.basemodel:2035: 2024-12-13 12:28:48.155303 - step 98 of 120 - 10000 active elements (0 deactivated)
20:19:06 INFO    opendrift.models.basemodel:2035: 2024-12-13 12:38:48.155303 - step 99 of 120 - 10000 active elements (0 deactivated)
20:19:06 INFO    opendrift.models.basemodel:2035: 2024-12-13 12:48:48.155303 - step 100 of 120 - 10000 active elements (0 deactivated)
20:19:07 INFO    opendrift.models.basemodel:2035: 2024-12-13 12:58:48.155303 - step 101 of 120 - 10000 active elements (0 deactivated)
20:19:07 INFO    opendrift.models.basemodel:2035: 2024-12-13 13:08:48.155303 - step 102 of 120 - 10000 active elements (0 deactivated)
20:19:07 INFO    opendrift.models.basemodel:2035: 2024-12-13 13:18:48.155303 - step 103 of 120 - 10000 active elements (0 deactivated)
20:19:07 INFO    opendrift.models.basemodel:2035: 2024-12-13 13:28:48.155303 - step 104 of 120 - 10000 active elements (0 deactivated)
20:19:07 INFO    opendrift.models.basemodel:2035: 2024-12-13 13:38:48.155303 - step 105 of 120 - 10000 active elements (0 deactivated)
20:19:07 INFO    opendrift.models.basemodel:2035: 2024-12-13 13:48:48.155303 - step 106 of 120 - 10000 active elements (0 deactivated)
20:19:07 INFO    opendrift.models.basemodel:2035: 2024-12-13 13:58:48.155303 - step 107 of 120 - 10000 active elements (0 deactivated)
20:19:08 INFO    opendrift.models.basemodel:2035: 2024-12-13 14:08:48.155303 - step 108 of 120 - 10000 active elements (0 deactivated)
20:19:08 INFO    opendrift.models.basemodel:2035: 2024-12-13 14:18:48.155303 - step 109 of 120 - 10000 active elements (0 deactivated)
20:19:08 INFO    opendrift.models.basemodel:2035: 2024-12-13 14:28:48.155303 - step 110 of 120 - 10000 active elements (0 deactivated)
20:19:08 INFO    opendrift.models.basemodel:2035: 2024-12-13 14:38:48.155303 - step 111 of 120 - 10000 active elements (0 deactivated)
20:19:08 INFO    opendrift.models.basemodel:2035: 2024-12-13 14:48:48.155303 - step 112 of 120 - 10000 active elements (0 deactivated)
20:19:08 INFO    opendrift.models.basemodel:2035: 2024-12-13 14:58:48.155303 - step 113 of 120 - 10000 active elements (0 deactivated)
20:19:08 INFO    opendrift.models.basemodel:2035: 2024-12-13 15:08:48.155303 - step 114 of 120 - 10000 active elements (0 deactivated)
20:19:08 INFO    opendrift.models.basemodel:2035: 2024-12-13 15:18:48.155303 - step 115 of 120 - 10000 active elements (0 deactivated)
20:19:09 INFO    opendrift.models.basemodel:2035: 2024-12-13 15:28:48.155303 - step 116 of 120 - 10000 active elements (0 deactivated)
20:19:09 INFO    opendrift.models.basemodel:2035: 2024-12-13 15:38:48.155303 - step 117 of 120 - 10000 active elements (0 deactivated)
20:19:09 INFO    opendrift.models.basemodel:2035: 2024-12-13 15:48:48.155303 - step 118 of 120 - 10000 active elements (0 deactivated)
20:19:09 INFO    opendrift.models.basemodel:2035: 2024-12-13 15:58:48.155303 - step 119 of 120 - 10000 active elements (0 deactivated)
20:19:09 INFO    opendrift.models.basemodel:2035: 2024-12-13 16:08:48.155303 - step 120 of 120 - 10000 active elements (0 deactivated)

Animation shows how oil thickness evolves, and decreases due to evaporation and spreading

unitfactor=1e6  # show film thickness in micrometers
o1.animation(color='oil_film_thickness', fast=True,
             vmin=1e-7*unitfactor, vmax=1e-4*unitfactor,
             unitfactor=unitfactor, surface_only=True)
20:19:09 WARNING opendrift.models.basemodel:2410: Plotting fast. This will make your plots less accurate.
20:19:12 INFO    opendrift.models.basemodel:4613: Saving animation to /root/project/docs/source/gallery/animations/example_oil_thickness_0.gif...
20:19:27 INFO    opendrift.models.basemodel:3037: Time to make animation: 0:00:17.319485
../_images/example_oil_thickness_0.gif

Second run, identical but without updating surface oil thickness

o2 = OpenOil(loglevel=20, weathering_model='noaa')
o2.set_config('environment:fallback:land_binary_mask', 0)
o2.set_config('environment:fallback:x_wind', 0)
o2.set_config('environment:fallback:y_wind', 7)
o2.set_config('environment:fallback:sea_surface_wave_stokes_drift_x_velocity', 0)
o2.set_config('environment:fallback:sea_surface_wave_stokes_drift_y_velocity', .3)
o2.set_config('environment:fallback:x_sea_water_velocity', .1)
o2.set_config('environment:fallback:y_sea_water_velocity', 0)

o2.set_config('wave_entrainment:droplet_size_distribution',
             'Johansen et al. (2015)')
o2.set_config('drift:wind_uncertainty', 2)
o2.set_config('drift:current_uncertainty', .1)
o2.set_config('processes:dispersion', False)
o2.set_config('processes:update_oilfilm_thickness', False)

o2.seed_elements(lon=4.5, lat=60, number=number,
                mass_oil=mass_oil, radius=1000,
                oil_type=oil_type,
                time=datetime.utcnow())
o2.run(time_step=timestep, time_step_output=timestep_output,
       duration=duration)
20:19:27 INFO    opendrift.models.basemodel:515: OpenDriftSimulation initialised (version 1.12.0 / v1.12.0-26-g390e945)
20:19:27 INFO    opendrift.models.openoil.adios.dirjs:86: Querying ADIOS database for oil: GENERIC DIESEL
20:19:27 INFO    opendrift.models.openoil.openoil:1715: Using density 855.84763 and viscosity 8.644570579524653e-06 of oiltype GENERIC DIESEL
20:19:27 INFO    opendrift.models.basemodel.environment:218: Adding a dynamical landmask with max. priority based on assumed maximum speed of 1.3 m/s. Adding a customised landmask may be faster...
20:19:27 INFO    opendrift.models.basemodel.environment:245: Fallback values will be used for the following variables which have no readers:
20:19:27 INFO    opendrift.models.basemodel.environment:248:    x_sea_water_velocity: 0.100000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    y_sea_water_velocity: 0.000000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    x_wind: 0.000000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    y_wind: 7.000000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    sea_surface_height: 0.000000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    upward_sea_water_velocity: 0.000000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_significant_height: 0.000000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_stokes_drift_x_velocity: 0.000000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_stokes_drift_y_velocity: 0.300000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    sea_ice_area_fraction: 0.000000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    sea_ice_x_velocity: 0.000000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    sea_ice_y_velocity: 0.000000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    sea_water_temperature: 10.000000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    sea_water_salinity: 34.000000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    sea_floor_depth_below_sea_level: 10000.000000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    ocean_vertical_diffusivity: 0.020000
20:19:27 INFO    opendrift.models.basemodel.environment:248:    ocean_mixed_layer_thickness: 50.000000
20:19:27 INFO    opendrift.models.basemodel:935: Using existing reader for land_binary_mask
20:19:27 INFO    opendrift.models.basemodel:946: All points are in ocean
20:19:27 INFO    opendrift.models.openoil.openoil:684: Oil-water surface tension is 0.030314 Nm
20:19:27 INFO    opendrift.models.openoil.openoil:697: Max water fraction not available for GENERIC DIESEL, using default
20:19:27 INFO    opendrift.models.basemodel:2035: 2024-12-12 20:19:27.242542 - step 1 of 120 - 10000 active elements (0 deactivated)
20:19:27 INFO    opendrift.models.basemodel:2035: 2024-12-12 20:29:27.242542 - step 2 of 120 - 10000 active elements (0 deactivated)
20:19:27 INFO    opendrift.models.basemodel:2035: 2024-12-12 20:39:27.242542 - step 3 of 120 - 10000 active elements (0 deactivated)
20:19:28 INFO    opendrift.models.basemodel:2035: 2024-12-12 20:49:27.242542 - step 4 of 120 - 10000 active elements (0 deactivated)
20:19:28 INFO    opendrift.models.basemodel:2035: 2024-12-12 20:59:27.242542 - step 5 of 120 - 10000 active elements (0 deactivated)
20:19:28 INFO    opendrift.models.basemodel:2035: 2024-12-12 21:09:27.242542 - step 6 of 120 - 10000 active elements (0 deactivated)
20:19:28 INFO    opendrift.models.basemodel:2035: 2024-12-12 21:19:27.242542 - step 7 of 120 - 10000 active elements (0 deactivated)
20:19:28 INFO    opendrift.models.basemodel:2035: 2024-12-12 21:29:27.242542 - step 8 of 120 - 10000 active elements (0 deactivated)
20:19:29 INFO    opendrift.models.basemodel:2035: 2024-12-12 21:39:27.242542 - step 9 of 120 - 10000 active elements (0 deactivated)
20:19:29 INFO    opendrift.models.basemodel:2035: 2024-12-12 21:49:27.242542 - step 10 of 120 - 10000 active elements (0 deactivated)
20:19:29 INFO    opendrift.models.basemodel:2035: 2024-12-12 21:59:27.242542 - step 11 of 120 - 10000 active elements (0 deactivated)
20:19:29 INFO    opendrift.models.basemodel:2035: 2024-12-12 22:09:27.242542 - step 12 of 120 - 10000 active elements (0 deactivated)
20:19:29 INFO    opendrift.models.basemodel:2035: 2024-12-12 22:19:27.242542 - step 13 of 120 - 10000 active elements (0 deactivated)
20:19:30 INFO    opendrift.models.basemodel:2035: 2024-12-12 22:29:27.242542 - step 14 of 120 - 10000 active elements (0 deactivated)
20:19:30 INFO    opendrift.models.basemodel:2035: 2024-12-12 22:39:27.242542 - step 15 of 120 - 10000 active elements (0 deactivated)
20:19:30 INFO    opendrift.models.basemodel:2035: 2024-12-12 22:49:27.242542 - step 16 of 120 - 10000 active elements (0 deactivated)
20:19:30 INFO    opendrift.models.basemodel:2035: 2024-12-12 22:59:27.242542 - step 17 of 120 - 10000 active elements (0 deactivated)
20:19:30 INFO    opendrift.models.basemodel:2035: 2024-12-12 23:09:27.242542 - step 18 of 120 - 10000 active elements (0 deactivated)
20:19:30 INFO    opendrift.models.basemodel:2035: 2024-12-12 23:19:27.242542 - step 19 of 120 - 10000 active elements (0 deactivated)
20:19:31 INFO    opendrift.models.basemodel:2035: 2024-12-12 23:29:27.242542 - step 20 of 120 - 10000 active elements (0 deactivated)
20:19:31 INFO    opendrift.models.basemodel:2035: 2024-12-12 23:39:27.242542 - step 21 of 120 - 10000 active elements (0 deactivated)
20:19:31 INFO    opendrift.models.basemodel:2035: 2024-12-12 23:49:27.242542 - step 22 of 120 - 10000 active elements (0 deactivated)
20:19:31 INFO    opendrift.models.basemodel:2035: 2024-12-12 23:59:27.242542 - step 23 of 120 - 10000 active elements (0 deactivated)
20:19:31 INFO    opendrift.models.basemodel:2035: 2024-12-13 00:09:27.242542 - step 24 of 120 - 10000 active elements (0 deactivated)
20:19:31 INFO    opendrift.models.basemodel:2035: 2024-12-13 00:19:27.242542 - step 25 of 120 - 10000 active elements (0 deactivated)
20:19:32 INFO    opendrift.models.basemodel:2035: 2024-12-13 00:29:27.242542 - step 26 of 120 - 10000 active elements (0 deactivated)
20:19:32 INFO    opendrift.models.basemodel:2035: 2024-12-13 00:39:27.242542 - step 27 of 120 - 10000 active elements (0 deactivated)
20:19:32 INFO    opendrift.models.basemodel:2035: 2024-12-13 00:49:27.242542 - step 28 of 120 - 10000 active elements (0 deactivated)
20:19:32 INFO    opendrift.models.basemodel:2035: 2024-12-13 00:59:27.242542 - step 29 of 120 - 10000 active elements (0 deactivated)
20:19:32 INFO    opendrift.models.basemodel:2035: 2024-12-13 01:09:27.242542 - step 30 of 120 - 10000 active elements (0 deactivated)
20:19:32 INFO    opendrift.models.basemodel:2035: 2024-12-13 01:19:27.242542 - step 31 of 120 - 10000 active elements (0 deactivated)
20:19:33 INFO    opendrift.models.basemodel:2035: 2024-12-13 01:29:27.242542 - step 32 of 120 - 10000 active elements (0 deactivated)
20:19:33 INFO    opendrift.models.basemodel:2035: 2024-12-13 01:39:27.242542 - step 33 of 120 - 10000 active elements (0 deactivated)
20:19:33 INFO    opendrift.models.basemodel:2035: 2024-12-13 01:49:27.242542 - step 34 of 120 - 10000 active elements (0 deactivated)
20:19:33 INFO    opendrift.models.basemodel:2035: 2024-12-13 01:59:27.242542 - step 35 of 120 - 10000 active elements (0 deactivated)
20:19:33 INFO    opendrift.models.basemodel:2035: 2024-12-13 02:09:27.242542 - step 36 of 120 - 10000 active elements (0 deactivated)
20:19:33 INFO    opendrift.models.basemodel:2035: 2024-12-13 02:19:27.242542 - step 37 of 120 - 10000 active elements (0 deactivated)
20:19:34 INFO    opendrift.models.basemodel:2035: 2024-12-13 02:29:27.242542 - step 38 of 120 - 10000 active elements (0 deactivated)
20:19:34 INFO    opendrift.models.basemodel:2035: 2024-12-13 02:39:27.242542 - step 39 of 120 - 10000 active elements (0 deactivated)
20:19:34 INFO    opendrift.models.basemodel:2035: 2024-12-13 02:49:27.242542 - step 40 of 120 - 10000 active elements (0 deactivated)
20:19:34 INFO    opendrift.models.basemodel:2035: 2024-12-13 02:59:27.242542 - step 41 of 120 - 10000 active elements (0 deactivated)
20:19:34 INFO    opendrift.models.basemodel:2035: 2024-12-13 03:09:27.242542 - step 42 of 120 - 10000 active elements (0 deactivated)
20:19:35 INFO    opendrift.models.basemodel:2035: 2024-12-13 03:19:27.242542 - step 43 of 120 - 10000 active elements (0 deactivated)
20:19:35 INFO    opendrift.models.basemodel:2035: 2024-12-13 03:29:27.242542 - step 44 of 120 - 10000 active elements (0 deactivated)
20:19:35 INFO    opendrift.models.basemodel:2035: 2024-12-13 03:39:27.242542 - step 45 of 120 - 10000 active elements (0 deactivated)
20:19:35 INFO    opendrift.models.basemodel:2035: 2024-12-13 03:49:27.242542 - step 46 of 120 - 10000 active elements (0 deactivated)
20:19:35 INFO    opendrift.models.basemodel:2035: 2024-12-13 03:59:27.242542 - step 47 of 120 - 10000 active elements (0 deactivated)
20:19:35 INFO    opendrift.models.basemodel:2035: 2024-12-13 04:09:27.242542 - step 48 of 120 - 10000 active elements (0 deactivated)
20:19:35 INFO    opendrift.models.basemodel:2035: 2024-12-13 04:19:27.242542 - step 49 of 120 - 10000 active elements (0 deactivated)
20:19:36 INFO    opendrift.models.basemodel:2035: 2024-12-13 04:29:27.242542 - step 50 of 120 - 10000 active elements (0 deactivated)
20:19:36 INFO    opendrift.models.basemodel:2035: 2024-12-13 04:39:27.242542 - step 51 of 120 - 10000 active elements (0 deactivated)
20:19:36 INFO    opendrift.models.basemodel:2035: 2024-12-13 04:49:27.242542 - step 52 of 120 - 10000 active elements (0 deactivated)
20:19:36 INFO    opendrift.models.basemodel:2035: 2024-12-13 04:59:27.242542 - step 53 of 120 - 10000 active elements (0 deactivated)
20:19:36 INFO    opendrift.models.basemodel:2035: 2024-12-13 05:09:27.242542 - step 54 of 120 - 10000 active elements (0 deactivated)
20:19:36 INFO    opendrift.models.basemodel:2035: 2024-12-13 05:19:27.242542 - step 55 of 120 - 10000 active elements (0 deactivated)
20:19:37 INFO    opendrift.models.basemodel:2035: 2024-12-13 05:29:27.242542 - step 56 of 120 - 10000 active elements (0 deactivated)
20:19:37 INFO    opendrift.models.basemodel:2035: 2024-12-13 05:39:27.242542 - step 57 of 120 - 10000 active elements (0 deactivated)
20:19:37 INFO    opendrift.models.basemodel:2035: 2024-12-13 05:49:27.242542 - step 58 of 120 - 10000 active elements (0 deactivated)
20:19:37 INFO    opendrift.models.basemodel:2035: 2024-12-13 05:59:27.242542 - step 59 of 120 - 10000 active elements (0 deactivated)
20:19:37 INFO    opendrift.models.basemodel:2035: 2024-12-13 06:09:27.242542 - step 60 of 120 - 10000 active elements (0 deactivated)
20:19:37 INFO    opendrift.models.basemodel:2035: 2024-12-13 06:19:27.242542 - step 61 of 120 - 10000 active elements (0 deactivated)
20:19:38 INFO    opendrift.models.basemodel:2035: 2024-12-13 06:29:27.242542 - step 62 of 120 - 10000 active elements (0 deactivated)
20:19:38 INFO    opendrift.models.basemodel:2035: 2024-12-13 06:39:27.242542 - step 63 of 120 - 10000 active elements (0 deactivated)
20:19:38 INFO    opendrift.models.basemodel:2035: 2024-12-13 06:49:27.242542 - step 64 of 120 - 10000 active elements (0 deactivated)
20:19:38 INFO    opendrift.models.basemodel:2035: 2024-12-13 06:59:27.242542 - step 65 of 120 - 10000 active elements (0 deactivated)
20:19:38 INFO    opendrift.models.basemodel:2035: 2024-12-13 07:09:27.242542 - step 66 of 120 - 10000 active elements (0 deactivated)
20:19:38 INFO    opendrift.models.basemodel:2035: 2024-12-13 07:19:27.242542 - step 67 of 120 - 10000 active elements (0 deactivated)
20:19:39 INFO    opendrift.models.basemodel:2035: 2024-12-13 07:29:27.242542 - step 68 of 120 - 10000 active elements (0 deactivated)
20:19:39 INFO    opendrift.models.basemodel:2035: 2024-12-13 07:39:27.242542 - step 69 of 120 - 10000 active elements (0 deactivated)
20:19:39 INFO    opendrift.models.basemodel:2035: 2024-12-13 07:49:27.242542 - step 70 of 120 - 10000 active elements (0 deactivated)
20:19:39 INFO    opendrift.models.basemodel:2035: 2024-12-13 07:59:27.242542 - step 71 of 120 - 10000 active elements (0 deactivated)
20:19:39 INFO    opendrift.models.basemodel:2035: 2024-12-13 08:09:27.242542 - step 72 of 120 - 10000 active elements (0 deactivated)
20:19:39 INFO    opendrift.models.basemodel:2035: 2024-12-13 08:19:27.242542 - step 73 of 120 - 10000 active elements (0 deactivated)
20:19:40 INFO    opendrift.models.basemodel:2035: 2024-12-13 08:29:27.242542 - step 74 of 120 - 10000 active elements (0 deactivated)
20:19:40 INFO    opendrift.models.basemodel:2035: 2024-12-13 08:39:27.242542 - step 75 of 120 - 10000 active elements (0 deactivated)
20:19:40 INFO    opendrift.models.basemodel:2035: 2024-12-13 08:49:27.242542 - step 76 of 120 - 10000 active elements (0 deactivated)
20:19:40 INFO    opendrift.models.basemodel:2035: 2024-12-13 08:59:27.242542 - step 77 of 120 - 10000 active elements (0 deactivated)
20:19:40 INFO    opendrift.models.basemodel:2035: 2024-12-13 09:09:27.242542 - step 78 of 120 - 10000 active elements (0 deactivated)
20:19:40 INFO    opendrift.models.basemodel:2035: 2024-12-13 09:19:27.242542 - step 79 of 120 - 10000 active elements (0 deactivated)
20:19:40 INFO    opendrift.models.basemodel:2035: 2024-12-13 09:29:27.242542 - step 80 of 120 - 10000 active elements (0 deactivated)
20:19:41 INFO    opendrift.models.basemodel:2035: 2024-12-13 09:39:27.242542 - step 81 of 120 - 10000 active elements (0 deactivated)
20:19:41 INFO    opendrift.models.basemodel:2035: 2024-12-13 09:49:27.242542 - step 82 of 120 - 10000 active elements (0 deactivated)
20:19:41 INFO    opendrift.models.basemodel:2035: 2024-12-13 09:59:27.242542 - step 83 of 120 - 10000 active elements (0 deactivated)
20:19:41 INFO    opendrift.models.basemodel:2035: 2024-12-13 10:09:27.242542 - step 84 of 120 - 10000 active elements (0 deactivated)
20:19:41 INFO    opendrift.models.basemodel:2035: 2024-12-13 10:19:27.242542 - step 85 of 120 - 10000 active elements (0 deactivated)
20:19:41 INFO    opendrift.models.basemodel:2035: 2024-12-13 10:29:27.242542 - step 86 of 120 - 10000 active elements (0 deactivated)
20:19:42 INFO    opendrift.models.basemodel:2035: 2024-12-13 10:39:27.242542 - step 87 of 120 - 10000 active elements (0 deactivated)
20:19:42 INFO    opendrift.models.basemodel:2035: 2024-12-13 10:49:27.242542 - step 88 of 120 - 10000 active elements (0 deactivated)
20:19:42 INFO    opendrift.models.basemodel:2035: 2024-12-13 10:59:27.242542 - step 89 of 120 - 10000 active elements (0 deactivated)
20:19:42 INFO    opendrift.models.basemodel:2035: 2024-12-13 11:09:27.242542 - step 90 of 120 - 10000 active elements (0 deactivated)
20:19:42 INFO    opendrift.models.basemodel:2035: 2024-12-13 11:19:27.242542 - step 91 of 120 - 10000 active elements (0 deactivated)
20:19:42 INFO    opendrift.models.basemodel:2035: 2024-12-13 11:29:27.242542 - step 92 of 120 - 10000 active elements (0 deactivated)
20:19:43 INFO    opendrift.models.basemodel:2035: 2024-12-13 11:39:27.242542 - step 93 of 120 - 10000 active elements (0 deactivated)
20:19:43 INFO    opendrift.models.basemodel:2035: 2024-12-13 11:49:27.242542 - step 94 of 120 - 10000 active elements (0 deactivated)
20:19:43 INFO    opendrift.models.basemodel:2035: 2024-12-13 11:59:27.242542 - step 95 of 120 - 10000 active elements (0 deactivated)
20:19:43 INFO    opendrift.models.basemodel:2035: 2024-12-13 12:09:27.242542 - step 96 of 120 - 10000 active elements (0 deactivated)
20:19:43 INFO    opendrift.models.basemodel:2035: 2024-12-13 12:19:27.242542 - step 97 of 120 - 10000 active elements (0 deactivated)
20:19:43 INFO    opendrift.models.basemodel:2035: 2024-12-13 12:29:27.242542 - step 98 of 120 - 10000 active elements (0 deactivated)
20:19:43 INFO    opendrift.models.basemodel:2035: 2024-12-13 12:39:27.242542 - step 99 of 120 - 10000 active elements (0 deactivated)
20:19:44 INFO    opendrift.models.basemodel:2035: 2024-12-13 12:49:27.242542 - step 100 of 120 - 10000 active elements (0 deactivated)
20:19:44 INFO    opendrift.models.basemodel:2035: 2024-12-13 12:59:27.242542 - step 101 of 120 - 10000 active elements (0 deactivated)
20:19:44 INFO    opendrift.models.basemodel:2035: 2024-12-13 13:09:27.242542 - step 102 of 120 - 10000 active elements (0 deactivated)
20:19:44 INFO    opendrift.models.basemodel:2035: 2024-12-13 13:19:27.242542 - step 103 of 120 - 10000 active elements (0 deactivated)
20:19:44 INFO    opendrift.models.basemodel:2035: 2024-12-13 13:29:27.242542 - step 104 of 120 - 10000 active elements (0 deactivated)
20:19:44 INFO    opendrift.models.basemodel:2035: 2024-12-13 13:39:27.242542 - step 105 of 120 - 10000 active elements (0 deactivated)
20:19:45 INFO    opendrift.models.basemodel:2035: 2024-12-13 13:49:27.242542 - step 106 of 120 - 10000 active elements (0 deactivated)
20:19:45 INFO    opendrift.models.basemodel:2035: 2024-12-13 13:59:27.242542 - step 107 of 120 - 10000 active elements (0 deactivated)
20:19:45 INFO    opendrift.models.basemodel:2035: 2024-12-13 14:09:27.242542 - step 108 of 120 - 10000 active elements (0 deactivated)
20:19:45 INFO    opendrift.models.basemodel:2035: 2024-12-13 14:19:27.242542 - step 109 of 120 - 10000 active elements (0 deactivated)
20:19:45 INFO    opendrift.models.basemodel:2035: 2024-12-13 14:29:27.242542 - step 110 of 120 - 10000 active elements (0 deactivated)
20:19:45 INFO    opendrift.models.basemodel:2035: 2024-12-13 14:39:27.242542 - step 111 of 120 - 10000 active elements (0 deactivated)
20:19:45 INFO    opendrift.models.basemodel:2035: 2024-12-13 14:49:27.242542 - step 112 of 120 - 10000 active elements (0 deactivated)
20:19:46 INFO    opendrift.models.basemodel:2035: 2024-12-13 14:59:27.242542 - step 113 of 120 - 10000 active elements (0 deactivated)
20:19:46 INFO    opendrift.models.basemodel:2035: 2024-12-13 15:09:27.242542 - step 114 of 120 - 10000 active elements (0 deactivated)
20:19:46 INFO    opendrift.models.basemodel:2035: 2024-12-13 15:19:27.242542 - step 115 of 120 - 10000 active elements (0 deactivated)
20:19:46 INFO    opendrift.models.basemodel:2035: 2024-12-13 15:29:27.242542 - step 116 of 120 - 10000 active elements (0 deactivated)
20:19:46 INFO    opendrift.models.basemodel:2035: 2024-12-13 15:39:27.242542 - step 117 of 120 - 10000 active elements (0 deactivated)
20:19:46 INFO    opendrift.models.basemodel:2035: 2024-12-13 15:49:27.242542 - step 118 of 120 - 10000 active elements (0 deactivated)
20:19:46 INFO    opendrift.models.basemodel:2035: 2024-12-13 15:59:27.242542 - step 119 of 120 - 10000 active elements (0 deactivated)
20:19:47 INFO    opendrift.models.basemodel:2035: 2024-12-13 16:09:27.242542 - step 120 of 120 - 10000 active elements (0 deactivated)

Comparison plots

o1.plot_oil_budget()
o2.plot_oil_budget()
  • GENERIC DIESEL (855.8 kg/m3) - 2024-12-12 20:18 to 2024-12-13 16:18
  • GENERIC DIESEL (855.8 kg/m3) - 2024-12-12 20:19 to 2024-12-13 16:19

Entrainment

b1 = o1.get_oil_budget()
b2 = o2.get_oil_budget()
plt.plot(b1['mass_surface'], '-r', linewidth=2,
            label='Surface, updated thickness')
plt.plot(b1['mass_submerged'], '--r', linewidth=2,
            label='Submerged, updated thickness')
plt.plot(b1['mass_evaporated'], '-.r', linewidth=2,
            label='Evaporated, updated thickness')
plt.plot(b2['mass_surface'], '-b', linewidth=2,
            label='Surface, constant thickness')
plt.plot(b2['mass_submerged'], '--b', linewidth=2,
            label='Submerged, constant thickness')
plt.plot(b2['mass_evaporated'], '-.b', linewidth=2,
            label='Evaporated, constant thickness')
plt.legend()
plt.xlabel('Time step')
plt.show()
example oil thickness

We see that with the updated film thickness, the droplets are getting gradually smaller

r1 = o1.get_property('diameter')[0]
r2 = o2.get_property('diameter')[0]
plt.plot(np.median(r1*1e6, 1))
plt.plot(np.median(r2*1e6, 1))
plt.legend(['With updated film thickness', 'With constant film thickness'])
plt.xlabel('Time step')
plt.ylabel('Median droplet diameter  [micrometer]')
plt.show()
example oil thickness
/opt/conda/envs/opendrift/lib/python3.11/site-packages/numpy/core/fromnumeric.py:771: UserWarning: Warning: 'partition' will ignore the 'mask' of the MaskedArray.
  a.partition(kth, axis=axis, kind=kind, order=order)

We see that oil film thickness has virtually no impact on horizontal drift

o1.animation(compare=o2, fast=True,
             legend=['Updated film thickness',
                     'Constant/default film thickness'])
20:19:55 WARNING opendrift.models.basemodel:2410: Plotting fast. This will make your plots less accurate.
/opt/conda/envs/opendrift/lib/python3.11/site-packages/cartopy/mpl/geoaxes.py:1692: UserWarning: No data for colormapping provided via 'c'. Parameters 'cmap' will be ignored
  result = super().scatter(*args, **kwargs)
20:19:58 INFO    opendrift.models.basemodel:4613: Saving animation to /root/project/docs/source/gallery/animations/example_oil_thickness_1.gif...
20:20:16 INFO    opendrift.models.basemodel:3037: Time to make animation: 0:00:20.878789
../_images/example_oil_thickness_1.gif

Total running time of the script: (1 minutes 32.969 seconds)

Gallery generated by Sphinx-Gallery