-
Notifications
You must be signed in to change notification settings - Fork 8
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
MGUsup #331
MGUsup #331
Conversation
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.
Great documentation @aematts ! You're also welcome to put a blurb in the other Gruniesen EOS to encourage the user to use the thermodynamically consistent one if they are able. It's up to you though whether you want to add this.
As long as things compile, this looks good to me!
Actually I want to take a slightly closer look real quick.
I want reviews but not merge just yet. I am fixing the documentation since I am only using the pipeline for compiling it. So I need to do some commits more. I will remove the WIP when I am ready for merge. |
And both of you: THANKS for getting on it so fast. |
👍 Understood. I will make sure to review this by the end of today. |
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 think it would be good to compute a maximum density for this EOS to ensure that sound speeds aren't imaginary.
You can see we used this approach in the other Gruneisen EOS, but with a much more complicated procedure for calculating the maximum density (since it's a cubic Us-up fit).
I would recommend mirroring this approach where the user is allowed to provide a maximum density or not. If the maximum density is used, then we set it and perhaps warn the user if it's greater than the singularity in the denominator of the Hugoniot expression. If the user does not provide a maximum density, then we provide one based off of the Hugoniot fit parameter.
See this section of the other Gruneisen EOS for an example of how to do this.
Gruneisen(const Real C0, const Real s1, const Real s2, const Real s3, const Real G0, |
I have two more questions:
|
Just copy the old one and update the date to 2024. Just worry about the files you change. We'll do an automated update later.
It's easiest to use the gitlab CI. I'll post some instructions in mattermost for how to do this. |
All this means is that in each file you touch, make sure that there's a blurb like the one below. And that the date includes the current calendar year as the end date... e.g., 2024.
Yeah I will trigger the tests. I can also walk you through how to do it at some point. The way to do it is to push your branch to the mirror on re-git and create a pull request there. We never merge that PR but it will trigger the Darwin tests and report their status. I did it for this branch here:
I don't see any failed tests at least reported on github? Were they in the full test suite? We'll see what it says on Darwin. |
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.
Thanks for this, @aematts overall, this looks great! I have a few small nitpicks, but from my perspective this is basically good to go.
Whatever we decide to do about the compression limit, we should document. It's fine for things to fail in compression at runtime for now, but we should warn in the documentation. And we should think about a more robust solution longer term. For my money I would prefer if the code failed at initialization or not at all, as this would help deal with the garbage inputs that we are likely to receive from host codes.
@aematts let us know when you'd like a re-review, so we don't miss it. |
@jhp-lanl and @Yurlungur: The PR is now ready for final review. |
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 NOT delete my branch, please. I would like to use it again for the PowerMG. |
I changed the repository settings, the branch shouldn't be automatically deleted now. |
Just to be clear here though, the branch is only deleted from the remote repository on github/re-git. The branch remains in your local checkout, so you can continue working on the branch even after it has been merged. Whenever you push the branch again, it will then exist in the remote repo as well. |
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 created an issue about the maximum compressibility issue (see #332) so we can address it in the future. I'll approve the code as-is
Thank you guys! @jhp-lanl , that was exactly how I did it last time but I just did not want to do it again since I will go on with PowerMG immediately. |
PR Summary
Included code and documentation for a Mie-Gruneisen EOS based on a linear Us-up relation.
It is a full EOS with consistent temperature.
PR Checklist
make format
command after configuring withcmake
.If preparing for a new release, in addition please check the following: