Skip to content
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

Use Thermodynamics.jl for reference state profiles #25

Merged
merged 2 commits into from
Aug 9, 2021
Merged

Conversation

charleskawczynski
Copy link
Member

@charleskawczynski charleskawczynski commented Jul 19, 2021

This PR adds the use of Thermodynamics.jl to help construct the reference state profiles.

bors bot added a commit that referenced this pull request Jul 20, 2021
27: Fix nh pressure index, as this is indexing into OffsetArray r=charleskawczynski a=charleskawczynski

#25 exercises the case where `alen` is equal to the length of `avals`. As this is an offset array, the proper translation was to use `xrange`, which effectively means indexing with `0:alen-1`.

Co-authored-by: Charles Kawczynski <[email protected]>
bors bot added a commit that referenced this pull request Jul 20, 2021
29: Add reference state profile plots to docs r=charleskawczynski a=charleskawczynski

This will be helpful to verify that the reference state profiles don't change too dramatically in #25.

Co-authored-by: Charles Kawczynski <[email protected]>
@charleskawczynski charleskawczynski force-pushed the ck/param_set branch 2 times, most recently from 6862ad2 to 93f998a Compare July 20, 2021 19:05
@charleskawczynski charleskawczynski marked this pull request as ready for review July 20, 2021 19:05
@charleskawczynski charleskawczynski force-pushed the ck/param_set branch 6 times, most recently from d5de1cf to 84985d3 Compare July 21, 2021 05:09
@yairchn
Copy link
Member

yairchn commented Jul 21, 2021

** Do not merge yet **

Examining the Artifacts, there are many in which the difference is acceptable but some that are not acceptable.
The most outstanding are:
Soares: Updraft area (note that updraft theta here is ok in lower levels even though updraft area is off which is unclear to me how).
TRMM: TKE, theta_updraft, updraft area, v_mean, (might be off due to plotting as its off also in the SCAMPy plot)

bors bot added a commit that referenced this pull request Jul 21, 2021
35: Add climaparameters dep r=charleskawczynski a=charleskawczynski

This peels off non-behavior changes from #25:
 - Dependence of CLIMAParameters added
 - Parameter sets become available in many functions
 - Parameter sets are read from the namelist file

Note that parameter sets become available, but are not yet used.

Co-authored-by: Charles Kawczynski <[email protected]>
@charleskawczynski charleskawczynski changed the title Add CLIMAParameters, use Thermodynamics.jl for reference state profiles Use Thermodynamics.jl for reference state profiles Jul 21, 2021
src/ReferenceState.jl Outdated Show resolved Hide resolved
bors bot added a commit that referenced this pull request Jul 28, 2021
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]>
bors bot added a commit that referenced this pull request Jul 28, 2021
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]>
@charleskawczynski charleskawczynski force-pushed the ck/param_set branch 2 times, most recently from 74e3951 to 42b9290 Compare July 29, 2021 16:04
@charleskawczynski
Copy link
Member Author

I think we've worked out most of the kinks. We'll come back to the reference state to address #98 later.

Undo T_freeze changes

Re-apply T_freeze mod, fix more constructors
@charleskawczynski
Copy link
Member Author

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 9, 2021

Build succeeded:

@bors bors bot merged commit 94a3f72 into main Aug 9, 2021
@bors bors bot deleted the ck/param_set branch August 9, 2021 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants