Skip to content

Conversation

sajjadazimi
Copy link
Member

Purpose

Add tracers detrainment due to sedimentation

Content


  • I have read and checked the items on the review checklist.

@. ᶜqʲₜ += ᶜinv_ρ̂ * vtt
@. Yₜ.c.sgsʲs.:($$j).q_tot += ᶜinv_ρ̂ * vtt
@. ᶜ∂ρ∂t_sed += vtt
vtt_sed_detrainment = @. lazy(min(0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's reused a couple of times, could you define this sedimentation detrainment as a standalone function to be called on different variables?

@. Yₜ.c.sgsʲs.:($$j).q_tot += ᶜinv_ρ̂ * vtt
@. ᶜ∂ρ∂t_sed += vtt
vtt_sed_detrainment = @. lazy(min(0,
-1 * ᶜρʲs.:($$j) * ᶜqʲ * ᶜwʲ * ᶜright_biased_∂a∂z))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add some documentation (either in the docs or in a code comment here) on how this term is derived?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants