edoddridge / aronnax

An idealised isopycnal model that can be run either with n+1/2 layers, or with n layers and variable bathymetry.
http://aronnax.readthedocs.io/en/latest/
MIT License
23 stars 5 forks source link

Use wind speed to force the flow #164

Closed edoddridge closed 6 years ago

edoddridge commented 6 years ago

This PR adds functionality which allows users to specify wind fields and a quadratic drag coefficient as momentum forcing. Two fields must be provided - one for each velocity component - and a single drag coefficient. This closes #163.

The momentum forcing can now be set either by prescribing a momentum flux in N/m^2, or by specifying winds fields and a drag coefficient.

codecov[bot] commented 6 years ago

Codecov Report

Merging #164 into master will increase coverage by 0.87%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #164      +/-   ##
==========================================
+ Coverage   94.36%   95.23%   +0.87%     
==========================================
  Files           5        5              
  Lines        1207     1218      +11     
  Branches       62       64       +2     
==========================================
+ Hits         1139     1160      +21     
+ Misses         52       43       -9     
+ Partials       16       15       -1
Impacted Files Coverage Δ
aronnax.f90 95.12% <100%> (+0.49%) :arrow_up:
aronnax/driver.py 93.45% <100%> (ø) :arrow_up:
aronnax/core.py 96.57% <0%> (+3.42%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0df5b05...2b02fe1. Read the comment docs.