Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : namespace grmhd { 7 : namespace ValenciaDivClean { 8 : 9 : /// \brief Schemes for recovering primitive variables from conservative 10 : /// variables. 11 : namespace PrimitiveRecoverySchemes { 12 : 13 : /*! 14 : * \brief Data determined by PrimitiveRecoverySchemes at a single grid point. 15 : * 16 : * `rho_h_w_squared` is \f$\rho h W^2\f$ where \f$\rho\f$ is the rest mass 17 : * density, \f$h\f$ is the specific enthalpy, and \f$W\f$ is the Lorentz factor. 18 : */ 19 1 : struct PrimitiveRecoveryData { 20 0 : double rest_mass_density; 21 0 : double lorentz_factor; 22 0 : double pressure; 23 0 : double specific_internal_energy; 24 0 : double rho_h_w_squared; 25 0 : double electron_fraction; 26 : }; 27 : } // namespace PrimitiveRecoverySchemes 28 : } // namespace ValenciaDivClean 29 : } // namespace grmhd