WARPXM v1.10.0
Loading...
Searching...
No Matches
interspecies_collisions.h
Go to the documentation of this file.
1#pragma once
2
3// wxm includes
5#include "app_setup_helper.h"
6
7// STL includes
8#include <memory>
9
10namespace wxm
11{
12namespace apps
13{
14namespace five_moment
15{
16
18{
19public:
21
22 void setup(const WxCryptSet& wxc) override;
23
24 const std::vector<int>& getInputVariableIndexes(int flag) const override
25 {
26 return _fluid_a;
27 }
28
29 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
30 {
31 return _fluid_b;
32 }
33
34 const std::vector<int>& getOutputVariableIndexes(int flag) const override
35 {
36 return _fluid_a;
37 }
38
39 // redefinition of source
40 real source(const real* q,
41 const real* aux,
42 const elementGeometry_t* pEG,
43 real* source) const override;
44
45protected:
47 std::unique_ptr<AppSetupHelper> _setup_helper;
48
60
62
64
65 std::vector<int> _fluid_a;
66 std::vector<int> _fluid_b;
67
68private:
69 InterspeciesCollisions& operator=(const InterspeciesCollisions& var) = delete;
71};
72} // namespace five_moment
73} // namespace apps
74} // namespace wxm
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
Definition: interspecies_collisions.h:18
const std::vector< int > & getInputVariableIndexes(int flag) const override
Definition: interspecies_collisions.h:24
real source(const real *q, const real *aux, const elementGeometry_t *pEG, real *source) const override
real _Z_b
Definition: interspecies_collisions.h:56
real _min_density
Minimum normalized mass density used in calculations.
Definition: interspecies_collisions.h:49
real _collision_coefficient
Definition: interspecies_collisions.h:63
real _gas_gamma_b
Definition: interspecies_collisions.h:54
void setup(const WxCryptSet &wxc) override
real _min_nu_ab
Definition: interspecies_collisions.h:61
real _Z_a
Definition: interspecies_collisions.h:55
real _A_a
Definition: interspecies_collisions.h:57
real _min_pressure
Minimum normalized pressure used in calculations.
Definition: interspecies_collisions.h:50
real _gas_gamma_a
Definition: interspecies_collisions.h:53
real _A_b
Definition: interspecies_collisions.h:58
real _coulomb_log
Definition: interspecies_collisions.h:59
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Definition: interspecies_collisions.h:29
std::vector< int > _fluid_a
Definition: interspecies_collisions.h:65
std::vector< int > _fluid_b
Definition: interspecies_collisions.h:66
real _nu_p_norm
Definition: interspecies_collisions.h:52
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Definition: interspecies_collisions.h:34
std::unique_ptr< AppSetupHelper > _setup_helper
Helper object that automates common setup routines.
Definition: interspecies_collisions.h:47
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