Skip to content

Commit

Permalink
Document more quantities in polytropic EOS
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsdeppe committed Nov 26, 2024
1 parent 3e37f0d commit a76cf6d
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,15 @@ namespace EquationsOfState {
* polytropic exponent is related to the polytropic index \f$N_p\f$ by
* \f$N_p=1/(\Gamma-1)\f$.
*
* \f{align}
* \epsilon&=\frac{K}{\Gamma-1}\rho^{\Gamma-1} \\
* We also have
*
* \f{align}{
* \epsilon&=\frac{K\rho^{\Gamma-1}}{\Gamma-1}\\
* h&=1+\epsilon+\frac{p}{\rho}=1+\frac{K\Gamma}{\Gamma-1}\rho^{\Gamma-1} \\
* T&=0 \\
* c_s^2&=\frac{\Gamma p}{\rho h}
* =\frac{\Gamma(\Gamma-1)p}{\rho(\Gamma-1)+\Gamma p}
* =\left(\frac{1}{K\Gamma\rho^{\Gamma-1}}+\frac{1}{\Gamma-1}\right)^{-1}
* =\frac{\Gamma(\Gamma-1)p}{\rho(\Gamma-1)+\Gamma p}
* =\left(\frac{1}{\Gamma K\rho^{\Gamma-1}}+\frac{1}{\Gamma-1}\right)^{-1}
* \f}
*/
template <bool IsRelativistic>
Expand Down

0 comments on commit a76cf6d

Please sign in to comment.