11 #include <dpsim-models/Base/Base_Ph1_Capacitor.h>
12 #include <dpsim-models/MNASimPowerComp.h>
13 #include <dpsim-models/Solver/MNAInterface.h>
14 #include <dpsim-models/Solver/PFSolverInterfaceBranch.h>
51 Logger::Level logLevel = Logger::Level::off);
53 Capacitor(String name, Logger::Level logLevel = Logger::Level::off)
86 AttributeBase::List &attributeDependencies,
87 AttributeBase::List &modifiedAttributes,
String uid()
Returns unique id.
Base class for all MNA components that are transmitting power.
Common base class of all Component templates.
Complex mImpedance
Impedance [Ohm].
void mnaCompAddPostStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes, Attribute< Matrix >::Ptr &leftVector) override
Add MNA post step dependencies.
void mnaCompApplySystemMatrixStamp(SparseMatrixRow &systemMatrix) override
Stamps system matrix.
void mnaCompUpdateVoltage(const Matrix &leftVector) override
Update interface voltage from MNA system result.
void setBaseVoltage(Real baseVoltage)
Set base voltage.
Real mBaseApparentPower
base apparent power[VA]
void mnaCompUpdateCurrent(const Matrix &leftVector) override
Update interface current from MNA system result.
SimPowerComp< Complex >::Ptr clone(String name) override
Returns a modified copy of the component with the given suffix added to the name and without.
Capacitor(String uid, String name, Logger::Level logLevel=Logger::Level::off)
Defines UID, name and logging level.
void calculatePerUnitParameters(Real baseApparentPower)
Initializes component from power flow data.
Complex mSusceptance
Susceptance [S].
Complex mAdmittance
Admittance [S].
Complex mImpedancePerUnit
Impedance [pu].
Real mBaseAdmittance
base admittance [S]
Capacitor(String name, Logger::Level logLevel=Logger::Level::off)
Defines name, component parameters and logging level.
void initializeFromNodesAndTerminals(Real frequency) override
Initializes component from power flow data.
void mnaCompPostStep(Real time, Int timeStepCount, Attribute< Matrix >::Ptr &leftVector) override
MNA post step operations.
Complex mAdmittancePerUnit
Admittance [pu].
Real mBaseImpedance
base impedance [ohm]
void mnaCompInitialize(Real omega, Real timeStep, Attribute< Matrix >::Ptr leftVector) override
Initializes internal variables of the component.
Real mBaseVoltage
base voltage [V]
void pfApplyAdmittanceMatrixStamp(SparseMatrixCompRow &Y) override
Stamps admittance matrix.
Real mBaseCurrent
base current [A]
Base class for all components that are transmitting power.