File sound_speed.hxx

Defines

SOUND_SPEED_H
struct SoundSpeed : public Component
#include <sound_speed.hxx>

Calculate the system sound speed

This uses the sum of all species pressures and mass densities so should run after those have been set.

Public Functions

inline SoundSpeed(std::string name, Options &alloptions, Solver*)
virtual void transform(Options &state) override

This sets in the state

  • sound_speed The collective sound speed, based on total pressure and total mass density

  • fastest_wave The highest species sound speed at each point in the domain

Optional inputs:

  • species

    • … // Iterates over all species

      • density

      • AA // Atomic mass

      • pressure

Private Members

bool electron_dynamics

Include electron sound speed?

bool alfven_wave

Include Alfven wave speed?

BoutReal beta_norm = {0.0}

Normalisation factor for Alfven speed.

BoutReal temperature_floor

Minimum temperature when calculating speed.