WARPXM v1.10.0
Loading...
Searching...
No Matches
double_module_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{
49{
50public:
56
62
67 void setup(const WxCryptSet& wxc) override;
68
74 const std::vector<int>& getInputVariableIndexes(int flag) const override
75 {
76 return _QI_idcs;
77 }
78
84 const std::vector<int>& getAuxiliaryVariableIndexes(int flag) const override
85 {
86 return _vload_idcs;
87 }
88
94 const std::vector<int>& getOutputVariableIndexes(int flag) const override
95 {
96 return _QI_idcs;
97 }
98
106 void evaluate_function(const real* q,
107 const real* aux,
108 const solverVariables_t* pSV,
109 real* result) const override;
110
111protected:
112 std::vector<int> _QI_idcs;
113 std::vector<int> _vload_idcs;
114 std::vector<real> _R;
115 std::vector<real> _L;
116 std::vector<real> _C;
118 std::vector<real> _firetimes;
119
120private:
123};
124
125} // namespace unique_variable
126} // namespace functions
127} // namespace apps
128} // 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 double module RLC circuit with discharging capacitor, resistance,...
Definition: double_module_rlc_with_load_rhs.h:49
void setup(const WxCryptSet &wxc) override
Setup.
void evaluate_function(const real *q, const real *aux, const solverVariables_t *pSV, real *result) const override
Redefinition of the function evaluator.
const std::vector< int > & getAuxiliaryVariableIndexes(int flag) const override
Grab auxiliary variable indices.
Definition: double_module_rlc_with_load_rhs.h:84
real _L_line
Definition: double_module_rlc_with_load_rhs.h:117
std::vector< real > _firetimes
Definition: double_module_rlc_with_load_rhs.h:118
std::vector< real > _R
Definition: double_module_rlc_with_load_rhs.h:114
const std::vector< int > & getInputVariableIndexes(int flag) const override
Grab input variable indices.
Definition: double_module_rlc_with_load_rhs.h:74
std::vector< int > _QI_idcs
Definition: double_module_rlc_with_load_rhs.h:112
std::vector< real > _C
Definition: double_module_rlc_with_load_rhs.h:116
std::vector< real > _L
Definition: double_module_rlc_with_load_rhs.h:115
const std::vector< int > & getOutputVariableIndexes(int flag) const override
Grab output variable indices.
Definition: double_module_rlc_with_load_rhs.h:94
std::vector< int > _vload_idcs
Definition: double_module_rlc_with_load_rhs.h:113
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