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

user can now set any two of Ra, Ra*, and Ek in Reference_Type 5 #494

Merged

Conversation

illorenzo7
Copy link
Contributor

If we disregard Pr, only two of the parameters Ek, Ra, and Ra* (or equivalently Ro_c = sqrt(Ra*)) are independent in a rotating system. This pull request updates the logic so that if two of Ek, Ra, or Ra* are set, the third is automatically set according to

Ra* = Ra Ek^2/Pr

The logic does this by setting all these input parameters to -1 and checking if they are specified (which they will be if they are > 0).

@aurnou
Copy link

aurnou commented Dec 6, 2023 via email

@illorenzo7
Copy link
Contributor Author

@aurnou, Oh well we don't have to. But my sense is people typically want to set Prandtl to something specific and then play around with the other parameters. It seems unlikely people would want Ra, Ra*, and Ek to all be something specific (thus needing a weird Prandtl number).

I could be wrong of course!

My main thought here is that now the user can set

Pr, Ra, and Ro_c

and let the code calculate Ek.

@aurnou
Copy link

aurnou commented Dec 6, 2023 via email

@illorenzo7
Copy link
Contributor Author

@aurnou the Prandtl_Number should still be variable. I believe its default is still 1. Note that the other defaults are

Rayleigh_Number = -1
Convective_Rossby_Number = -1

etc. We need them to be -1 so that Fortran knows if the user specified them or not.

@aurnou
Copy link

aurnou commented Dec 8, 2023 via email

Copy link
Contributor

@feathern feathern left a comment

Choose a reason for hiding this comment

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

I'm good with merging this. We can work the Prandtl number into the logic in a future PR.

@feathern feathern merged commit 0b7ddcd into geodynamics:main Apr 3, 2024
5 checks passed
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.

3 participants