Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
Loading...
Searching...
No Matches
Inductor.h
Go to the documentation of this file.
1#ifndef INDUCTOR_H
2#define INDUCTOR_H
3
9#include "../Element.h"
10
19class Inductor : public Element {
20public:
28 Inductor(const std::string& symbol, const std::string& location, int pins, const std::vector<double>& inductance);
29
30 // MNA matrix writer
31 void writeMNAmatrix(SymEngine::DenseMatrix& matrix, std::unordered_map<Bus*, int>& bus_indices, int location, std::map<Element*, std::vector<RCP<const Basic>>>&) override;
32
33 void printElementValues() override;
34
35 double getInitialCurrent() const;
36
37private:
38 std::vector<double> L; // inductance (H)
39 double initial_value = 0; // Initial current value for the inductor, not used for now
40};
41
42#endif // INDUCTOR_H
Base class for multi-phase network elements with Y-parameters and MNA stamping hooks.
Definition Element.h:29
Represents an inductor element for circuit/network equations.
Definition Inductor.h:19
void printElementValues() override
Print extended element-specific values (override in derived classes).
Definition Inductor.cpp:84
void writeMNAmatrix(SymEngine::DenseMatrix &matrix, std::unordered_map< Bus *, int > &bus_indices, int location, std::map< Element *, std::vector< RCP< const Basic > > > &) override
Stamp this element into the symbolic MNA matrix (override in derived classes).
Definition Inductor.cpp:39
double getInitialCurrent() const
Definition Inductor.cpp:79