WARPXM v1.10.0
Loading...
Searching...
No Matches
wmphmaxwellfluidsource.h
Go to the documentation of this file.
1#ifndef __wmphmaxwellfluidsource__h__
2#define __wmphmaxwellfluidsource__h__
3
4// STD libraries
5#include <iostream>
6
7// WarpM includes
9
11{
12public:
14
16
17 void setup(const WxCryptSet& wxc);
18
19 // This generates the string for the function call
21 unsigned int callType) const;
22
23 // This generates the source code for the hyperapp
24 std::string generateSource(const WmUnstructuredEquationSet& eqSet) const;
25
26protected:
27 // Protected Variables
29
30 WmKernelVariable* _field;
31 WmKernelVariable* _chargeDensity;
32 WmKernelVariable* _currentDensity;
33
38
39 variableList_t _densities;
40 variableList_t _velocities;
41 variableList_t _momentums;
42 std::vector<real> _masses;
43 std::vector<real> _charges;
44
45private:
48};
49
50#endif // __wmphmaxwellfluidsource__h__
Definition: wmphmaxwellfluidsource.h:11
WmKernelVariable * _currentDensity
Definition: wmphmaxwellfluidsource.h:32
real _chi
Definition: wmphmaxwellfluidsource.h:37
real _ndl
Definition: wmphmaxwellfluidsource.h:36
variableList_t _velocities
Definition: wmphmaxwellfluidsource.h:40
variableList_t _momentums
Definition: wmphmaxwellfluidsource.h:41
int _numFluids
Definition: wmphmaxwellfluidsource.h:28
std::vector< real > _masses
Definition: wmphmaxwellfluidsource.h:42
WmKernelVariable * _field
Definition: wmphmaxwellfluidsource.h:30
variableList_t _densities
Definition: wmphmaxwellfluidsource.h:39
real _eps0
Definition: wmphmaxwellfluidsource.h:34
std::string generateSourceCall(const WmUnstructuredEquationSet &eqSet, unsigned int callType) const
WmKernelVariable * _chargeDensity
Definition: wmphmaxwellfluidsource.h:31
real _nefsl
Definition: wmphmaxwellfluidsource.h:35
std::string generateSource(const WmUnstructuredEquationSet &eqSet) const
void setup(const WxCryptSet &wxc)
std::vector< real > _charges
Definition: wmphmaxwellfluidsource.h:43
Definition: wmunstructuredapp.h:31
Definition: wmunstructuredequationset.h:19
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
#define real
Definition: wmoclunstructuredreconstruction.h:11