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

Condensation fireworks #445

Closed
milankl opened this issue Feb 16, 2024 · 6 comments · Fixed by #447
Closed

Condensation fireworks #445

milankl opened this issue Feb 16, 2024 · 6 comments · Fixed by #447
Labels
bug 🐞 Something isn't working humidity 💧 Affecting the hydrological cycle

Comments

@milankl
Copy link
Member

milankl commented Feb 16, 2024

The current condensation scheme produces negative values in the upper troposphere with funky "fireworks" that move against the wind... The white stuff is convection!

humidity.mp4
@milankl milankl added bug 🐞 Something isn't working humidity 💧 Affecting the hydrological cycle labels Feb 16, 2024
@milankl
Copy link
Member Author

milankl commented Feb 16, 2024

snapshot from last time step (colorbar is inverted though compared to the video) shows the negative humidity

image

@milankl
Copy link
Member Author

milankl commented Feb 21, 2024

This is a numerical issue because a $\tfrac{q^\star - q}{\Delta t}$ condensation tendency on a single time step is numerically very oscillatory with our leapfrog time stepping scheme, e.g. here starting at T=300K and 110% humidity

image

The implicit condesantion correction that accounts for the higher saturation humidity $q^\star$ due to the latent heat release helps already and should be used in any case. Reducing the tendency by a factor of $1/n$ so that $\tfrac{q^\star - q}{n\Delta t}$ with $n=7$ (just a multiple of a few time steps) and using a flux limiter of 0.2K per time step to limit the latent heat release however already helps massively

image

approaching 100% within a few tens of time steps which sounds reasonable. At T85 that's equivalent to a time scale of 1 hour.

@milankl
Copy link
Member Author

milankl commented Feb 21, 2024

With these changes the fireworks are gone, humidity can still be negative though, but that's tolerated for now

humidity3.mp4

@milankl
Copy link
Member Author

milankl commented Feb 21, 2024

Surface humidity in comparison (previous was at k=3 of 8 levels)

humidity3.mp4

@milankl
Copy link
Member Author

milankl commented Feb 22, 2024

Snapshots of 6-hourly precipitation stitched together with the new scheme, large scale + convective. I blame the current UniformCooling longwave radiation scheme for making the tropics too often slightly unstable causing large patches of convective precipitation there. So I believe we need to wait for a better radiation scheme to correct that.

precip2.mp4

This was referenced Feb 28, 2024
@milankl
Copy link
Member Author

milankl commented May 16, 2024

Update: For large-scale condensation the tendencies should be evaluated at the previous time step, because that changes the above to

image

meaning no wiggles anymore in the implicit case, the explicit has some but muuuuch less than before. I guess the same applies for surface fluxes probably too that should be evaluated on the previous time step?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working humidity 💧 Affecting the hydrological cycle
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant