Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
Loading...
Searching...
No Matches
DC_source.h
Go to the documentation of this file.
1
7#ifndef _DC_SOURCE_H_
8#define _DC_SOURCE_H_
9
10#include "Source_base.h"
11
19class DC_source : public Source_base {
20public:
22 DC_source(const std::string& symbol, const std::string& location, int pins, double V, double R);
23
25 DC_source(const std::string& symbol, const std::string& location, int pins, const vector<double>& V, double R);
26
28 DC_source(const std::string& symbol, const std::string& location, int pins, double V, const vector<double>& Z);
29
31 DC_source(const std::string& symbol, const std::string& location, int pins, const vector<double>& V, const vector<double>& Z);
32
34
36 void writeMNAmatrix(SymEngine::DenseMatrix&, std::unordered_map<Bus*, int>&, int, std::map<Element*, std::vector<RCP<const Basic>>>&) override;
37
38 std::vector<MatrixXcd> simulateInputStep(
39 const std::vector<MatrixXcd>& states, int nKeep) const override;
40
41private:
42};
43
44#endif
Base class for AC and DC voltage sources and generators.
DC-side voltage source for hybrid AC-DC networks.
Definition DC_source.h:19
std::vector< MatrixXcd > simulateInputStep(const std::vector< MatrixXcd > &states, int nKeep) const override
Simulate a step response given input states (override in dynamic elements).
Definition DC_source.cpp:159
~DC_source()
Definition DC_source.h:33
void writeMNAmatrix(SymEngine::DenseMatrix &, std::unordered_map< Bus *, int > &, int, std::map< Element *, std::vector< RCP< const Basic > > > &) override
Stamp the source into the symbolic MNA matrix.
Definition DC_source.cpp:123
Base class for multi-phase network elements with Y-parameters and MNA stamping hooks.
Definition Element.h:29
Common properties and power-flow methods for source elements.
Definition Source_base.h:16
vector< double > V
Definition Source_base.h:35