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

Entropy #496

Merged
merged 29 commits into from
May 29, 2024
Merged

Entropy #496

merged 29 commits into from
May 29, 2024

Conversation

Witt-D
Copy link
Collaborator

@Witt-D Witt-D commented Mar 27, 2024

Added entropy diagnostics for compressible euler equations

@tommbendall
Copy link
Contributor

It looks like this branch already includes all of the vorticity diagnostic changes, and these now conflict with changes on main.

This means that this will either have to wait for the vorticity diagnostic (and you'll probably have to fix conflicts twice) or you could reimplement the vorticity diagnostic on a branch that comes cleanly off main?

I think the entropy changes themselves look good but it'll be easier to see in a clean branch

Copy link
Contributor

@tommbendall tommbendall left a comment

Choose a reason for hiding this comment

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

This looks good to me. A couple of very minor suggestions about comments!

@@ -682,6 +683,64 @@ def setup(self, domain, state_fields):
super().setup(domain, state_fields)


class Entropy(DiagnosticField):
""" base diagnostic field for entropy diagnostic """
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
""" base diagnostic field for entropy diagnostic """
"""Base diagnostic field for entropy diagnostic"""

super().__init__(space=space, method=method, required_fields=tuple(required_fields))


class PhysicalEntropy(Entropy):
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a docstring here to help explain what this is? e.g.

u"""Physical entropy ρ*ln(θ) for Compressible Euler equations"""

gusto/diagnostics.py Show resolved Hide resolved
Copy link
Contributor

@tommbendall tommbendall left a comment

Choose a reason for hiding this comment

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

Looks good, thanks Dan!

@tommbendall tommbendall merged commit bd47530 into main May 29, 2024
4 checks passed
@tommbendall tommbendall deleted the entropy branch May 29, 2024 10:36
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