11 #include "dpsim-models/Solver/PFSolverInterfaceBranch.h"
12 #include <dpsim-models/Base/Base_Ph1_PiLine.h>
13 #include <dpsim-models/CompositePowerComp.h>
14 #include <dpsim-models/SP/SP_Ph1_Inductor.h>
15 #include <dpsim-models/SP/SP_Ph1_Resistor.h>
52 MatrixComp mY_element;
87 RXLine(String
uid, String name, Real baseVoltage, Real resistance,
88 Real inductance, Logger::Level logLevel = Logger::Level::off);
91 RXLine(String
uid, String name, Logger::Level logLevel = Logger::Level::off);
93 RXLine(String name, Logger::Level logLevel = Logger::Level::off)
94 :
RXLine(name, name, logLevel) {}
124 void mnaCompUpdateVoltage(
const Matrix &leftVector)
override;
125 void mnaCompUpdateCurrent(
const Matrix &leftVector)
override;
127 void mnaParentPreStep(Real time, Int timeStepCount)
override;
128 void mnaParentPostStep(Real time, Int timeStepCount,
131 void mnaParentAddPreStepDependencies(
132 AttributeBase::List &prevStepDependencies,
133 AttributeBase::List &attributeDependencies,
134 AttributeBase::List &modifiedAttributes)
override;
136 mnaParentAddPostStepDependencies(AttributeBase::List &prevStepDependencies,
137 AttributeBase::List &attributeDependencies,
138 AttributeBase::List &modifiedAttributes,
Base class for composite power components.
String uid()
Returns unique id.
Common base class of all Component templates.
std::shared_ptr< Resistor > mInitialResistor
Inductor end to ground resistor to facilitate initialization.
void initializeFromNodesAndTerminals(Real frequency) override
Initializes component from power flow data.
const Attribute< Real >::Ptr mInductance
RXLine(String name, Logger::Level logLevel=Logger::Level::off)
Defines name, component parameters and logging level.
Real mBaseApparentPower
base apparent power [VA]
void transformParametersToPerUnitSystem()
Transform component parameters to the specified per-unit system.
Real mParallelCapPerUnit
Capacitance of the line in [pu].
std::shared_ptr< Resistor > mSubResistor
Resistor submodel.
const Attribute< Real >::Ptr mActivePowerInjection
nodal active power injection
SimPowerComp< Complex >::Ptr clone(String name) override
DEPRECATED: Delete method.
Real mSeriesResPerUnit
resistance in [pu]
Real mBaseAdmittance
base admittance [S]
Real mBaseImpedance
base impedance [Ohm]
void setPerUnitSystem(Real baseApparentPower, Real baseOmega)
Specify per-unit system by base voltage, base apparent power and omega (rms value for voltage expecte...
const Attribute< Matrix >::Ptr mActivePowerBranch
branch active powerflow [W], coef(0) has data from node 0, coef(1) from node 1.
void pfApplyAdmittanceMatrixStamp(SparseMatrixCompRow &Y) override
Stamps admittance matrix.
void updateBranchFlow(VectorComp ¤t, VectorComp &powerflow)
updates branch current and power flow, input pu value, update with real value
const Attribute< MatrixComp >::Ptr mCurrent
branch Current flow [A], coef(0) has data from node 0, coef(1) from node 1.
Real mBaseInductance
base inductance [H]
const Attribute< Matrix >::Ptr mReactivePowerBranch
branch reactive powerflow [Var], coef(0) has data from node 0, coef(1) from node 1.
RXLine(String uid, String name, Real baseVoltage, Real resistance, Real inductance, Logger::Level logLevel=Logger::Level::off)
Defines UID, name, base voltage, component parameters and logging level.
const Attribute< Real >::Ptr mReactivePowerInjection
nodal reactive power injection
const Attribute< Real >::Ptr mBaseVoltage
base voltage [V]
Real mSeriesIndPerUnit
Inductance of the line in [pu].
std::shared_ptr< Inductor > mSubInductor
Inductance submodel.
Real mBaseCapacitance
base capacitance [F]
Real mBaseCurrent
base current [V]
Real mBaseOmega
base omega [1/s]
void storeNodalInjection(Complex powerInjection)
stores nodal injection power in this line object
MatrixComp Y_element()
get admittance matrix
Base class for all components that are transmitting power.