ali-ramadhan / Atmosfoolery.jl

Compressible non-hydrostatic model built on top of Oceananigans.jl so it runs on CPUs and GPUs
MIT License
3 stars 0 forks source link

Abstractions for reference states #89

Open ali-ramadhan opened 3 years ago

ali-ramadhan commented 3 years ago

Don't need the equations to evolve the perturbations as suggested in #50 but would be nice to be able to write stuff like

isothermal_atmosphere = IsothermalAtmosphere(potential_temperature=300, surface_pressure=1000hPa)
model = CompressibleModel(..., reference_state=isothermal_atmosphere)

or

isothermal_atmosphere = IsothermalAtmosphere(potential_temperature=300, surface_pressure=1000hPa)
set!(model, isothermal_atmosphere)