-
Notifications
You must be signed in to change notification settings - Fork 35
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
Rewrite dedT in gamma_law EOS #1298
Conversation
update eos_cell unit test benchmark
For a constant-gamma EOS, this works. We still need to compute |
If we don't do this, then the call to get dedT from Microphysics in ComputeEintTempDerivative in EOS.hpp will return a NAN, because we don't give it a temperature as an input. |
We could give it the temperature as an input, no? Or is this not possible to give it the temperature for some reason? |
Well, if we wanted to keep the current structure of this function as it is, we don't want to give temperature as an input. My aim is to not have to change the function arguments. |
I don't know what you're referring to. For the function in EOS.hpp, the temperature is already a function argument: https://github.com/quokka-astro/quokka/blob/1b572e70c1ab71d40e8c7f8650d9c90f4fcbe0df/src/EOS.hpp#L133 |
|
You just have to uncomment it. It's currently commented with |
Yes, this is what I wanted to not change. But it's a small change anyway so okay, I will do that and then we don't need this PR. |
Hi @zingale , is it okay if we rewrite
state.dedT
in this way? It is identical to the original expression, but doesn't directly use otherstate
quantities.If we can make this change, it would make it easy to extract
dedT
from Microphysics for Quokka without needing to supply a temperature.