Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
Loading...
Searching...
No Matches
Functions
mhd::utils::internal Namespace Reference

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.
 

Detailed Description

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.

Function Documentation

◆ _magnetosonicSpeed()

__host__ __device__ Real mhd::utils::internal::_magnetosonicSpeed ( Real const &  density,
Real const &  gasPressure,
Real const &  magneticX,
Real const &  magneticY,
Real const &  magneticZ,
Real const &  gamma,
Real const &  waveChoice 
)
inline

Compute the fast or slow magnetosonic wave speeds.

Parameters
densityThe density
gasPressureThe gas pressure
magneticXMagnetic field in the x-direction
magneticYMagnetic field in the y-direction
magneticZMagnetic field in the z-direction
gammaThe adiabatic index
waveChoiceWhich speed to compute. If +1 then compute the speed of the fast magnetosonic wave, if -1 then the speed of the slow magnetosonic wave
Returns
Real The speed of the fast or slow magnetosonic wave