tomchor / Oceanostics.jl

Diagnostics for Oceananigans
https://tomchor.github.io/Oceanostics.jl/
MIT License
24 stars 8 forks source link

Adds DirectionalErtelPotentialVorticity #96

Closed tomchor closed 1 year ago

tomchor commented 1 year ago

This PR adds DirectionalErtelPotentialVorticity, which computes the contribution to the Ertel PV from a specific direction. This is useful for rotated domains, especially when studying symmetric instabilities, and it's not trivial to implement since it needs several sines and cosines that don't compile on a GPU using abstract operations.

I don't love the name DirectionalErtelPotentialVorticity but I couldn't find a better one. So I'm open to name suggestions here.