Skip to content

Commit

Permalink
[skip ci] Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ci-build committed Sep 13, 2024
1 parent ec038ce commit 6fc919d
Show file tree
Hide file tree
Showing 362 changed files with 425,186 additions and 425,457 deletions.
Binary file modified _downloads/029881e221949484b26146d507a804ad/example_depth.zip
Binary file not shown.
Binary file modified _downloads/033af0d93f9b09e836d807ac3b9561f7/example_relative.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/1e965db755ac760751848acdb71bc467/example_oil_ice.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/2f279a49c6164050f7f6f735325d2c2c/example_plast.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/36debc3f4a32a890e68397fb8f9a3de4/example_grid.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/455f4a0d6f55d57bec7b1548941dfe56/example_plot.zip
Binary file not shown.
Binary file modified _downloads/46b4cb42d5bb56cc39e2b5b2b520b38d/gallery_python.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/540eb5641f8ad1d8bbba63da7a6f1b55/example_openberg.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/55c56f11981bc8994b23dd67ccffd4ea/example_larvae.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/57d7c3a68ca90906235269c0c377050a/example_compare.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/80232020e698aa1c3db016afe427fe84/example_openoil.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/838aeedbd6bf9f4ea6ea3789d94e546a/example_fjord.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/9279195b7d521d2dd58211cf2d1ee7e2/example_codegg.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/a5e54d5079281985180311aeb584726e/example_map.zip
Binary file not shown.
Binary file modified _downloads/a724e3e7d25baaaa1d358c1bd5c2dd60/example_fvcom.zip
Binary file not shown.
Binary file modified _downloads/a799cfc3e2163a9601d1a00e61d10a39/example_trajan.zip
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n# Parameterised Stokesdrift\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If surface Stokes drift is not awailable from a wave model, there are two alternatives:\n - one can increase the wind_drift_factor by e.g. 1.5%, as the Stokes Drift is typically 1.5% of the wind speed\n - or the surface Stokes drift can be parameterized from wind speed and fetch distance\n\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The latter option is activated in OpenDrift with the config setting\n`o.set_config('drift:use_tabularised_stokes_drift', True)`\nThis activates a paramterisation of Stokes drift with the following method, as implemented by Petter Nygren from SMHI:\nhttps://opendrift.github.io/_modules/opendrift/models/physics_methods.html#wave_stokes_drift_parameterised\nThe code and corresponding plot below shows how the Stokes drift factor (fraction of wind speed) varies with wind speed and fetch (3 different tabulated fetch distances).\n\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"import numpy as np\nimport matplotlib.pyplot as plt\nfrom opendrift.models.physics_methods import wave_stokes_drift_parameterised\n\nfor fetch in ['5000', '25000', '50000']:\n wind = ([np.arange(1, 35), np.array([0])])\n sx, sy = wave_stokes_drift_parameterised(wind=wind, fetch=fetch)\n plt.plot(wind[0], sx/wind[0], label=f'Fetch: {fetch[:-3]} km')\nplt.xlabel('Wind speed [m/s]')\nplt.ylabel('Stokes drift / wind speed [ratio]')\nplt.legend()\nplt.show()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.6"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/b5b04944cba9e81b9a5872791330760c/example_ensemble.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/bb890d8fc18f9a21787029b6675af744/example_cone.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/c0a3a846dd7c6d6aa449fdf8fd813796/example_macondo.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/c121897cbb882ba2326dd7f0f3f9a5c6/example_drifter.zip
Binary file not shown.
Binary file modified _downloads/c53354a1383dae63edfb5fe0bcbb4be6/example_windblow.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env python
"""
Parameterised Stokesdrift
=========================
"""

#%%
#
# If surface Stokes drift is not awailable from a wave model, there are two alternatives:
# - one can increase the wind_drift_factor by e.g. 1.5%, as the Stokes Drift is typically 1.5% of the wind speed
# - or the surface Stokes drift can be parameterized from wind speed and fetch distance

#%%
# The latter option is activated in OpenDrift with the config setting
# `o.set_config('drift:use_tabularised_stokes_drift', True)`
# This activates a paramterisation of Stokes drift with the following method, as implemented by Petter Nygren from SMHI:
# https://opendrift.github.io/_modules/opendrift/models/physics_methods.html#wave_stokes_drift_parameterised
# The code and corresponding plot below shows how the Stokes drift factor (fraction of wind speed) varies with wind speed and fetch (3 different tabulated fetch distances).

import numpy as np
import matplotlib.pyplot as plt
from opendrift.models.physics_methods import wave_stokes_drift_parameterised

for fetch in ['5000', '25000', '50000']:
wind = ([np.arange(1, 35), np.array([0])])
sx, sy = wave_stokes_drift_parameterised(wind=wind, fetch=fetch)
plt.plot(wind[0], sx/wind[0], label=f'Fetch: {fetch[:-3]} km')
plt.xlabel('Wind speed [m/s]')
plt.ylabel('Stokes drift / wind speed [ratio]')
plt.legend()
plt.show()
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/ed4c48daa486e7b41db355dc85b3fe89/example_generic.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/f301a4c979f22b9b7478e10e32a3e4dc/example_leeway.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/f93abdd76951294346e6f02f09086575/example_2d.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/fcaddee3a42ae2e2c41e00ae08d70347/gallery_jupyter.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _images/example_2d_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_biodegradation_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_chemicaldrift_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_chemicaldrift_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_coastline_options_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_coastline_options_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_coastline_options_2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_coastline_options_3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_codegg_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_codegg_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_cone_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_depth_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_dominating_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_ensemble_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_entrainment_rate_oil_types_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_entrainment_rate_oil_types_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_huge_output_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_huge_output_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_manual_aggregate_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_mixed_layer_depth_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_mixed_layer_depth_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_mixed_layer_depth_2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_oil_ice_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_oil_thickness_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_oil_thickness_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_oil_verticalmixing_0.gif
Binary file modified _images/example_oil_verticalmixing_1.gif
Binary file modified _images/example_plot_0.gif
Binary file modified _images/example_river_runoff_0.gif
Binary file modified _images/example_sediments_0.gif
Binary file modified _images/example_sediments_resuspension_0.gif
Binary file modified _images/example_seed_from_shapefile_0.gif
Binary file modified _images/example_shipdrift_0.gif
Binary file modified _images/example_shipdrift_leeway_0.gif
Binary file modified _images/example_static_2d_current_0.gif
Binary file modified _images/sphx_glr_example_2d_001.png
Binary file modified _images/sphx_glr_example_2d_thumb.png
Binary file modified _images/sphx_glr_example_advection_schemes_eddy_001.png
Binary file modified _images/sphx_glr_example_advection_schemes_eddy_thumb.png
Binary file modified _images/sphx_glr_example_biodegradation_001.png
Binary file modified _images/sphx_glr_example_biodegradation_thumb.png
Binary file modified _images/sphx_glr_example_chemicaldrift_001.png
Binary file modified _images/sphx_glr_example_chemicaldrift_thumb.png
Binary file modified _images/sphx_glr_example_codegg_001.png
Binary file modified _images/sphx_glr_example_codegg_thumb.png
Binary file modified _images/sphx_glr_example_cone_001.png
Binary file modified _images/sphx_glr_example_cone_thumb.png
Binary file modified _images/sphx_glr_example_depth_001.png
Binary file modified _images/sphx_glr_example_depth_thumb.png
Binary file modified _images/sphx_glr_example_ensemble_001.png
Binary file modified _images/sphx_glr_example_ensemble_thumb.png
Binary file modified _images/sphx_glr_example_entrainment_rate_oil_types_001.png
Binary file modified _images/sphx_glr_example_entrainment_rate_oil_types_002.png
Binary file modified _images/sphx_glr_example_entrainment_rate_oil_types_thumb.png
Binary file modified _images/sphx_glr_example_huge_output_001.png
Binary file modified _images/sphx_glr_example_huge_output_thumb.png
Binary file modified _images/sphx_glr_example_oil_ice_001.png
Binary file modified _images/sphx_glr_example_oil_ice_thumb.png
Binary file modified _images/sphx_glr_example_oil_thickness_001.png
Binary file modified _images/sphx_glr_example_oil_thickness_002.png
Binary file modified _images/sphx_glr_example_oil_thickness_thumb.png
Binary file modified _images/sphx_glr_example_oil_verticalmixing_001.png
Binary file modified _images/sphx_glr_example_oil_verticalmixing_002.png
Binary file modified _images/sphx_glr_example_oil_verticalmixing_003.png
Binary file modified _images/sphx_glr_example_oil_verticalmixing_thumb.png
Binary file modified _images/sphx_glr_example_openberg_001.png
Binary file modified _images/sphx_glr_example_openberg_002.png
Binary file modified _images/sphx_glr_example_openberg_thumb.png
Binary file modified _images/sphx_glr_example_river_runoff_001.png
Binary file modified _images/sphx_glr_example_river_runoff_002.png
Binary file modified _images/sphx_glr_example_river_runoff_thumb.png
Binary file modified _images/sphx_glr_example_sediments_001.png
Binary file modified _images/sphx_glr_example_sediments_resuspension_001.png
Binary file modified _images/sphx_glr_example_sediments_resuspension_thumb.png
Binary file modified _images/sphx_glr_example_sediments_thumb.png
Binary file modified _images/sphx_glr_example_seed_from_shapefile_001.png
Binary file modified _images/sphx_glr_example_seed_from_shapefile_thumb.png
Binary file modified _images/sphx_glr_example_shipdrift_001.png
Binary file modified _images/sphx_glr_example_shipdrift_leeway_001.png
Binary file modified _images/sphx_glr_example_shipdrift_leeway_thumb.png
Binary file modified _images/sphx_glr_example_shipdrift_thumb.png
140 changes: 70 additions & 70 deletions _sources/gallery/example_2d.rst.txt

Large diffs are not rendered by default.

8,588 changes: 4,294 additions & 4,294 deletions _sources/gallery/example_LCS_norkyst.rst.txt

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions _sources/gallery/example_advection_schemes_eddy.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ schemes, using an idealised (analytical) eddy current field.
.. image-sg:: /gallery/images/sphx_glr_example_advection_schemes_eddy_001.png
:alt: OpenDrift - OceanDrift 2024-09-13 13:49 to 2024-09-22 13:49 UTC (433 steps)
:alt: OpenDrift - OceanDrift 2024-09-13 16:23 to 2024-09-22 16:23 UTC (433 steps)
:srcset: /gallery/images/sphx_glr_example_advection_schemes_eddy_001.png
:class: sphx-glr-single-img

Expand All @@ -45,7 +45,7 @@ schemes, using an idealised (analytical) eddy current field.
runge-kutta4, T=0.5h
runge-kutta4, T=3.0h
(<GeoAxes: title={'center': 'OpenDrift - OceanDrift\n2024-09-13 13:49 to 2024-09-22 13:49 UTC (433 steps)'}>, <Figure size 1041.68x1100 with 1 Axes>)
(<GeoAxes: title={'center': 'OpenDrift - OceanDrift\n2024-09-13 16:23 to 2024-09-22 16:23 UTC (433 steps)'}>, <Figure size 1041.68x1100 with 1 Axes>)
Expand Down Expand Up @@ -82,7 +82,7 @@ schemes, using an idealised (analytical) eddy current field.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 58.883 seconds)
**Total running time of the script:** (0 minutes 54.241 seconds)


.. _sphx_glr_download_gallery_example_advection_schemes_eddy.py:
Expand Down
Loading

0 comments on commit 6fc919d

Please sign in to comment.