2D2V Landau Damping Initial Condition This is a Maxwellian distribution of f in velocity space multiplied by a sinusoidal variation in position space, given by the form: f(x,y,v_x,v_y) = n_0/((2pi)*v_th^2) exp(-(v_x^2 + v_y^2)/(2v_th)^2) * (1 + alpha_x cos(kx) + alpha_y cos(ky))
More...
#include <2d2v_landau_damping.h>
2D2V Landau Damping Initial Condition This is a Maxwellian distribution of f in velocity space multiplied by a sinusoidal variation in position space, given by the form: f(x,y,v_x,v_y) = n_0/((2pi)*v_th^2) exp(-(v_x^2 + v_y^2)/(2v_th)^2) * (1 + alpha_x cos(kx) + alpha_y cos(ky))
|
| LandauDamping2d2v () |
| Constructor.
|
|
| ~LandauDamping2d2v () |
| Destructor.
|
|
void | setup (const WxCryptSet &wxc) override |
| Setup.
|
|
const std::vector< int > & | getOutputVariableIndexes (int flag) const override |
| Grab output variable indices.
|
|
void | evaluate_function (const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override |
| Redefinition of the function evaluator.
|
|
| WmApplication () |
|
virtual | ~WmApplication ()=default |
|
virtual void | setup (const WxCryptSet &wxc) |
|
virtual const std::vector< int > & | getAuxiliaryVariableIndexes (int flag=WMAPPLICATIONFLAG_NONE) const |
|
virtual const std::vector< int > & | getCrossVariableIndexes (int flag=WMAPPLICATIONFLAG_NONE) const |
|
const std::vector< std::string > & | getBoundaryNames () const |
|
bool | isOnBoundary (const std::string &boundaryName) const |
|
bool | has (int flag) const |
|
virtual real | numerical_flux (const real *q_l, const real *q_r, const real *aux_l, const real *aux_r, const solverVariables_t *pFV, real *numericalFlux) const |
|
virtual real | internal_flux (const real *q, const real *aux, const solverVariables_t *pSV, std::vector< std::vector< real > > &internalFlux) const |
|
virtual real | source (const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const |
|
virtual void | bc_q (const real *q_in, const real *aux_in, const real *aux_out, const solverVariables_t *pFV, real *q_out) const |
| Boundary Condition Application which sets the boundary condition on ghost nodes.
|
|
virtual real | bcNumericalFlux (const real *q_l, const real *q_r, const real *aux_l, const real *aux_r, const solverVariables_t *pFV, real *numericalFlux) const |
|
virtual void | conserved_to_primitive (const real *q, const real *aux, real *w) const |
|
virtual void | primitive_to_conserved (const real *w, const real *aux, real *q) const |
|
virtual void | evaluate_function (const real *q, const real *aux, const solverVariables_t *pSV, real *result) const |
|
virtual void | bc_q_kinetic (const real *q_in, const real *aux_in, const solverVariables_t *pFV, real *q_out) const |
|
std::shared_ptr< std::string > | app_name () |
|
virtual const std::vector< int > & | getInputVariableIndexes (int flag=0) const |
|
virtual const std::vector< int > & | getOutputVariableIndexes (int flag=0) const |
|
◆ LandauDamping2d2v()
wxm::apps::functions::kinetics::LandauDamping2d2v::LandauDamping2d2v |
( |
| ) |
|
◆ ~LandauDamping2d2v()
wxm::apps::functions::kinetics::LandauDamping2d2v::~LandauDamping2d2v |
( |
| ) |
|
◆ evaluate_function()
void wxm::apps::functions::kinetics::LandauDamping2d2v::evaluate_function |
( |
const real * |
q, |
|
|
const real * |
aux, |
|
|
const solverVariables_t * |
pSV, |
|
|
real * |
result |
|
) |
| const |
|
overridevirtual |
Redefinition of the function evaluator.
- Parameters
-
const | q - input variable |
const | aux - auxiliary variable |
const | pSV - solver variable structure |
result | - output variable |
Reimplemented from WmApplication.
◆ getOutputVariableIndexes()
const std::vector< int > & wxm::apps::functions::kinetics::LandauDamping2d2v::getOutputVariableIndexes |
( |
int |
flag | ) |
const |
|
inlineoverridevirtual |
Grab output variable indices.
- Parameters
-
int | flag - usually flag is given like flux type but usually not checked |
- Returns
- vector of output variable indices
Reimplemented from wxm::app_base.
◆ setup()
void wxm::apps::functions::kinetics::LandauDamping2d2v::setup |
( |
const WxCryptSet & |
wxc | ) |
|
|
overridevirtual |
◆ _distribution
std::vector<int> wxm::apps::functions::kinetics::LandauDamping2d2v::_distribution |
|
protected |
◆ _mass
real wxm::apps::functions::kinetics::LandauDamping2d2v::_mass |
|
protected |
◆ _n0
real wxm::apps::functions::kinetics::LandauDamping2d2v::_n0 |
|
protected |
◆ _perturbation
std::vector<real> wxm::apps::functions::kinetics::LandauDamping2d2v::_perturbation |
|
protected |
◆ _thermal_velocity
real wxm::apps::functions::kinetics::LandauDamping2d2v::_thermal_velocity |
|
protected |
◆ _velocity
std::vector<real> wxm::apps::functions::kinetics::LandauDamping2d2v::_velocity |
|
protected |
◆ _wave_number
std::vector<real> wxm::apps::functions::kinetics::LandauDamping2d2v::_wave_number |
|
protected |
The documentation for this class was generated from the following file: