-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add thermo extension with constant entropy ref state #43
Conversation
76adfe7
to
7ff2953
Compare
Some notes/findings with this PR:
This needs to be confirmed, but I believe I've found a bug in SCAMPy: liquid condensate ( |
47: Match scampy by using linear interpolation r=charleskawczynski a=charleskawczynski This PR changes `pyinterp` to use linear interpolation, which is what `numpy.interp` does by default. I believe TRMM should match with SCAMPy far better with these changes. This should hopefully give us a clearer view of how #43 changes the results. Co-authored-by: Charles Kawczynski <[email protected]>
7ff2953
to
4268061
Compare
It seems that the thermo functions are not yet self-consistent (by about 0.1 % in entropy). Perhaps this is why there's still a discrepency? This may be easier to look into in Thermodynamics.jl. |
51: Add some planet parameters r=charleskawczynski a=charleskawczynski These parameters are from "Large-eddy simulation in an anelastic framework with closed water and entropy balances" (Pressel et. al.), Table 1. This is needed for [TurbulenceConvection.jl's #43](CliMA/TurbulenceConvection.jl#43). Co-authored-by: Charles Kawczynski <[email protected]>
51: Fix inversion height bug, read Ri bulk crit from namelist, add Nieuwstadt case r=charleskawczynski a=charleskawczynski I believe this fixes the Nieuwstadt case. This may also fix / improve other cases. cc `@yairchn.` Looking forward to re-try #25, #40, and #43. Co-authored-by: Charles Kawczynski <[email protected]>
51: Fix inversion height bug, read Ri bulk crit from namelist, add Nieuwstadt case r=charleskawczynski a=charleskawczynski I believe this fixes the Nieuwstadt case. This may also fix / improve other cases. cc `@yairchn.` Looking forward to re-try #25, #40, and #43. Co-authored-by: Charles Kawczynski <[email protected]>
178faba
to
74723f3
Compare
Updates after #47 and #51: Most results appear fine. Rico and ARM have slightly noticeable differences, but qualitatively and quantitatively satisfactory. TRMM_LBA is the one outlier, where updraft w and tke become undesirably large in the upper atmos. This also coincides with the fact that TRMM_LBA (and GATE, not compared) have noticeable differences in the reference states (the largest difference is in the upper atmos), whereas all other reference states are visually indistinguishable. Also, I'm not sure what we can do about the difference in the reference state since SCAMPy uses a different, empirical, saturation vapor pressure based on the Magnus formula. |
f69cd00
to
dfa5918
Compare
Apply Tapio suggestion
dfa5918
to
e4deefe
Compare
I think we’re forgoing this PR in favor of #25. |
This PR adds some pressure-entropy-total specific humidity constructors, and uses them for constructing the reference state to ensure a constant entropy reference state.