8#include "iequilibrium.hpp"
9#include "paraconfpp.hpp"
10#include "species_info.hpp"
16 host_t<DFieldMemSp> m_mass;
19 host_t<DFieldMemSp> m_density_eq;
22 host_t<DFieldMemSp> m_temperature_eq;
25 host_t<DFieldMemSp> m_mean_velocity_eq;
29 double m_magnetic_field;
41 host_t<DFieldMemSp>
mass,
45 double magnetic_field);
56 IdxRangeSp idx_range_kinsp,
57 PC_tree_t
const& yaml_input_file);
64 DFieldSpVparMu
operator()(DFieldSpVparMu allfequilibrium)
const override;
82 DFieldVparMu
const fMaxwellian,
85 double const temperature,
86 double const mean_velocity,
87 double const magnetic_field);
93 host_t<DConstFieldSp>
mass()
const
95 return get_const_field(m_mass);
104 return get_const_field(m_density_eq);
113 return get_const_field(m_temperature_eq);
122 return get_const_field(m_mean_velocity_eq);
An abstract class for initializing a distribution function in (species,vpar,mu).
Definition iequilibrium.hpp:11
Equilibrium operator as Maxwellian. This initializes all species.
Definition maxwellianequilibrium.hpp:14
DFieldSpVparMu operator()(DFieldSpVparMu allfequilibrium) const override
Initializes allfequilibrium as a Maxwellian.
static void compute_maxwellian(DFieldVparMu const fMaxwellian, double const mass, double const density, double const temperature, double const mean_velocity, double const magnetic_field)
Compute a Maxwellian distribution function.
host_t< DConstFieldSp > mean_velocity_eq() const
A method for accessing the m_mean_velocity_eq member variable of the class.
Definition maxwellianequilibrium.hpp:120
MaxwellianEquilibrium(host_t< DFieldMemSp > mass, host_t< DFieldMemSp > density_eq, host_t< DFieldMemSp > temperature_eq, host_t< DFieldMemSp > mean_velocity_eq, double magnetic_field)
The constructor for the MaxwellianEquilibrium class.
host_t< DConstFieldSp > density_eq() const
A method for accessing the m_density_eq member variable of the class.
Definition maxwellianequilibrium.hpp:102
host_t< DConstFieldSp > temperature_eq() const
A method for accessing the m_temperature_eq member variable of the class.
Definition maxwellianequilibrium.hpp:111
host_t< DConstFieldSp > mass() const
A method for accessing the m_mass member variable of the class.
Definition maxwellianequilibrium.hpp:93
static MaxwellianEquilibrium init_from_input(IdxRangeSp idx_range_kinsp, PC_tree_t const &yaml_input_file)
Read the density, temperature and mean velocity required to initialize the Maxwellian in a YAML input...