27 Load(
const std::string& symbol,
const std::string& location,
int pins, std::vector<double> values);
35 if (phase >= 0 && phase < R.size()) {
38 throw std::out_of_range(
"Invalid phase index");
42 if (phase >= 0 && phase < L.size()) {
45 throw std::out_of_range(
"Invalid phase index");
49 if (phase >= 0 && phase < C.size()) {
52 throw std::out_of_range(
"Invalid phase index");
57 std::map<std::string, double>& globalParams)
const override;
61 std::vector<double> R;
62 std::vector<double> L;
63 std::vector<double> C;
Base class for load elements connected to network buses.
Common base for load models with power-flow support.
Definition Load_base.h:16
Load with resistive, inductive, and capacitive components in series.
Definition Load.h:18
double getCapacitance(int phase) const
Definition Load.h:48
void computePowerFlow(std::map< std::string, double > &busAC, std::map< std::string, double > &globalParams) const override
Compute branch power-flow quantities (override in derived classes).
Definition Load.cpp:90
double getInductance(int phase) const
Definition Load.h:41
~Load()
Definition Load.h:31
double getResistance(int phase) const
Definition Load.h:34