|
Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
|
Namespace for functions required by functions within the mhd::utils namespace. Everything in this name space should be regarded as private but is made accesible for testing. More...
Functions | |
| __host__ __device__ Real | _magnetosonicSpeed (Real const &density, Real const &gasPressure, Real const &magneticX, Real const &magneticY, Real const &magneticZ, Real const &gamma, Real const &waveChoice) |
| Compute the fast or slow magnetosonic wave speeds. | |
Namespace for functions required by functions within the mhd::utils namespace. Everything in this name space should be regarded as private but is made accesible for testing.
|
inline |
Compute the fast or slow magnetosonic wave speeds.
| density | The density |
| gasPressure | The gas pressure |
| magneticX | Magnetic field in the x-direction |
| magneticY | Magnetic field in the y-direction |
| magneticZ | Magnetic field in the z-direction |
| gamma | The adiabatic index |
| waveChoice | Which speed to compute. If +1 then compute the speed of the fast magnetosonic wave, if -1 then the speed of the slow magnetosonic wave |