WARPXM v1.10.0
Loading...
Searching...
No Matches
wmunstructuredequationset.h
Go to the documentation of this file.
1
2#ifndef WMUNSTRUCTUREDEQUATIONSET_H_
3#define WMUNSTRUCTUREDEQUATIONSET_H_
4
5// STL includes
6#include <iostream>
7#include <map>
8#include <vector>
9
10// WarpM Includes
11//#include "hyperapps/unstructuredapps/wmunstructuredapp.h"
12
13class WmKernelVariable;
15
16typedef std::vector<WmUnstructuredApp*> unstructuredAppList_t;
17
19{
20public:
22
24
26 const std::string& indentation,
27 const WmKernelVariable* var,
28 int startIndex = 0,
29 const std::string& allocationName = "pPVS->rA") const;
31 const std::string& indentation,
32 const WmKernelVariable* var,
33 int startIndex = 0,
34 const std::string& allocationName = "pPVS->rA") const;
36 const std::string& indentation,
37 const WmKernelVariable* var,
38 int startIndex = 0,
39 const std::string& allocationName = "pPVS->rA") const;
41 const std::string& indentation,
42 const WmKernelVariable* var,
43 int startIndex = 0,
44 const std::string& allocationName = "pPVS->rA") const;
45
46 virtual const WmKernelVariable*
47 getInsideFluxVariable(const WmKernelVariable* var) const = 0;
48 virtual const WmKernelVariable*
49 getOutsideFluxVariable(const WmKernelVariable* var) const = 0;
50 virtual const WmKernelVariable*
51 getSourceVariable(const WmKernelVariable* var) const = 0;
52 virtual const WmKernelVariable*
53 getExternalVariable(const WmKernelVariable* var) const = 0;
54 virtual const WmKernelVariable* getRHS() const = 0;
55
56 virtual void setEquationSetIndex(int equationSetIndex)
57 {
58 _equationSetIndex = equationSetIndex;
59 }
60 virtual int getEquationSetIndex() const
61 {
62 return _equationSetIndex;
63 }
64
65 std::string getAppID(const WmUnstructuredApp* pApp) const;
66
67protected:
69
70 // Apps attached to equation set
72
73private:
74};
75
76#endif // WMUNSTRUCTUREDEQUATIONSET_H_
Definition: wmunstructuredapp.h:31
Definition: wmunstructuredequationset.h:19
std::string readExternalVariablesIntoAllocation(const std::string &indentation, const WmKernelVariable *var, int startIndex=0, const std::string &allocationName="pPVS->rA") const
virtual const WmKernelVariable * getOutsideFluxVariable(const WmKernelVariable *var) const =0
unstructuredAppList_t _apps
Definition: wmunstructuredequationset.h:71
virtual const WmKernelVariable * getRHS() const =0
virtual void setEquationSetIndex(int equationSetIndex)
Definition: wmunstructuredequationset.h:56
std::string getAppID(const WmUnstructuredApp *pApp) const
std::string readSourceVariablesIntoAllocation(const std::string &indentation, const WmKernelVariable *var, int startIndex=0, const std::string &allocationName="pPVS->rA") const
virtual int getEquationSetIndex() const
Definition: wmunstructuredequationset.h:60
virtual const WmKernelVariable * getInsideFluxVariable(const WmKernelVariable *var) const =0
virtual const WmKernelVariable * getExternalVariable(const WmKernelVariable *var) const =0
std::string readInsideFluxVariablesIntoAllocation(const std::string &indentation, const WmKernelVariable *var, int startIndex=0, const std::string &allocationName="pPVS->rA") const
int _equationSetIndex
Definition: wmunstructuredequationset.h:68
virtual ~WmUnstructuredEquationSet()
virtual const WmKernelVariable * getSourceVariable(const WmKernelVariable *var) const =0
std::string readOutsideFluxVariablesIntoAllocation(const std::string &indentation, const WmKernelVariable *var, int startIndex=0, const std::string &allocationName="pPVS->rA") const
std::vector< WmUnstructuredApp * > unstructuredAppList_t
Definition: wmunstructuredequationset.h:16