|
|
__host__ __device__ Real | Calc_Pressure_Primitive (Real const &E, Real const &d, Real const &vx, Real const &vy, Real const &vz, Real const &gamma, Real const &magnetic_x=0.0, Real const &magnetic_y=0.0, Real const &magnetic_z=0.0) |
| |
|
__host__ __device__ Real | Calc_Pressure_Conserved (Real const &E, Real const &d, Real const &mx, Real const &my, Real const &mz, Real const &gamma, Real const &magnetic_x=0.0, Real const &magnetic_y=0.0, Real const &magnetic_z=0.0) |
| |
|
__host__ __device__ Real | Calc_Temp (Real const &P, Real const &n) |
| |
| __host__ __device__ Real | Calc_Temp_Conserved (Real const E, Real const d, Real const mx, Real const my, Real const mz, Real const gamma, Real const n, Real const magnetic_x=0.0, Real const magnetic_y=0.0, Real const magnetic_z=0.0) |
| | Compute the temperature from the conserved variables.
|
| |
|
__host__ __device__ Real | Calc_Energy_Primitive (Real const &P, Real const &d, Real const &vx, Real const &vy, Real const &vz, Real const &gamma, Real const &magnetic_x=0.0, Real const &magnetic_y=0.0, Real const &magnetic_z=0.0) |
| |
|
__host__ __device__ Real | Calc_Energy_Conserved (Real const &P, Real const &d, Real const &momentum_x, Real const &momentum_y, Real const &momentum_z, Real const &gamma, Real const &magnetic_x=0.0, Real const &magnetic_y=0.0, Real const &magnetic_z=0.0) |
| |
|
__host__ __device__ Real | Get_Pressure_From_DE (Real const &E, Real const &U_total, Real const &U_advected, Real const &gamma) |
| |
| __host__ __device__ Real | Calc_Kinetic_Energy_From_Velocity (Real const &d, Real const &vx, Real const &vy, Real const &vz) |
| | Compute the kinetic energy from the density and velocities.
|
| |
| __host__ __device__ Real | Calc_Kinetic_Energy_From_Momentum (Real const &d, Real const &mx, Real const &my, Real const &mz) |
| | Compute the kinetic energy from the density and momenta.
|
| |
| __host__ __device__ Real | Calc_Sound_Speed (Real const &E, Real const &d, Real const &mx, Real const &my, Real const &mz, Real const &gamma) |
| | Compute the sound speed in the cell from conserved variables.
|
| |
| __host__ __device__ Real | Calc_Sound_Speed (Real const &P, Real const &d, Real const &gamma) |
| | Compute the sound in the cell from primitive variables.
|
| |
| template<uint dir = 0> |
| __host__ __device__ Conserved | Load_Cell_Conserved (Real const *dev_conserved, size_t const xid, size_t const yid, size_t const zid, size_t const nx, size_t const ny, size_t const n_cells) |
| | Load the conserved variables from a single cell. Note that with MHD this returns cell-centered magnetic fields, not face centered fields.
|
| |
| __host__ __device__ Primitive | Conserved_2_Primitive (Conserved const &conserved_in, Real const gamma) |
| | Convert Conserved cell centered variables to primitive variables.
|
| |
| __host__ __device__ Conserved | Primitive_2_Conserved (Primitive const &primitive_in, Real const gamma) |
| | Convert primitive cell centered variables to conserved variables.
|
| |
| template<uint dir = 0> |
| __host__ __device__ Primitive | Load_Cell_Primitive (Real const *dev_conserved, size_t const xid, size_t const yid, size_t const zid, size_t const nx, size_t const ny, size_t const n_cells, Real const gamma) |
| | Load the primitive variables from a single cell. Note that with MHD this returns cell-centered magnetic fields, not face centered fields.
|
| |
INDEX OF VARIABLES P : pressure vx, vy, vz : x, y, and z velocity d : density E : energy T : temperature mx, my, mz : x, y, and z momentum n : number density