HelmholtzDecomposition.jl
Helmholtz decomposition of 2D velocity fields into rotational and divergent components.
Overview
This package decomposes a horizontal velocity field (u, v) into:
- Rotational (non-divergent): urot, vrot derived from stream function ψ
- Divergent (irrotational): udiv, vdiv derived from velocity potential χ
by solving the Poisson equations ∇²ψ = ζ and ∇²χ = δ.
Installation
using Pkg
Pkg.add(url="https://github.com/jbphyswx/HelmholtzDecomposition.jl")For spectral solver performance, also install one of:
Pkg.add("FFTW") # Cartesian periodic grids
Pkg.add("FastSphericalHarmonics") # Regular spherical grids
Pkg.add(url="https://github.com/jbphyswx/NUFSHT.jl") # Irregular sphericalUsage
See Examples for full worked examples, and Theory for mathematical background.