Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
Loading...
Searching...
No Matches
Resistor.h
Go to the documentation of this file.
1#ifndef _RESISTOR_H_
2#define _RESISTOR_H_
3
9#include "../Element.h"
10
16class Resistor : public Element {
17public:
25 Resistor(const std::string& symbol, const std::string& location, int pins, const std::vector<double>& R);
26
27 ~Resistor();
28
29 // Override writeMNAmatrix for resistor stamping(nodal admittance)
30 void writeMNAmatrix(SymEngine::DenseMatrix&, std::unordered_map<Bus*, int>&, int, std::map<Element*, std::vector<RCP<const Basic>>>&) override;
31
32
33 // Override to print resistor-specific data
34 void printElementValues() override;
35
36private:
37 std::vector<double> R_values;
38};
39
40#endif // _RESISTOR_H_
Base class for multi-phase network elements with Y-parameters and MNA stamping hooks.
Definition Element.h:29
Models a single- or multi-phase resistive branch.
Definition Resistor.h:16
void printElementValues() override
Print extended element-specific values (override in derived classes).
Definition Resistor.cpp:85
void writeMNAmatrix(SymEngine::DenseMatrix &, std::unordered_map< Bus *, int > &, int, std::map< Element *, std::vector< RCP< const Basic > > > &) override
Stamp this element into the symbolic MNA matrix (override in derived classes).
Definition Resistor.cpp:52
~Resistor()
Definition Resistor.cpp:98