Open BenWibking opened 1 year ago
Looks like we will need this, because velocities are getting quite large (100 km/s or more) very early on in the PopIII sim
We'll need a way to compute the entropy in Microphysics. I think it currently only computes it for constant-gamma gases.
Is entropy an additive property? Is the total entropy of a mixture of ideal gases equal to the sum of the entropies of the individual constituents?
Is entropy an additive property? Is the total entropy of a mixture of ideal gases equal to the sum of the entropies of the individual constituents?
Thermodynamics textbook says yes!
I consulted Fundamentals of equilibrium and steady-state thermodynamics, p. 97 (https://www.worldcat.org/title/162130919)
It turns out an entropy fallback method has been done for mixtures of ideal gases: https://web.stanford.edu/group/ihmegroup/cgi-bin/MatthiasIhme/wp-content/papercite-data/pdf/ma2017entropy.pdf
From the expressions given in [1][2][3], we can compute a discrete entropy inequality in each cell, and then fallback to first order when it is violated [3].
More work is needed to generalize to a non-gamma-law EOS.
[1] https://ntrs.nasa.gov/api/citations/19900008060/downloads/19900008060.pdf [2] https://doi.org/10.1016/0168-9274(86)90029-2 [3] https://web.stanford.edu/group/ihmegroup/cgi-bin/MatthiasIhme/wp-content/papercite-data/pdf/ma2017entropy.pdf