WARPXM v1.10.0
Loading...
Searching...
No Matches
iload.h
Go to the documentation of this file.
1#pragma once
2
3// WARPXM includes
5
6namespace wxm
7{
8namespace apps
9{
10namespace functions
11{
12namespace unique_variable
13{
21class Iload : public WmApplication
22{
23public:
29
34 ~Iload() override;
35
40 void setup(const WxCryptSet& wxc) override;
41
47 const std::vector<int>& getInputVariableIndexes(int flag) const override
48 {
49 return _dq_idcs;
50 }
51
57 const std::vector<int>& getOutputVariableIndexes(int flag) const override
58 {
59 return _iload_idx;
60 }
61
69 void evaluate_function(const real* q,
70 const real* aux,
71 const solverVariables_t* pSV,
72 real* result) const override;
73
74protected:
75 std::vector<int> _dq_idcs;
76 std::vector<int> _iload_idx;
77
78private:
79 Iload& operator=(const Iload& var);
80 Iload(const Iload& var);
81};
82} // namespace unique_variable
83} // namespace functions
84} // namespace apps
85} // 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
Class to calculate Iload = sum I_modules = - sum Qdot_modules It assumes a currents in number of modu...
Definition: iload.h:22
std::vector< int > _dq_idcs
Definition: iload.h:75
const std::vector< int > & getInputVariableIndexes(int flag) const override
Grab input variable indices.
Definition: iload.h:47
std::vector< int > _iload_idx
Definition: iload.h:76
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: iload.h:57
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
void setup(const WxCryptSet &wxc) override
Setup.
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