Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
Loading...
Searching...
No Matches
Transmissionline.h
Go to the documentation of this file.
1#ifndef TRANSMISSIONLINE_H
2#define TRANSMISSIONLINE_H
3
9#include "../Element.h"
10
11class Element; // Forward declaration of Element class
12
18class TransmissionLine : public Element {
19public:
27 TransmissionLine(const std::string& symbol, const std::string& location, int pins, const std::vector<double>&);
28
30
31 void computePowerFlow(std::map<std::string, double>& branchData,
32 const std::map<std::string, double>& global) const;
33
34 // void compute_y_parameters(double R, double L, double G, double C, double length);
35private:
36 double R_tl = 0.01; // Resistance per unit length (ohms/m)
37 double L_tl = 2.5e-7; // Inductance per unit length (H/m)
38 double G_tl = 1e-9; // Conductance per unit length (S/m)
39 double C_tl = 1e-11; // Capacitance per unit length (F/m)
40 double length = 1000; // Length of the transmission line (m)
41
42protected:
43 int m_pins = 0;
44};
45
46#endif
47
Base class for multi-phase network elements with Y-parameters and MNA stamping hooks.
Definition Element.h:29
Lumped transmission line with per-unit-length R, L, G, C parameters.
Definition Transmissionline.h:18
~TransmissionLine()
Definition Transmissionline.h:29
void computePowerFlow(std::map< std::string, double > &branchData, const std::map< std::string, double > &global) const
Definition Transmissionline.cpp:54
int m_pins
Definition Transmissionline.h:43