Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Enable construction of reference state from user-defined profiles #2036

Open
ilopezgp opened this issue Feb 12, 2021 · 0 comments
Open

Enable construction of reference state from user-defined profiles #2036

ilopezgp opened this issue Feb 12, 2021 · 0 comments
Assignees
Labels
Atmos Atmosphere help wanted Extra attention is needed

Comments

@ilopezgp
Copy link
Contributor

Description

The reference state is currently constructed from a finite set of hardcoded temperature profiles, see TemperatureProfiles.jl. These profiles have been chosen because the pressure field can be constructed analytically imposing hydrostatic balance.

In the more general case, a reference state can be constructed from a user-defined profile of a given thermodynamic variable (e.g., pressure, density or temperature). Of particular interest to users would be the possibility to construct a reference state given a (virtual) potential temperature profile, θ=θ(z).

The code does not currently support easily this option because it requires performing the following integral to recover the pressure field p,

(pᵏ - pᵏ₀)/k = -gpᵏ₀ ∫ 1/(Rθ) dz, k = Rd/Cp

Ideally, we would want to construct a PrescribedTemperatureProfile function that returns the pointwise p given a function θ=θ(z). For that, we need to be able to integrate in TemperatureProfiles.jl.

@ilopezgp ilopezgp added help wanted Extra attention is needed Atmos Atmosphere labels Feb 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Atmos Atmosphere help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants