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

Output number concentration from YOG for further diagnostics #18

Open
jatkinson1000 opened this issue Jun 19, 2024 · 6 comments · Fixed by #23 · May be fixed by #39
Open

Output number concentration from YOG for further diagnostics #18

jatkinson1000 opened this issue Jun 19, 2024 · 6 comments · Fixed by #23 · May be fixed by #39
Assignees

Comments

@jatkinson1000
Copy link
Member

@paogorman comments:

One output that we have not included from the NN is the number concentration for liquid and ice cloud.

ZM handles this by just using a typical radius and deriving it from the mixing ratio tendencies from liquid and ice cloud. So I think we could follow suit with the following code:

ptend_loc%q(i,k,ixnumliq) = 3._r8 * max(0._r8, ptend%q(i,k,ixcldliq)) / (4._r8*3.14_r8* 8.e-6_r8**3*997._r8)
ptend_loc%q(i,k,ixnumice) = 3._r8 * max(0._r8, ptend%q(i,k,ixcldice)) / (4._r8*3.14_r8*25.e-6_r8**3*500._r8)

(Please see our google doc on the SAM-CAM interface for further discussion).
In any event it would be good to output cloud and liquid mixing ratios and number concentrations from your SCAM6 run and see how they behave.

@jatkinson1000
Copy link
Member Author

This would require adding output variables for these quantities and then performing the above calculation as part of the YOG calculation.

It looks like the code above would be a 'number concentration tendency' is that correct?

@paogorman
Copy link

paogorman commented Jun 20, 2024 via email

@paogorman
Copy link

A couple of further comments:

  • Our cloud liquid and ice tendencies could be either positive or negative, unlike ZM which can only give positive tendencies due to detrainment because of the assumptions of the scheme. Thus we shouldn't have the max(0,) functions in our expressions for the number tendencies. However, we should add a constraint that these tendencies can't lead to negative values of the number concentrations themselves.
  • We should also output these number concentration tendencies to the statistics files.

@jatkinson1000
Copy link
Member Author

OK, the above approach has been implemented as part of pull request #23
I will add in the same pull request the addition of YOG number concentration tendencies to the outputs, and look at allowing negative tendency but with a limit of reducing n at most to 0.0.

As a related question 0.0 number concentration should (physically) coincide with 0.0 liquid water or ice content?

@jatkinson1000
Copy link
Member Author

I have now extended #23 to implement a constraint that YOG number concentration tendency can be negative, but cannot reduce total number concentration below zero.

I have added @paogorman and @MarionBWeinzierl as reviewers there to look at the changes.

@jatkinson1000
Copy link
Member Author

For number concentration tendencies output those from YOG directly.
For ZM look at clubb but try and generate the comparison using explicitly the convective contribution to tendencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants