-
Notifications
You must be signed in to change notification settings - Fork 13
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
Entropy #496
Conversation
… compressibleVorticity
… compressibleVorticity
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 |
There was a problem hiding this 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!
gusto/diagnostics.py
Outdated
@@ -682,6 +683,64 @@ def setup(self, domain, state_fields): | |||
super().setup(domain, state_fields) | |||
|
|||
|
|||
class Entropy(DiagnosticField): | |||
""" base diagnostic field for entropy diagnostic """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
""" 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): |
There was a problem hiding this comment.
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"""
There was a problem hiding this 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!
Added entropy diagnostics for compressible euler equations