Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
Wavespeeds Struct Reference

Public Member Functions

 Wavespeeds (Real bmag2, Real rhom, Real p11, Real p22, Real p33, const std::array< Real, 3 > &gridSpacing)
Real minVelocity () const
Real cflSpeed (Real v0, Real v1) const
 Low-level helper function.

Private Attributes

Real alfvenSq = 0.0
Real soundSq = 0.0
Real whistler = 0.0

Detailed Description

Definition at line 36 of file ldz_electric_field.cpp.

Constructor & Destructor Documentation

◆ Wavespeeds()

Wavespeeds::Wavespeeds ( Real bmag2,
Real rhom,
Real p11,
Real p22,
Real p33,
const std::array< Real, 3 > & gridSpacing )
inline

Definition at line 58 of file ldz_electric_field.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ cflSpeed()

Real Wavespeeds::cflSpeed ( Real v0,
Real v1 ) const
inline

Low-level helper function.

Computes the correct combination of speeds to determine the CFL limits.

It should be in-plane, but we use the complete wave speeds from calculateWaveSpeed??().

At the moment it computes the geometric mean of both bulk velocity components and takes the maximum of that plus either the magnetosonic or the whistler speed.

See also
calculateWaveSpeedYZ calculateWaveSpeedXY calculateWaveSpeedZX
Parameters
v0Flow in first direction
v1Flow in second direction

Definition at line 81 of file ldz_electric_field.cpp.

Here is the call graph for this function:

◆ minVelocity()

Real Wavespeeds::minVelocity ( ) const
inline

Definition at line 65 of file ldz_electric_field.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ alfvenSq

Real Wavespeeds::alfvenSq = 0.0
private

Definition at line 38 of file ldz_electric_field.cpp.

◆ soundSq

Real Wavespeeds::soundSq = 0.0
private

Definition at line 39 of file ldz_electric_field.cpp.

◆ whistler

Real Wavespeeds::whistler = 0.0
private

Definition at line 40 of file ldz_electric_field.cpp.


The documentation for this struct was generated from the following file: