CliMA / TurbulenceConvection.jl

A turbulence-convection single column model cloud parameterization.
https://clima.github.io/TurbulenceConvection.jl/dev/
Apache License 2.0
33 stars 5 forks source link

Change of subdomain prognostic variable to total energy #1052

Open yairchn opened 2 years ago

yairchn commented 2 years ago

Purpose

In a recent large PR #960 the grid mean thermodynamic variables were converted from (ρθ_lid_ice, ρq_tot) to (ρe_tot, ρq_tot). This PR resulted in undesired behavioral changes, most notably in GABLS. We expect some of these changes to be related to the fact the TC.jl not has ρθ_lid_ice as prognostic variable in the subdomains and ρe_tot while the two are not fully consistent under the anelastic assumption.

This Issue and connected PRs will change the prognostic variables in the subdomains to ρe_tot along with a reformulation of the environmental buoyancy flux in terms of moist static energy.

Design of model equations: https://www.overleaf.com/7149629736ygjfhcfqxqsp

Cost/benefits/risks

Similar to #960 , this is going to be a large code change. I will try to make sure to merge pill off PRs

Producers

@yairchn @charleskawczynski

Components

Inputs

See docs for required inputs

Results and deliverables

Our key deliverable is an EDMF in terms of total energy. This is crucial to allow it connect with the global model of similar variables and ensure conservation properties.

QA: Reproduce the behavior in TRMM_LBA, maybe even some of the behavior in GABLS.

Task breakdown

Reviewers

@charleskawczynski @trontrytel @ilopezgp

yairchn commented 2 years ago

1073 is ready for review