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

TKEDissipationVerticalDiffusivity (aka k-epsilon) turbulence closure (take 2) #3605

Merged
merged 80 commits into from
Jun 20, 2024

Conversation

glwagner
Copy link
Member

This PR replaces #3509. Also, it builds off #3585 which hopefully we can merge soon so we don't enter merge conflict hell.

In short this PR implements k-epsilon. Although, the version that's implemented now is not by-the-book k-epsilon but rather a simplified version. I'd like to merge this PR basically as is and hopefully continue to work on it in the future.

There are some numerical considerations which should be reviewed and documented I think. First of all is the challenge of specifying a minimum tke, minimum dissipation rate, and also a maximum dissipation rate. These are useful for producing smooth diffusivities, which note are

$$ \kappa \sim \frac{e^2}{\epsilon} $$

But then there are challenges with implementing the TKE and dissipation equations. Because depending on the term, one may either want to impose or not impose these constraints.

It could be useful to try to get some lessons from other codes too.

It's not ready for production use, but at least it's doing reasonable things...

image

@glwagner glwagner requested a review from navidcy June 7, 2024 23:13
@navidcy navidcy added turbulence closures 🎐 parameterizations Fudge factors and hand-waving labels Jun 10, 2024
@navidcy
Copy link
Collaborator

navidcy commented Jun 10, 2024

OK! I'll review this!

so in Oceananigans terms is the e-ϵ parameterization, right?

Copy link
Collaborator

@navidcy navidcy left a comment

Choose a reason for hiding this comment

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

good job; sprinkled few questions/comments here and there

navidcy and others added 9 commits June 12, 2024 14:48
Co-authored-by: Simone Silvestri <[email protected]>
…asedVerticalDiffusivities/catke_vertical_diffusivity.jl

Co-authored-by: Navid C. Constantinou <[email protected]>
…asedVerticalDiffusivities/tke_dissipation_equations.jl

Co-authored-by: Navid C. Constantinou <[email protected]>
…asedVerticalDiffusivities/tke_dissipation_vertical_diffusivity.jl

Co-authored-by: Navid C. Constantinou <[email protected]>
@glwagner
Copy link
Member Author

OK! I'll review this!

so in Oceananigans terms is the e-ϵ parameterization, right?

I think we should call it "TKE dissipation vertical diffusivity", or k-epsilon in a nod to the literature. I don't think we shoudl call it "e-epsilon".

@navidcy
Copy link
Collaborator

navidcy commented Jun 13, 2024

I think we should call it "TKE dissipation vertical diffusivity", or k-epsilon in a nod to the literature. I don't think we shoudl call it "e-epsilon".

No, definitely not!! I wasn't implying that we call it "e-epsilon". I was just trying to see whether the k from k-ε is the same as our e... But after my question I soon figured it out -- sorry, I should have deleted the comment.

Let's call it "TKE dissipation vertical diffusivity" but let's also mention in the docstring or somewhere that this is "the otherwise known as k-epsilon"

@glwagner
Copy link
Member Author

I think we should call it "TKE dissipation vertical diffusivity", or k-epsilon in a nod to the literature. I don't think we shoudl call it "e-epsilon".

No, definitely not!! I wasn't implying that we call it "e-epsilon". I was just trying to see whether the k from k-ε is the same as our e... But after my question I soon figured it out -- sorry, I should have deleted the comment.

Let's call it "TKE dissipation vertical diffusivity" but let's also mention in the docstring or somewhere that this is "the otherwise known as k-epsilon"

Ah yes, "k" is turbulent kinetic energy in the name "k-epsilon".

@glwagner glwagner merged commit 5661358 into main Jun 20, 2024
46 checks passed
@glwagner glwagner deleted the glw/k-epsilon-2 branch June 20, 2024 22:09
glwagner added a commit that referenced this pull request Jun 20, 2024
@glwagner glwagner mentioned this pull request Jun 20, 2024
glwagner added a commit that referenced this pull request Jun 21, 2024
* Bump to 0.91.3

Captures #3605

* Bump down

* Bump up
@glwagner glwagner mentioned this pull request Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants