-
Notifications
You must be signed in to change notification settings - Fork 20
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
Reorganize a bit the structure of the wall files #935
Conversation
I forgot to mention: I have an idea to simplify |
Hi @majosm, I think I covered all the points you raised. I couldn't reply directly wrt the Also, note that I renamed |
mirgecom/eos.py
Outdated
@@ -341,7 +342,7 @@ def heat_capacity_cv(self, cv: Optional[ConservedVars] = None, temperature=None) | |||
""" | |||
return self._gas_const / (self._gamma - 1) | |||
|
|||
def gas_const(self, cv: Optional[ConservedVars] = None): | |||
def gas_const(self, cv: Optional[ConservedVars] = None, temperature=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.
def gas_const(self, cv: Optional[ConservedVars] = None, temperature=None): | |
def gas_const(self, cv: Optional[ConservedVars] = None, temperature: Optional[DOFArray] = None): |
mirgecom/eos.py
Outdated
def gas_const(self, cv: ConservedVars, # type: ignore[override] | ||
temperature=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.
def gas_const(self, cv: ConservedVars, # type: ignore[override] | |
temperature=None): | |
def gas_const(self, cv: ConservedVars, # type: ignore[override] | |
temperature: Optional[DOFArray] = None): |
# TODO per MTC review, can we generalize the oxidation model? | ||
# should we keep this in the driver? |
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.
tbh, I do not see any real harm in internalizing some of our use-specific constructs. If it makes it easier for us (and others) to use, then we should. Is that the question, or did I miss the mark?
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.
The original comment was here: #875 (comment)
Just keeping in the code as a reminder for the coupling PR which will effectively use the models. I suggest we postpone the discussion on this.
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 like a net positive change to me. It is hard to tell what all the implications are, and the unintended effects. We'll just have to use it and find out, heh.
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.
Just a few more suggestions, otherwise looks good. 👍
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 on my end.
Some cosmetic changes and initial steps towards a more thorough refactor of the gas-wall structure (#930)
wall_model
mask_from_elements
toutils
PorousFlowFluidState
to uncouple the wall density fromdv
to the newwv
, as well as existing wall dependent varswdv
towv
PorousFlowModel
that considers the wall thermophysical properties.PorousWallTransport
coupling gas and wall propertiesablation_workshop
example is inside that driver. Now the material files are cleaner and more "prediction targeted"Questions for the review @MTCam:
After quick first pass, looks good to me, just need to have a more detailed look to check the rest of the boxes.