-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add radiation #893
Add radiation #893
Conversation
8a52840
to
db1efc0
Compare
@majosm , two comments:
|
Done (forgot to push 🙂). |
I dislike the disparity in naming, too. I also dislike when every BC has "WallBoundary" attached to it, if they all have it, then why have it at all? For me, these could easily be Now that we have multiple domains and materials, we could re-think some of the code structuring too, like renaming mirgecom.boundary to mirgecom.fluid_boundary. But again, these are all non-essential changes that can easily distract us and seem unimportant unless we are already set up to really nail the prediction. Edit: also out of scope for this pr |
not necessary since we aren't checking accuracy
interface_radiation=interface_radiation, | ||
wall_emissivity=wall_emissivity, | ||
sigma=sigma, | ||
ambient_temperature=ambient_temperature, |
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.
If the function is deprecated, I wouldn't updated it with radiation.
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.
And we don't need to get the gradient here (
because it is already computed above |
@@ -1421,6 +1652,10 @@ def basic_coupled_ns_heat_operator( | |||
*, | |||
time=0., | |||
interface_noslip=True, | |||
interface_radiation=False, | |||
wall_emissivity=None, | |||
sigma=None, |
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.
Should we default it to its actual value 5.67e-8?
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.
I worry about specifying default values for constants, because it invites the possibility of omitting them by accident, leading to silently incorrect results if the value is supposed to be something other than the default. Better to produce an error I think.
It's not actually being recomputed there, since we're passing it in as |
I prefer the new version, but it is not a big deal since, in practice, we may end up having this in the driver itself... 🤷♂️ |
LGTM, but I will let @MTCam give the final word. |
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.
👍
Adds radiation sink term to fluid-wall coupling.
Questions for the review: