1#ifndef kinetics2d2v_distribution_kelvin_helmholtz_instability_h
2#define kinetics2d2v_distribution_kelvin_helmholtz_instability_h
65 real* result)
const override;
70 real* q_out)
const override;
73 const std::vector<real>& xvec,
74 const std::vector<real>& a,
75 const std::vector<real>& b,
76 std::map<real, real>& cache)
82 size_t n = xvec.size();
83 if ((a.size() != n) || (b.size() != 2))
86 "wxm::apps::functions::kinetics::Kinetics2d2vKelvinHelmholtzInstability::"
87 "compute_spline_fit() : Vector Size Error!\n");
91 for (
int i = 0; i < n; i++)
93 val += a[i] * std::pow(std::fabs(x - xvec[i]), 3);
95 val += b[0] + b[1] * x;
Base Class for physics applications.
Definition: wmapplication.h:93
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
2D2V Kelvin-Helmholtz Instability Based on calculated kinetic equilibrium
Definition: 2d2v_kh_instability.h:25
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
std::vector< real > _ni_aux_fit_xvec
Definition: 2d2v_kh_instability.h:154
std::vector< real > _ni_aux_fit_bcoeffs
Definition: 2d2v_kh_instability.h:156
void compute_fi(const solverVariables_t *pSV, real *result) const
real _Omega_c_i
Definition: 2d2v_kh_instability.h:145
real _Ex0
Definition: 2d2v_kh_instability.h:137
std::vector< real > _phi_fit_acoeffs
Definition: 2d2v_kh_instability.h:159
std::vector< real > _phi_fit_xvec
Definition: 2d2v_kh_instability.h:158
void compute_fe(const solverVariables_t *pSV, real *result) const
real _b_gradient
Definition: 2d2v_kh_instability.h:139
real _Ze
Definition: 2d2v_kh_instability.h:142
real compute_phi_star_double_prime(const real x) const
Definition: 2d2v_kh_instability.h:109
void bc_q_kinetic(const real *q_in, const real *aux_in, const solverVariables_t *pFV, real *q_out) const override
std::map< real, real > _phi_fit_cache
Definition: 2d2v_kh_instability.h:168
std::map< real, real > _ni_aux_fit_cache
Definition: 2d2v_kh_instability.h:167
std::vector< real > _perturbation_center
Definition: 2d2v_kh_instability.h:150
real _omega_c_tau
Definition: 2d2v_kh_instability.h:148
real _Omega_c_e
Definition: 2d2v_kh_instability.h:146
void setup(const WxCryptSet &wxc) override
Setup.
std::vector< int > _distribution
Definition: 2d2v_kh_instability.h:134
real compute_ge(const real x) const
Definition: 2d2v_kh_instability.h:119
std::vector< real > _ni_aux_fit_acoeffs
Definition: 2d2v_kh_instability.h:155
real _Ai
Definition: 2d2v_kh_instability.h:143
std::vector< real > _Ay_fit_acoeffs
Definition: 2d2v_kh_instability.h:163
real _perturbation_amplitude
Definition: 2d2v_kh_instability.h:152
Kinetics2d2vKelvinHelmholtzInstability()
Constructor.
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: 2d2v_kh_instability.h:50
std::vector< real > _Ay_fit_bcoeffs
Definition: 2d2v_kh_instability.h:164
real _omega_p_tau
Definition: 2d2v_kh_instability.h:147
real _perturbation_wavelength
Definition: 2d2v_kh_instability.h:151
real compute_phi_star(const real x) const
Definition: 2d2v_kh_instability.h:104
std::vector< real > _Ay_fit_xvec
Definition: 2d2v_kh_instability.h:162
std::map< real, real > _Ay_fit_cache
Definition: 2d2v_kh_instability.h:166
std::string _species
Definition: 2d2v_kh_instability.h:136
static real compute_spline_fit(const real x, const std::vector< real > &xvec, const std::vector< real > &a, const std::vector< real > &b, std::map< real, real > &cache)
Definition: 2d2v_kh_instability.h:72
real compute_gi(const real x) const
Definition: 2d2v_kh_instability.h:114
real _Zi
Definition: 2d2v_kh_instability.h:141
~Kinetics2d2vKelvinHelmholtzInstability()
Destructor.
std::vector< real > _phi_fit_bcoeffs
Definition: 2d2v_kh_instability.h:160
real _d_width
Definition: 2d2v_kh_instability.h:138
real _Ae
Definition: 2d2v_kh_instability.h:144
real _temperature_uniform
Definition: 2d2v_kh_instability.h:140
list apps
Definition: shock_tube.py:33
Base namespace for everything not included in the global namespace.
Definition: field_source.h:8
Definition: wmapplication.h:38
#define real
Definition: wmoclunstructuredreconstruction.h:11
wxm::lib::Except WxExcept
Definition: wxexcept.h:120