-
Notifications
You must be signed in to change notification settings - Fork 32
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
Calc_dt_[123]D
ignores dual-energy
#416
Comments
Isn't |
Yes, but there are definitely some hypersonic regimes (primarily in cosmological simulations) where it would be more correct to use the internal energy (if the mach number is really high, then you are going to lose a lot of precision in the pressure that you use for this calculation). (I just slightly rephrased what I said in my original comment. It was perhaps a little too strongly worded) |
I don't follow; after the energies have been synchronized, the thermal energy you get from both cases is the same, and it's being chosen based on the eta_2 condition. So then, why would it matter which internal energy one you use for |
Ok I should restate. From a general correctness point of view, I agree that a dual energy condition (eta_1 condition, I think) should probably be applied during |
In a purely mathematical sense, sure that's correct. But, there is a numerical difference. If The second paragraph of section 4.1.1 of Bryan+ 2014, refers to this exact scenario as "a numerically disastrous situation". |
To clarify, the main point I am making here is that using could be throwing away a lot of the precision in the pressure value. If (As I said at the start, I'm not sure whether this actually translates to any real issues in existing simulations) |
Ok, yeah I see your point now. Agree that it's a good idea to do DE check in the |
Yeah, that's a fair point -- it's probably not very important. Although if the gas is relatively cool (namely pressure is on the lower side and density is on the higher side), that could be slightly more problematic. But I suspect that could be a pathological scenario |
I realized yesterday that
Calc_dt_1D
,Calc_dt_2D
, andCalc_dt_3D
all ignore the dual-energy formalism.It would probably be more correct to use the internal energy in the regime where kinetic energy strongly dominates over the total energy. I'm not sure whether actually translates to any issues in existing simulations, but it should be addressed at some point.
The text was updated successfully, but these errors were encountered: