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')
08:41:51 INFO    opendrift.models.basemodel:510: OpenDriftSimulation initialised (version 1.12.0 / v1.12.0-59-g6dfb0d2)

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)
08:41:51 INFO    opendrift.models.openoil.adios.dirjs:86: Querying ADIOS database for oil: GENERIC DIESEL
08:41:51 INFO    opendrift.models.openoil.openoil:1715: Using density 855.84763 and viscosity 8.644570579524653e-06 of oiltype GENERIC DIESEL
08:41:51 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...
08:41:54 INFO    opendrift.models.basemodel.environment:245: Fallback values will be used for the following variables which have no readers:
08:41:54 INFO    opendrift.models.basemodel.environment:248:    x_sea_water_velocity: 0.100000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    y_sea_water_velocity: 0.000000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    x_wind: 0.000000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    y_wind: 7.000000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    sea_surface_height: 0.000000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    upward_sea_water_velocity: 0.000000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_significant_height: 0.000000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_stokes_drift_x_velocity: 0.000000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_stokes_drift_y_velocity: 0.300000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    sea_ice_area_fraction: 0.000000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    sea_ice_x_velocity: 0.000000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    sea_ice_y_velocity: 0.000000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    sea_water_temperature: 10.000000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    sea_water_salinity: 34.000000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    sea_floor_depth_below_sea_level: 10000.000000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    ocean_vertical_diffusivity: 0.020000
08:41:54 INFO    opendrift.models.basemodel.environment:248:    ocean_mixed_layer_thickness: 50.000000
08:41:55 INFO    opendrift.models.basemodel:930: Using existing reader for land_binary_mask
08:41:55 INFO    opendrift.models.basemodel:941: All points are in ocean
08:41:55 INFO    opendrift.models.openoil.openoil:684: Oil-water surface tension is 0.030314 Nm
08:41:55 INFO    opendrift.models.openoil.openoil:697: Max water fraction not available for GENERIC DIESEL, using default
08:41:55 INFO    opendrift.models.basemodel:2030: 2025-01-23 08:41:51.679559 - step 1 of 120 - 10000 active elements (0 deactivated)
08:41:56 INFO    opendrift.models.basemodel:2030: 2025-01-23 08:51:51.679559 - step 2 of 120 - 10000 active elements (0 deactivated)
08:41:56 INFO    opendrift.models.basemodel:2030: 2025-01-23 09:01:51.679559 - step 3 of 120 - 10000 active elements (0 deactivated)
08:41:56 INFO    opendrift.models.basemodel:2030: 2025-01-23 09:11:51.679559 - step 4 of 120 - 10000 active elements (0 deactivated)
08:41:56 INFO    opendrift.models.basemodel:2030: 2025-01-23 09:21:51.679559 - step 5 of 120 - 10000 active elements (0 deactivated)
08:41:56 INFO    opendrift.models.basemodel:2030: 2025-01-23 09:31:51.679559 - step 6 of 120 - 10000 active elements (0 deactivated)
08:41:57 INFO    opendrift.models.basemodel:2030: 2025-01-23 09:41:51.679559 - step 7 of 120 - 10000 active elements (0 deactivated)
08:41:57 INFO    opendrift.models.basemodel:2030: 2025-01-23 09:51:51.679559 - step 8 of 120 - 10000 active elements (0 deactivated)
08:41:57 INFO    opendrift.models.basemodel:2030: 2025-01-23 10:01:51.679559 - step 9 of 120 - 10000 active elements (0 deactivated)
08:41:57 INFO    opendrift.models.basemodel:2030: 2025-01-23 10:11:51.679559 - step 10 of 120 - 10000 active elements (0 deactivated)
08:41:57 INFO    opendrift.models.basemodel:2030: 2025-01-23 10:21:51.679559 - step 11 of 120 - 10000 active elements (0 deactivated)
08:41:57 INFO    opendrift.models.basemodel:2030: 2025-01-23 10:31:51.679559 - step 12 of 120 - 10000 active elements (0 deactivated)
08:41:57 INFO    opendrift.models.basemodel:2030: 2025-01-23 10:41:51.679559 - step 13 of 120 - 10000 active elements (0 deactivated)
08:41:58 INFO    opendrift.models.basemodel:2030: 2025-01-23 10:51:51.679559 - step 14 of 120 - 10000 active elements (0 deactivated)
08:41:58 INFO    opendrift.models.basemodel:2030: 2025-01-23 11:01:51.679559 - step 15 of 120 - 10000 active elements (0 deactivated)
08:41:58 INFO    opendrift.models.basemodel:2030: 2025-01-23 11:11:51.679559 - step 16 of 120 - 10000 active elements (0 deactivated)
08:41:58 INFO    opendrift.models.basemodel:2030: 2025-01-23 11:21:51.679559 - step 17 of 120 - 10000 active elements (0 deactivated)
08:41:58 INFO    opendrift.models.basemodel:2030: 2025-01-23 11:31:51.679559 - step 18 of 120 - 10000 active elements (0 deactivated)
08:41:58 INFO    opendrift.models.basemodel:2030: 2025-01-23 11:41:51.679559 - step 19 of 120 - 10000 active elements (0 deactivated)
08:41:59 INFO    opendrift.models.basemodel:2030: 2025-01-23 11:51:51.679559 - step 20 of 120 - 10000 active elements (0 deactivated)
08:41:59 INFO    opendrift.models.basemodel:2030: 2025-01-23 12:01:51.679559 - step 21 of 120 - 10000 active elements (0 deactivated)
08:41:59 INFO    opendrift.models.basemodel:2030: 2025-01-23 12:11:51.679559 - step 22 of 120 - 10000 active elements (0 deactivated)
08:41:59 INFO    opendrift.models.basemodel:2030: 2025-01-23 12:21:51.679559 - step 23 of 120 - 10000 active elements (0 deactivated)
08:41:59 INFO    opendrift.models.basemodel:2030: 2025-01-23 12:31:51.679559 - step 24 of 120 - 10000 active elements (0 deactivated)
08:41:59 INFO    opendrift.models.basemodel:2030: 2025-01-23 12:41:51.679559 - step 25 of 120 - 10000 active elements (0 deactivated)
08:42:00 INFO    opendrift.models.basemodel:2030: 2025-01-23 12:51:51.679559 - step 26 of 120 - 10000 active elements (0 deactivated)
08:42:00 INFO    opendrift.models.basemodel:2030: 2025-01-23 13:01:51.679559 - step 27 of 120 - 10000 active elements (0 deactivated)
08:42:00 INFO    opendrift.models.basemodel:2030: 2025-01-23 13:11:51.679559 - step 28 of 120 - 10000 active elements (0 deactivated)
08:42:00 INFO    opendrift.models.basemodel:2030: 2025-01-23 13:21:51.679559 - step 29 of 120 - 10000 active elements (0 deactivated)
08:42:00 INFO    opendrift.models.basemodel:2030: 2025-01-23 13:31:51.679559 - step 30 of 120 - 10000 active elements (0 deactivated)
08:42:00 INFO    opendrift.models.basemodel:2030: 2025-01-23 13:41:51.679559 - step 31 of 120 - 10000 active elements (0 deactivated)
08:42:00 INFO    opendrift.models.basemodel:2030: 2025-01-23 13:51:51.679559 - step 32 of 120 - 10000 active elements (0 deactivated)
08:42:01 INFO    opendrift.models.basemodel:2030: 2025-01-23 14:01:51.679559 - step 33 of 120 - 10000 active elements (0 deactivated)
08:42:01 INFO    opendrift.models.basemodel:2030: 2025-01-23 14:11:51.679559 - step 34 of 120 - 10000 active elements (0 deactivated)
08:42:01 INFO    opendrift.models.basemodel:2030: 2025-01-23 14:21:51.679559 - step 35 of 120 - 10000 active elements (0 deactivated)
08:42:01 INFO    opendrift.models.basemodel:2030: 2025-01-23 14:31:51.679559 - step 36 of 120 - 10000 active elements (0 deactivated)
08:42:01 INFO    opendrift.models.basemodel:2030: 2025-01-23 14:41:51.679559 - step 37 of 120 - 10000 active elements (0 deactivated)
08:42:01 INFO    opendrift.models.basemodel:2030: 2025-01-23 14:51:51.679559 - step 38 of 120 - 10000 active elements (0 deactivated)
08:42:01 INFO    opendrift.models.basemodel:2030: 2025-01-23 15:01:51.679559 - step 39 of 120 - 10000 active elements (0 deactivated)
08:42:02 INFO    opendrift.models.basemodel:2030: 2025-01-23 15:11:51.679559 - step 40 of 120 - 10000 active elements (0 deactivated)
08:42:02 INFO    opendrift.models.basemodel:2030: 2025-01-23 15:21:51.679559 - step 41 of 120 - 10000 active elements (0 deactivated)
08:42:02 INFO    opendrift.models.basemodel:2030: 2025-01-23 15:31:51.679559 - step 42 of 120 - 10000 active elements (0 deactivated)
08:42:02 INFO    opendrift.models.basemodel:2030: 2025-01-23 15:41:51.679559 - step 43 of 120 - 10000 active elements (0 deactivated)
08:42:02 INFO    opendrift.models.basemodel:2030: 2025-01-23 15:51:51.679559 - step 44 of 120 - 10000 active elements (0 deactivated)
08:42:02 INFO    opendrift.models.basemodel:2030: 2025-01-23 16:01:51.679559 - step 45 of 120 - 10000 active elements (0 deactivated)
08:42:02 INFO    opendrift.models.basemodel:2030: 2025-01-23 16:11:51.679559 - step 46 of 120 - 10000 active elements (0 deactivated)
08:42:02 INFO    opendrift.models.basemodel:2030: 2025-01-23 16:21:51.679559 - step 47 of 120 - 10000 active elements (0 deactivated)
08:42:03 INFO    opendrift.models.basemodel:2030: 2025-01-23 16:31:51.679559 - step 48 of 120 - 10000 active elements (0 deactivated)
08:42:03 INFO    opendrift.models.basemodel:2030: 2025-01-23 16:41:51.679559 - step 49 of 120 - 10000 active elements (0 deactivated)
08:42:03 INFO    opendrift.models.basemodel:2030: 2025-01-23 16:51:51.679559 - step 50 of 120 - 10000 active elements (0 deactivated)
08:42:03 INFO    opendrift.models.basemodel:2030: 2025-01-23 17:01:51.679559 - step 51 of 120 - 10000 active elements (0 deactivated)
08:42:03 INFO    opendrift.models.basemodel:2030: 2025-01-23 17:11:51.679559 - step 52 of 120 - 10000 active elements (0 deactivated)
08:42:03 INFO    opendrift.models.basemodel:2030: 2025-01-23 17:21:51.679559 - step 53 of 120 - 10000 active elements (0 deactivated)
08:42:03 INFO    opendrift.models.basemodel:2030: 2025-01-23 17:31:51.679559 - step 54 of 120 - 10000 active elements (0 deactivated)
08:42:04 INFO    opendrift.models.basemodel:2030: 2025-01-23 17:41:51.679559 - step 55 of 120 - 10000 active elements (0 deactivated)
08:42:04 INFO    opendrift.models.basemodel:2030: 2025-01-23 17:51:51.679559 - step 56 of 120 - 10000 active elements (0 deactivated)
08:42:04 INFO    opendrift.models.basemodel:2030: 2025-01-23 18:01:51.679559 - step 57 of 120 - 10000 active elements (0 deactivated)
08:42:04 INFO    opendrift.models.basemodel:2030: 2025-01-23 18:11:51.679559 - step 58 of 120 - 10000 active elements (0 deactivated)
08:42:04 INFO    opendrift.models.basemodel:2030: 2025-01-23 18:21:51.679559 - step 59 of 120 - 10000 active elements (0 deactivated)
08:42:04 INFO    opendrift.models.basemodel:2030: 2025-01-23 18:31:51.679559 - step 60 of 120 - 10000 active elements (0 deactivated)
08:42:04 INFO    opendrift.models.basemodel:2030: 2025-01-23 18:41:51.679559 - step 61 of 120 - 10000 active elements (0 deactivated)
08:42:05 INFO    opendrift.models.basemodel:2030: 2025-01-23 18:51:51.679559 - step 62 of 120 - 10000 active elements (0 deactivated)
08:42:05 INFO    opendrift.models.basemodel:2030: 2025-01-23 19:01:51.679559 - step 63 of 120 - 10000 active elements (0 deactivated)
08:42:05 INFO    opendrift.models.basemodel:2030: 2025-01-23 19:11:51.679559 - step 64 of 120 - 10000 active elements (0 deactivated)
08:42:05 INFO    opendrift.models.basemodel:2030: 2025-01-23 19:21:51.679559 - step 65 of 120 - 10000 active elements (0 deactivated)
08:42:05 INFO    opendrift.models.basemodel:2030: 2025-01-23 19:31:51.679559 - step 66 of 120 - 10000 active elements (0 deactivated)
08:42:05 INFO    opendrift.models.basemodel:2030: 2025-01-23 19:41:51.679559 - step 67 of 120 - 10000 active elements (0 deactivated)
08:42:05 INFO    opendrift.models.basemodel:2030: 2025-01-23 19:51:51.679559 - step 68 of 120 - 10000 active elements (0 deactivated)
08:42:06 INFO    opendrift.models.basemodel:2030: 2025-01-23 20:01:51.679559 - step 69 of 120 - 10000 active elements (0 deactivated)
08:42:06 INFO    opendrift.models.basemodel:2030: 2025-01-23 20:11:51.679559 - step 70 of 120 - 10000 active elements (0 deactivated)
08:42:06 INFO    opendrift.models.basemodel:2030: 2025-01-23 20:21:51.679559 - step 71 of 120 - 10000 active elements (0 deactivated)
08:42:06 INFO    opendrift.models.basemodel:2030: 2025-01-23 20:31:51.679559 - step 72 of 120 - 10000 active elements (0 deactivated)
08:42:06 INFO    opendrift.models.basemodel:2030: 2025-01-23 20:41:51.679559 - step 73 of 120 - 10000 active elements (0 deactivated)
08:42:06 INFO    opendrift.models.basemodel:2030: 2025-01-23 20:51:51.679559 - step 74 of 120 - 10000 active elements (0 deactivated)
08:42:06 INFO    opendrift.models.basemodel:2030: 2025-01-23 21:01:51.679559 - step 75 of 120 - 10000 active elements (0 deactivated)
08:42:07 INFO    opendrift.models.basemodel:2030: 2025-01-23 21:11:51.679559 - step 76 of 120 - 10000 active elements (0 deactivated)
08:42:07 INFO    opendrift.models.basemodel:2030: 2025-01-23 21:21:51.679559 - step 77 of 120 - 10000 active elements (0 deactivated)
08:42:07 INFO    opendrift.models.basemodel:2030: 2025-01-23 21:31:51.679559 - step 78 of 120 - 10000 active elements (0 deactivated)
08:42:07 INFO    opendrift.models.basemodel:2030: 2025-01-23 21:41:51.679559 - step 79 of 120 - 10000 active elements (0 deactivated)
08:42:07 INFO    opendrift.models.basemodel:2030: 2025-01-23 21:51:51.679559 - step 80 of 120 - 10000 active elements (0 deactivated)
08:42:07 INFO    opendrift.models.basemodel:2030: 2025-01-23 22:01:51.679559 - step 81 of 120 - 10000 active elements (0 deactivated)
08:42:07 INFO    opendrift.models.basemodel:2030: 2025-01-23 22:11:51.679559 - step 82 of 120 - 10000 active elements (0 deactivated)
08:42:08 INFO    opendrift.models.basemodel:2030: 2025-01-23 22:21:51.679559 - step 83 of 120 - 10000 active elements (0 deactivated)
08:42:08 INFO    opendrift.models.basemodel:2030: 2025-01-23 22:31:51.679559 - step 84 of 120 - 10000 active elements (0 deactivated)
08:42:08 INFO    opendrift.models.basemodel:2030: 2025-01-23 22:41:51.679559 - step 85 of 120 - 10000 active elements (0 deactivated)
08:42:08 INFO    opendrift.models.basemodel:2030: 2025-01-23 22:51:51.679559 - step 86 of 120 - 10000 active elements (0 deactivated)
08:42:08 INFO    opendrift.models.basemodel:2030: 2025-01-23 23:01:51.679559 - step 87 of 120 - 10000 active elements (0 deactivated)
08:42:08 INFO    opendrift.models.basemodel:2030: 2025-01-23 23:11:51.679559 - step 88 of 120 - 10000 active elements (0 deactivated)
08:42:08 INFO    opendrift.models.basemodel:2030: 2025-01-23 23:21:51.679559 - step 89 of 120 - 10000 active elements (0 deactivated)
08:42:08 INFO    opendrift.models.basemodel:2030: 2025-01-23 23:31:51.679559 - step 90 of 120 - 10000 active elements (0 deactivated)
08:42:09 INFO    opendrift.models.basemodel:2030: 2025-01-23 23:41:51.679559 - step 91 of 120 - 10000 active elements (0 deactivated)
08:42:09 INFO    opendrift.models.basemodel:2030: 2025-01-23 23:51:51.679559 - step 92 of 120 - 10000 active elements (0 deactivated)
08:42:09 INFO    opendrift.models.basemodel:2030: 2025-01-24 00:01:51.679559 - step 93 of 120 - 10000 active elements (0 deactivated)
08:42:09 INFO    opendrift.models.basemodel:2030: 2025-01-24 00:11:51.679559 - step 94 of 120 - 10000 active elements (0 deactivated)
08:42:09 INFO    opendrift.models.basemodel:2030: 2025-01-24 00:21:51.679559 - step 95 of 120 - 10000 active elements (0 deactivated)
08:42:09 INFO    opendrift.models.basemodel:2030: 2025-01-24 00:31:51.679559 - step 96 of 120 - 10000 active elements (0 deactivated)
08:42:09 INFO    opendrift.models.basemodel:2030: 2025-01-24 00:41:51.679559 - step 97 of 120 - 10000 active elements (0 deactivated)
08:42:10 INFO    opendrift.models.basemodel:2030: 2025-01-24 00:51:51.679559 - step 98 of 120 - 10000 active elements (0 deactivated)
08:42:10 INFO    opendrift.models.basemodel:2030: 2025-01-24 01:01:51.679559 - step 99 of 120 - 10000 active elements (0 deactivated)
08:42:10 INFO    opendrift.models.basemodel:2030: 2025-01-24 01:11:51.679559 - step 100 of 120 - 10000 active elements (0 deactivated)
08:42:10 INFO    opendrift.models.basemodel:2030: 2025-01-24 01:21:51.679559 - step 101 of 120 - 10000 active elements (0 deactivated)
08:42:10 INFO    opendrift.models.basemodel:2030: 2025-01-24 01:31:51.679559 - step 102 of 120 - 10000 active elements (0 deactivated)
08:42:10 INFO    opendrift.models.basemodel:2030: 2025-01-24 01:41:51.679559 - step 103 of 120 - 10000 active elements (0 deactivated)
08:42:10 INFO    opendrift.models.basemodel:2030: 2025-01-24 01:51:51.679559 - step 104 of 120 - 10000 active elements (0 deactivated)
08:42:11 INFO    opendrift.models.basemodel:2030: 2025-01-24 02:01:51.679559 - step 105 of 120 - 10000 active elements (0 deactivated)
08:42:11 INFO    opendrift.models.basemodel:2030: 2025-01-24 02:11:51.679559 - step 106 of 120 - 10000 active elements (0 deactivated)
08:42:11 INFO    opendrift.models.basemodel:2030: 2025-01-24 02:21:51.679559 - step 107 of 120 - 10000 active elements (0 deactivated)
08:42:11 INFO    opendrift.models.basemodel:2030: 2025-01-24 02:31:51.679559 - step 108 of 120 - 10000 active elements (0 deactivated)
08:42:11 INFO    opendrift.models.basemodel:2030: 2025-01-24 02:41:51.679559 - step 109 of 120 - 10000 active elements (0 deactivated)
08:42:11 INFO    opendrift.models.basemodel:2030: 2025-01-24 02:51:51.679559 - step 110 of 120 - 10000 active elements (0 deactivated)
08:42:11 INFO    opendrift.models.basemodel:2030: 2025-01-24 03:01:51.679559 - step 111 of 120 - 10000 active elements (0 deactivated)
08:42:11 INFO    opendrift.models.basemodel:2030: 2025-01-24 03:11:51.679559 - step 112 of 120 - 10000 active elements (0 deactivated)
08:42:12 INFO    opendrift.models.basemodel:2030: 2025-01-24 03:21:51.679559 - step 113 of 120 - 10000 active elements (0 deactivated)
08:42:12 INFO    opendrift.models.basemodel:2030: 2025-01-24 03:31:51.679559 - step 114 of 120 - 10000 active elements (0 deactivated)
08:42:12 INFO    opendrift.models.basemodel:2030: 2025-01-24 03:41:51.679559 - step 115 of 120 - 10000 active elements (0 deactivated)
08:42:12 INFO    opendrift.models.basemodel:2030: 2025-01-24 03:51:51.679559 - step 116 of 120 - 10000 active elements (0 deactivated)
08:42:12 INFO    opendrift.models.basemodel:2030: 2025-01-24 04:01:51.679559 - step 117 of 120 - 10000 active elements (0 deactivated)
08:42:12 INFO    opendrift.models.basemodel:2030: 2025-01-24 04:11:51.679559 - step 118 of 120 - 10000 active elements (0 deactivated)
08:42:12 INFO    opendrift.models.basemodel:2030: 2025-01-24 04:21:51.679559 - step 119 of 120 - 10000 active elements (0 deactivated)
08:42:13 INFO    opendrift.models.basemodel:2030: 2025-01-24 04:31:51.679559 - 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)
08:42:13 WARNING opendrift.models.basemodel:2405: Plotting fast. This will make your plots less accurate.
08:42:15 INFO    opendrift.models.basemodel:4606: Saving animation to /root/project/docs/source/gallery/animations/example_oil_thickness_0.gif...
08:42:29 INFO    opendrift.models.basemodel:3034: Time to make animation: 0:00:16.516954
../_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)
08:42:29 INFO    opendrift.models.basemodel:510: OpenDriftSimulation initialised (version 1.12.0 / v1.12.0-59-g6dfb0d2)
08:42:29 INFO    opendrift.models.openoil.adios.dirjs:86: Querying ADIOS database for oil: GENERIC DIESEL
08:42:29 INFO    opendrift.models.openoil.openoil:1715: Using density 855.84763 and viscosity 8.644570579524653e-06 of oiltype GENERIC DIESEL
08:42:29 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...
08:42:29 INFO    opendrift.models.basemodel.environment:245: Fallback values will be used for the following variables which have no readers:
08:42:29 INFO    opendrift.models.basemodel.environment:248:    x_sea_water_velocity: 0.100000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    y_sea_water_velocity: 0.000000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    x_wind: 0.000000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    y_wind: 7.000000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    sea_surface_height: 0.000000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    upward_sea_water_velocity: 0.000000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_significant_height: 0.000000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_stokes_drift_x_velocity: 0.000000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_stokes_drift_y_velocity: 0.300000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    sea_ice_area_fraction: 0.000000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    sea_ice_x_velocity: 0.000000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    sea_ice_y_velocity: 0.000000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    sea_water_temperature: 10.000000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    sea_water_salinity: 34.000000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    sea_floor_depth_below_sea_level: 10000.000000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    ocean_vertical_diffusivity: 0.020000
08:42:29 INFO    opendrift.models.basemodel.environment:248:    ocean_mixed_layer_thickness: 50.000000
08:42:30 INFO    opendrift.models.basemodel:930: Using existing reader for land_binary_mask
08:42:30 INFO    opendrift.models.basemodel:941: All points are in ocean
08:42:30 INFO    opendrift.models.openoil.openoil:684: Oil-water surface tension is 0.030314 Nm
08:42:30 INFO    opendrift.models.openoil.openoil:697: Max water fraction not available for GENERIC DIESEL, using default
08:42:30 INFO    opendrift.models.basemodel:2030: 2025-01-23 08:42:29.948401 - step 1 of 120 - 10000 active elements (0 deactivated)
08:42:30 INFO    opendrift.models.basemodel:2030: 2025-01-23 08:52:29.948401 - step 2 of 120 - 10000 active elements (0 deactivated)
08:42:30 INFO    opendrift.models.basemodel:2030: 2025-01-23 09:02:29.948401 - step 3 of 120 - 10000 active elements (0 deactivated)
08:42:30 INFO    opendrift.models.basemodel:2030: 2025-01-23 09:12:29.948401 - step 4 of 120 - 10000 active elements (0 deactivated)
08:42:31 INFO    opendrift.models.basemodel:2030: 2025-01-23 09:22:29.948401 - step 5 of 120 - 10000 active elements (0 deactivated)
08:42:31 INFO    opendrift.models.basemodel:2030: 2025-01-23 09:32:29.948401 - step 6 of 120 - 10000 active elements (0 deactivated)
08:42:31 INFO    opendrift.models.basemodel:2030: 2025-01-23 09:42:29.948401 - step 7 of 120 - 10000 active elements (0 deactivated)
08:42:31 INFO    opendrift.models.basemodel:2030: 2025-01-23 09:52:29.948401 - step 8 of 120 - 10000 active elements (0 deactivated)
08:42:32 INFO    opendrift.models.basemodel:2030: 2025-01-23 10:02:29.948401 - step 9 of 120 - 10000 active elements (0 deactivated)
08:42:32 INFO    opendrift.models.basemodel:2030: 2025-01-23 10:12:29.948401 - step 10 of 120 - 10000 active elements (0 deactivated)
08:42:32 INFO    opendrift.models.basemodel:2030: 2025-01-23 10:22:29.948401 - step 11 of 120 - 10000 active elements (0 deactivated)
08:42:32 INFO    opendrift.models.basemodel:2030: 2025-01-23 10:32:29.948401 - step 12 of 120 - 10000 active elements (0 deactivated)
08:42:32 INFO    opendrift.models.basemodel:2030: 2025-01-23 10:42:29.948401 - step 13 of 120 - 10000 active elements (0 deactivated)
08:42:33 INFO    opendrift.models.basemodel:2030: 2025-01-23 10:52:29.948401 - step 14 of 120 - 10000 active elements (0 deactivated)
08:42:33 INFO    opendrift.models.basemodel:2030: 2025-01-23 11:02:29.948401 - step 15 of 120 - 10000 active elements (0 deactivated)
08:42:33 INFO    opendrift.models.basemodel:2030: 2025-01-23 11:12:29.948401 - step 16 of 120 - 10000 active elements (0 deactivated)
08:42:33 INFO    opendrift.models.basemodel:2030: 2025-01-23 11:22:29.948401 - step 17 of 120 - 10000 active elements (0 deactivated)
08:42:33 INFO    opendrift.models.basemodel:2030: 2025-01-23 11:32:29.948401 - step 18 of 120 - 10000 active elements (0 deactivated)
08:42:33 INFO    opendrift.models.basemodel:2030: 2025-01-23 11:42:29.948401 - step 19 of 120 - 10000 active elements (0 deactivated)
08:42:34 INFO    opendrift.models.basemodel:2030: 2025-01-23 11:52:29.948401 - step 20 of 120 - 10000 active elements (0 deactivated)
08:42:34 INFO    opendrift.models.basemodel:2030: 2025-01-23 12:02:29.948401 - step 21 of 120 - 10000 active elements (0 deactivated)
08:42:34 INFO    opendrift.models.basemodel:2030: 2025-01-23 12:12:29.948401 - step 22 of 120 - 10000 active elements (0 deactivated)
08:42:34 INFO    opendrift.models.basemodel:2030: 2025-01-23 12:22:29.948401 - step 23 of 120 - 10000 active elements (0 deactivated)
08:42:34 INFO    opendrift.models.basemodel:2030: 2025-01-23 12:32:29.948401 - step 24 of 120 - 10000 active elements (0 deactivated)
08:42:34 INFO    opendrift.models.basemodel:2030: 2025-01-23 12:42:29.948401 - step 25 of 120 - 10000 active elements (0 deactivated)
08:42:35 INFO    opendrift.models.basemodel:2030: 2025-01-23 12:52:29.948401 - step 26 of 120 - 10000 active elements (0 deactivated)
08:42:35 INFO    opendrift.models.basemodel:2030: 2025-01-23 13:02:29.948401 - step 27 of 120 - 10000 active elements (0 deactivated)
08:42:35 INFO    opendrift.models.basemodel:2030: 2025-01-23 13:12:29.948401 - step 28 of 120 - 10000 active elements (0 deactivated)
08:42:35 INFO    opendrift.models.basemodel:2030: 2025-01-23 13:22:29.948401 - step 29 of 120 - 10000 active elements (0 deactivated)
08:42:35 INFO    opendrift.models.basemodel:2030: 2025-01-23 13:32:29.948401 - step 30 of 120 - 10000 active elements (0 deactivated)
08:42:36 INFO    opendrift.models.basemodel:2030: 2025-01-23 13:42:29.948401 - step 31 of 120 - 10000 active elements (0 deactivated)
08:42:36 INFO    opendrift.models.basemodel:2030: 2025-01-23 13:52:29.948401 - step 32 of 120 - 10000 active elements (0 deactivated)
08:42:36 INFO    opendrift.models.basemodel:2030: 2025-01-23 14:02:29.948401 - step 33 of 120 - 10000 active elements (0 deactivated)
08:42:36 INFO    opendrift.models.basemodel:2030: 2025-01-23 14:12:29.948401 - step 34 of 120 - 10000 active elements (0 deactivated)
08:42:36 INFO    opendrift.models.basemodel:2030: 2025-01-23 14:22:29.948401 - step 35 of 120 - 10000 active elements (0 deactivated)
08:42:37 INFO    opendrift.models.basemodel:2030: 2025-01-23 14:32:29.948401 - step 36 of 120 - 10000 active elements (0 deactivated)
08:42:37 INFO    opendrift.models.basemodel:2030: 2025-01-23 14:42:29.948401 - step 37 of 120 - 10000 active elements (0 deactivated)
08:42:37 INFO    opendrift.models.basemodel:2030: 2025-01-23 14:52:29.948401 - step 38 of 120 - 10000 active elements (0 deactivated)
08:42:37 INFO    opendrift.models.basemodel:2030: 2025-01-23 15:02:29.948401 - step 39 of 120 - 10000 active elements (0 deactivated)
08:42:37 INFO    opendrift.models.basemodel:2030: 2025-01-23 15:12:29.948401 - step 40 of 120 - 10000 active elements (0 deactivated)
08:42:38 INFO    opendrift.models.basemodel:2030: 2025-01-23 15:22:29.948401 - step 41 of 120 - 10000 active elements (0 deactivated)
08:42:38 INFO    opendrift.models.basemodel:2030: 2025-01-23 15:32:29.948401 - step 42 of 120 - 10000 active elements (0 deactivated)
08:42:38 INFO    opendrift.models.basemodel:2030: 2025-01-23 15:42:29.948401 - step 43 of 120 - 10000 active elements (0 deactivated)
08:42:38 INFO    opendrift.models.basemodel:2030: 2025-01-23 15:52:29.948401 - step 44 of 120 - 10000 active elements (0 deactivated)
08:42:38 INFO    opendrift.models.basemodel:2030: 2025-01-23 16:02:29.948401 - step 45 of 120 - 10000 active elements (0 deactivated)
08:42:39 INFO    opendrift.models.basemodel:2030: 2025-01-23 16:12:29.948401 - step 46 of 120 - 10000 active elements (0 deactivated)
08:42:39 INFO    opendrift.models.basemodel:2030: 2025-01-23 16:22:29.948401 - step 47 of 120 - 10000 active elements (0 deactivated)
08:42:39 INFO    opendrift.models.basemodel:2030: 2025-01-23 16:32:29.948401 - step 48 of 120 - 10000 active elements (0 deactivated)
08:42:39 INFO    opendrift.models.basemodel:2030: 2025-01-23 16:42:29.948401 - step 49 of 120 - 10000 active elements (0 deactivated)
08:42:39 INFO    opendrift.models.basemodel:2030: 2025-01-23 16:52:29.948401 - step 50 of 120 - 10000 active elements (0 deactivated)
08:42:39 INFO    opendrift.models.basemodel:2030: 2025-01-23 17:02:29.948401 - step 51 of 120 - 10000 active elements (0 deactivated)
08:42:40 INFO    opendrift.models.basemodel:2030: 2025-01-23 17:12:29.948401 - step 52 of 120 - 10000 active elements (0 deactivated)
08:42:40 INFO    opendrift.models.basemodel:2030: 2025-01-23 17:22:29.948401 - step 53 of 120 - 10000 active elements (0 deactivated)
08:42:40 INFO    opendrift.models.basemodel:2030: 2025-01-23 17:32:29.948401 - step 54 of 120 - 10000 active elements (0 deactivated)
08:42:40 INFO    opendrift.models.basemodel:2030: 2025-01-23 17:42:29.948401 - step 55 of 120 - 10000 active elements (0 deactivated)
08:42:40 INFO    opendrift.models.basemodel:2030: 2025-01-23 17:52:29.948401 - step 56 of 120 - 10000 active elements (0 deactivated)
08:42:40 INFO    opendrift.models.basemodel:2030: 2025-01-23 18:02:29.948401 - step 57 of 120 - 10000 active elements (0 deactivated)
08:42:41 INFO    opendrift.models.basemodel:2030: 2025-01-23 18:12:29.948401 - step 58 of 120 - 10000 active elements (0 deactivated)
08:42:41 INFO    opendrift.models.basemodel:2030: 2025-01-23 18:22:29.948401 - step 59 of 120 - 10000 active elements (0 deactivated)
08:42:41 INFO    opendrift.models.basemodel:2030: 2025-01-23 18:32:29.948401 - step 60 of 120 - 10000 active elements (0 deactivated)
08:42:41 INFO    opendrift.models.basemodel:2030: 2025-01-23 18:42:29.948401 - step 61 of 120 - 10000 active elements (0 deactivated)
08:42:41 INFO    opendrift.models.basemodel:2030: 2025-01-23 18:52:29.948401 - step 62 of 120 - 10000 active elements (0 deactivated)
08:42:42 INFO    opendrift.models.basemodel:2030: 2025-01-23 19:02:29.948401 - step 63 of 120 - 10000 active elements (0 deactivated)
08:42:42 INFO    opendrift.models.basemodel:2030: 2025-01-23 19:12:29.948401 - step 64 of 120 - 10000 active elements (0 deactivated)
08:42:42 INFO    opendrift.models.basemodel:2030: 2025-01-23 19:22:29.948401 - step 65 of 120 - 10000 active elements (0 deactivated)
08:42:42 INFO    opendrift.models.basemodel:2030: 2025-01-23 19:32:29.948401 - step 66 of 120 - 10000 active elements (0 deactivated)
08:42:42 INFO    opendrift.models.basemodel:2030: 2025-01-23 19:42:29.948401 - step 67 of 120 - 10000 active elements (0 deactivated)
08:42:43 INFO    opendrift.models.basemodel:2030: 2025-01-23 19:52:29.948401 - step 68 of 120 - 10000 active elements (0 deactivated)
08:42:43 INFO    opendrift.models.basemodel:2030: 2025-01-23 20:02:29.948401 - step 69 of 120 - 10000 active elements (0 deactivated)
08:42:43 INFO    opendrift.models.basemodel:2030: 2025-01-23 20:12:29.948401 - step 70 of 120 - 10000 active elements (0 deactivated)
08:42:43 INFO    opendrift.models.basemodel:2030: 2025-01-23 20:22:29.948401 - step 71 of 120 - 10000 active elements (0 deactivated)
08:42:43 INFO    opendrift.models.basemodel:2030: 2025-01-23 20:32:29.948401 - step 72 of 120 - 10000 active elements (0 deactivated)
08:42:43 INFO    opendrift.models.basemodel:2030: 2025-01-23 20:42:29.948401 - step 73 of 120 - 10000 active elements (0 deactivated)
08:42:44 INFO    opendrift.models.basemodel:2030: 2025-01-23 20:52:29.948401 - step 74 of 120 - 10000 active elements (0 deactivated)
08:42:44 INFO    opendrift.models.basemodel:2030: 2025-01-23 21:02:29.948401 - step 75 of 120 - 10000 active elements (0 deactivated)
08:42:44 INFO    opendrift.models.basemodel:2030: 2025-01-23 21:12:29.948401 - step 76 of 120 - 10000 active elements (0 deactivated)
08:42:44 INFO    opendrift.models.basemodel:2030: 2025-01-23 21:22:29.948401 - step 77 of 120 - 10000 active elements (0 deactivated)
08:42:44 INFO    opendrift.models.basemodel:2030: 2025-01-23 21:32:29.948401 - step 78 of 120 - 10000 active elements (0 deactivated)
08:42:44 INFO    opendrift.models.basemodel:2030: 2025-01-23 21:42:29.948401 - step 79 of 120 - 10000 active elements (0 deactivated)
08:42:45 INFO    opendrift.models.basemodel:2030: 2025-01-23 21:52:29.948401 - step 80 of 120 - 10000 active elements (0 deactivated)
08:42:45 INFO    opendrift.models.basemodel:2030: 2025-01-23 22:02:29.948401 - step 81 of 120 - 10000 active elements (0 deactivated)
08:42:45 INFO    opendrift.models.basemodel:2030: 2025-01-23 22:12:29.948401 - step 82 of 120 - 10000 active elements (0 deactivated)
08:42:45 INFO    opendrift.models.basemodel:2030: 2025-01-23 22:22:29.948401 - step 83 of 120 - 10000 active elements (0 deactivated)
08:42:45 INFO    opendrift.models.basemodel:2030: 2025-01-23 22:32:29.948401 - step 84 of 120 - 10000 active elements (0 deactivated)
08:42:45 INFO    opendrift.models.basemodel:2030: 2025-01-23 22:42:29.948401 - step 85 of 120 - 10000 active elements (0 deactivated)
08:42:46 INFO    opendrift.models.basemodel:2030: 2025-01-23 22:52:29.948401 - step 86 of 120 - 10000 active elements (0 deactivated)
08:42:46 INFO    opendrift.models.basemodel:2030: 2025-01-23 23:02:29.948401 - step 87 of 120 - 10000 active elements (0 deactivated)
08:42:46 INFO    opendrift.models.basemodel:2030: 2025-01-23 23:12:29.948401 - step 88 of 120 - 10000 active elements (0 deactivated)
08:42:46 INFO    opendrift.models.basemodel:2030: 2025-01-23 23:22:29.948401 - step 89 of 120 - 10000 active elements (0 deactivated)
08:42:46 INFO    opendrift.models.basemodel:2030: 2025-01-23 23:32:29.948401 - step 90 of 120 - 10000 active elements (0 deactivated)
08:42:46 INFO    opendrift.models.basemodel:2030: 2025-01-23 23:42:29.948401 - step 91 of 120 - 10000 active elements (0 deactivated)
08:42:47 INFO    opendrift.models.basemodel:2030: 2025-01-23 23:52:29.948401 - step 92 of 120 - 10000 active elements (0 deactivated)
08:42:47 INFO    opendrift.models.basemodel:2030: 2025-01-24 00:02:29.948401 - step 93 of 120 - 10000 active elements (0 deactivated)
08:42:47 INFO    opendrift.models.basemodel:2030: 2025-01-24 00:12:29.948401 - step 94 of 120 - 10000 active elements (0 deactivated)
08:42:47 INFO    opendrift.models.basemodel:2030: 2025-01-24 00:22:29.948401 - step 95 of 120 - 10000 active elements (0 deactivated)
08:42:47 INFO    opendrift.models.basemodel:2030: 2025-01-24 00:32:29.948401 - step 96 of 120 - 10000 active elements (0 deactivated)
08:42:48 INFO    opendrift.models.basemodel:2030: 2025-01-24 00:42:29.948401 - step 97 of 120 - 10000 active elements (0 deactivated)
08:42:48 INFO    opendrift.models.basemodel:2030: 2025-01-24 00:52:29.948401 - step 98 of 120 - 10000 active elements (0 deactivated)
08:42:48 INFO    opendrift.models.basemodel:2030: 2025-01-24 01:02:29.948401 - step 99 of 120 - 10000 active elements (0 deactivated)
08:42:48 INFO    opendrift.models.basemodel:2030: 2025-01-24 01:12:29.948401 - step 100 of 120 - 10000 active elements (0 deactivated)
08:42:48 INFO    opendrift.models.basemodel:2030: 2025-01-24 01:22:29.948401 - step 101 of 120 - 10000 active elements (0 deactivated)
08:42:48 INFO    opendrift.models.basemodel:2030: 2025-01-24 01:32:29.948401 - step 102 of 120 - 10000 active elements (0 deactivated)
08:42:49 INFO    opendrift.models.basemodel:2030: 2025-01-24 01:42:29.948401 - step 103 of 120 - 10000 active elements (0 deactivated)
08:42:49 INFO    opendrift.models.basemodel:2030: 2025-01-24 01:52:29.948401 - step 104 of 120 - 10000 active elements (0 deactivated)
08:42:49 INFO    opendrift.models.basemodel:2030: 2025-01-24 02:02:29.948401 - step 105 of 120 - 10000 active elements (0 deactivated)
08:42:49 INFO    opendrift.models.basemodel:2030: 2025-01-24 02:12:29.948401 - step 106 of 120 - 10000 active elements (0 deactivated)
08:42:49 INFO    opendrift.models.basemodel:2030: 2025-01-24 02:22:29.948401 - step 107 of 120 - 10000 active elements (0 deactivated)
08:42:50 INFO    opendrift.models.basemodel:2030: 2025-01-24 02:32:29.948401 - step 108 of 120 - 10000 active elements (0 deactivated)
08:42:50 INFO    opendrift.models.basemodel:2030: 2025-01-24 02:42:29.948401 - step 109 of 120 - 10000 active elements (0 deactivated)
08:42:50 INFO    opendrift.models.basemodel:2030: 2025-01-24 02:52:29.948401 - step 110 of 120 - 10000 active elements (0 deactivated)
08:42:50 INFO    opendrift.models.basemodel:2030: 2025-01-24 03:02:29.948401 - step 111 of 120 - 10000 active elements (0 deactivated)
08:42:50 INFO    opendrift.models.basemodel:2030: 2025-01-24 03:12:29.948401 - step 112 of 120 - 10000 active elements (0 deactivated)
08:42:50 INFO    opendrift.models.basemodel:2030: 2025-01-24 03:22:29.948401 - step 113 of 120 - 10000 active elements (0 deactivated)
08:42:51 INFO    opendrift.models.basemodel:2030: 2025-01-24 03:32:29.948401 - step 114 of 120 - 10000 active elements (0 deactivated)
08:42:51 INFO    opendrift.models.basemodel:2030: 2025-01-24 03:42:29.948401 - step 115 of 120 - 10000 active elements (0 deactivated)
08:42:51 INFO    opendrift.models.basemodel:2030: 2025-01-24 03:52:29.948401 - step 116 of 120 - 10000 active elements (0 deactivated)
08:42:51 INFO    opendrift.models.basemodel:2030: 2025-01-24 04:02:29.948401 - step 117 of 120 - 10000 active elements (0 deactivated)
08:42:51 INFO    opendrift.models.basemodel:2030: 2025-01-24 04:12:29.948401 - step 118 of 120 - 10000 active elements (0 deactivated)
08:42:51 INFO    opendrift.models.basemodel:2030: 2025-01-24 04:22:29.948401 - step 119 of 120 - 10000 active elements (0 deactivated)
08:42:51 INFO    opendrift.models.basemodel:2030: 2025-01-24 04:32:29.948401 - 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) - 2025-01-23 08:41 to 2025-01-24 04:41
  • GENERIC DIESEL (855.8 kg/m3) - 2025-01-23 08:42 to 2025-01-24 04:42

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'])
08:43:02 WARNING opendrift.models.basemodel:2405: 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)
08:43:03 INFO    opendrift.models.basemodel:4606: Saving animation to /root/project/docs/source/gallery/animations/example_oil_thickness_1.gif...
08:43:23 INFO    opendrift.models.basemodel:3034: Time to make animation: 0:00:21.297798
../_images/example_oil_thickness_1.gif

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

Gallery generated by Sphinx-Gallery