File Exchange

image thumbnail

Variable eddy viscosity Ekman layer in the ABL (1D)

version 1.1 (157 KB) by E. Cheynet
Ekman's equations in the atmospheric boundary layer are solved for a horizontally homogeneous flow and a height-dependant eddy viscosity


Updated 15 May 2020

GitHub view license on GitHub

Matlab implementation of the solution to the Ekman equations in the atmospheric boundary layer. The flow is assumed horizontal and homogeneous. however, a height-dependant eddy viscosity can be modelled. The solutions are provided in one-dimension.

The submission includes

- The function EkmanAnalytic that provides analytics solution of Ekman's equations for a constant eddy viscosity in the atmospheric boundary layer.
- The function solveEkman that numerically solves Ekman's equations with an explicit finite difference scheme and allows the use of height-dependant eddy viscosity. The numerical implementation is partly inspired by [1].
- An example file Example0.mlx and reproduces some of the figures displayed in ref [2]

Any question, suggestion or comment is welcomed.


[1] Berger, B. W., & Grisogono, B. (1998). The baroclinic, variable eddy viscosity Ekman layer. Boundary-layer meteorology, 87(3), 363-380.


Cite As

E. Cheynet (2020). Variable eddy viscosity Ekman layer in the ABL (1D) (, GitHub. Retrieved .

E. Cheynet. ECheynet/Ekman1D: Variable Eddy Viscosity Ekman Layer in the ABL (1D). Zenodo, 2020, doi:10.5281/ZENODO.3829394.

View more styles

Comments and Ratings (0)



See release notes for this release on GitHub:




Typos in one figure and the illustration

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux