11 #include <dpsim-models/Base/Base_Ph1_PiLine.h>
12 #include <dpsim-models/CompositePowerComp.h>
13 #include <dpsim-models/SP/SP_Ph1_Capacitor.h>
14 #include <dpsim-models/SP/SP_Ph1_Inductor.h>
15 #include <dpsim-models/SP/SP_Ph1_Resistor.h>
16 #include <dpsim-models/Solver/MNATearInterface.h>
17 #include <dpsim-models/Solver/PFSolverInterfaceBranch.h>
72 MatrixComp mY_element;
80 std::shared_ptr<Capacitor> mSubParallelCapacitor0;
96 PiLine(String
uid, String name, Logger::Level logLevel = Logger::Level::off);
98 PiLine(String name, Logger::Level logLevel = Logger::Level::off)
99 :
PiLine(name, name, logLevel) {}
103 void setParameters(Real resistance, Real inductance, Real capacitance = -1,
104 Real conductance = -1);
135 AttributeBase::List &attributeDependencies,
136 AttributeBase::List &modifiedAttributes,
139 MNAInterface::List mnaTearGroundComponents()
override;
140 void mnaTearInitialize(Real omega, Real timeStep)
override;
141 void mnaTearApplyMatrixStamp(SparseMatrixRow &tearMatrix)
override;
142 void mnaTearApplyVoltageStamp(Matrix &voltageVector)
override;
143 void mnaTearPostStep(Complex voltage, Complex current)
override;
Base class for composite power components.
String uid()
Returns unique id.
Common base class of all Component templates.
PI-line static phasor model.
void setBaseVoltage(Real baseVoltage)
Set base voltage.
Real mBaseCapacitance
base capacitance [F]
void calculatePerUnitParameters(Real baseApparentPower, Real baseOmega)
Calculates component's parameters in specified per-unit system.
std::shared_ptr< Resistor > mSubSeriesResistor
Series Resistor submodel.
const Attribute< Matrix >::Ptr mActivePowerBranch
branch active powerflow [W], coef(0) has data from node 0, coef(1) from node 1.
Real mSeriesIndPerUnit
Inductance of the line in [pu].
const Attribute< Real >::Ptr mReactivePowerInjection
nodal reactive power injection
const Attribute< MatrixComp >::Ptr mCurrent
branch Current flow [A], coef(0) has data from node 0, coef(1) from node 1.
Real mBaseAdmittance
base admittance [S]
Real mBaseInductance
base inductance [H]
Real mParallelCapPerUnit
Capacitance of the line in [pu].
std::shared_ptr< Resistor > mSubParallelResistor1
Parallel resistor submodel at Terminal 1.
const Attribute< Matrix >::Ptr mReactivePowerBranch
branch reactive powerflow [Var], coef(0) has data from node 0, coef(1) from node 1.
void mnaParentAddPostStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes, Attribute< Matrix >::Ptr &leftVector) override
add MNA post-step dependencies
void updateBranchFlow(VectorComp ¤t, VectorComp &powerflow)
updates branch current and power flow, input pu value, update with real value
void mnaParentPostStep(Real time, Int timeStepCount, Attribute< Matrix >::Ptr &leftVector) override
MNA post-step operations.
MatrixComp Y_element()
get admittance matrix
Real mSeriesResPerUnit
resistance in [pu]
std::shared_ptr< Resistor > mSubParallelResistor0
Parallel Resistor submodel at Terminal 0.
void pfApplyAdmittanceMatrixStamp(SparseMatrixCompRow &Y) override
Stamps admittance matrix.
void mnaCompUpdateCurrent(const Matrix &leftVector) override
Updates internal current variable of the component.
std::shared_ptr< Capacitor > mSubParallelCapacitor1
Parallel capacitor submodel at Terminal 1.
PiLine(String uid, String name, Logger::Level logLevel=Logger::Level::off)
Defines UID, name and logging level.
PiLine(String name, Logger::Level logLevel=Logger::Level::off)
Defines name and logging level.
SimPowerComp< Complex >::Ptr clone(String copySuffix) override
DEPRECATED: Delete method.
std::shared_ptr< Inductor > mSubSeriesInductor
Series Inductance submodel.
const Attribute< Real >::Ptr mActivePowerInjection
nodal active power injection
Real mParallelCondPerUnit
Conductance of the line in [pu].
Real mBaseApparentPower
base apparent power [VA]
Real mBaseImpedance
base impedance [Ohm]
void initializeFromNodesAndTerminals(Real frequency) override
Initializes component from power flow data.
void mnaCompUpdateVoltage(const Matrix &leftVector) override
Updates internal voltage variable of the component.
Real mBaseOmega
base omega [1/s]
void storeNodalInjection(Complex powerInjection)
stores nodal injection power in this line object
const Attribute< Real >::Ptr mBaseVoltage
base voltage [V]
std::vector< const Matrix * > mRightVectorStamps
Right side vectors of subcomponents.
Base class for all components that are transmitting power.