WARPXM v1.10.0
Loading...
Searching...
No Matches
series_rlc_with_load_rhs.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{
33{
34public:
40
46
51 void setup(const WxCryptSet& wxc) override;
52
58 const std::vector<int>& getInputVariableIndexes(int flag) const override
59 {
60 return _QI_idcs;
61 }
62
68 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
69 {
70 return _vload_idcs;
71 }
72
78 const std::vector<int>& getOutputVariableIndexes(int flag) const override
79 {
80 return _QI_idcs;
81 }
82
90 void evaluate_function(const real* q,
91 const real* aux,
92 const solverVariables_t* pSV,
93 real* result) const override;
94
95protected:
96 std::vector<int> _QI_idcs;
97 std::vector<int> _vload_idcs;
101
102private:
103 SeriesRLCWithLoadRHS& operator=(const SeriesRLCWithLoadRHS& var);
105};
106} // namespace unique_variable
107} // namespace functions
108} // namespace apps
109} // 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 set RHS for RLC circuit with discharging capacitor and a load voltage Kirchoff's Voltage Law...
Definition: series_rlc_with_load_rhs.h:33
const std::vector< int > & getInputVariableIndexes(int flag) const override
Grab input variable indices.
Definition: series_rlc_with_load_rhs.h:58
real _R
Definition: series_rlc_with_load_rhs.h:98
real _C
Definition: series_rlc_with_load_rhs.h:100
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.
std::vector< int > _vload_idcs
Definition: series_rlc_with_load_rhs.h:97
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: series_rlc_with_load_rhs.h:78
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Grab auxiliary variable indices.
Definition: series_rlc_with_load_rhs.h:68
std::vector< int > _QI_idcs
Definition: series_rlc_with_load_rhs.h:96
real _L
Definition: series_rlc_with_load_rhs.h:99
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