11 #include <dpsim-models/Base/Base_Ph3_Inductor.h>
12 #include <dpsim-models/MNASimPowerComp.h>
13 #include <dpsim-models/Solver/MNATearInterface.h>
37 void initVars(Real omega, Real timeStep);
42 Logger::Level logLevel = Logger::Level::off);
44 Inductor(String name, Logger::Level logLevel = Logger::Level::off)
48 Logger::Level logLevel = Logger::Level::off);
67 void mnaCompPreStep(Real time, Int timeStepCount)
override;
68 void mnaCompPostStep(Real time, Int timeStepCount,
73 AttributeBase::List &prevStepDependencies,
74 AttributeBase::List &attributeDependencies,
75 AttributeBase::List &modifiedAttributes)
override;
79 AttributeBase::List &attributeDependencies,
80 AttributeBase::List &modifiedAttributes,
83 void mnaTearInitialize(Real omega, Real timestep)
override;
84 void mnaTearApplyMatrixStamp(SparseMatrixRow &tearMatrix)
override;
85 void mnaTearApplyVoltageStamp(Matrix &voltageVector)
override;
86 void mnaTearPostStep(Complex voltage, Complex current)
override;
void mnaCompInitialize(Real omega, Real timeStep, Attribute< Matrix >::Ptr leftVector) override
Initializes internal variables of the component.
void mnaCompApplySystemMatrixStamp(SparseMatrixRow &systemMatrix) override
Stamps system matrix.
void initializeFromNodesAndTerminals(Real frequency) override
Initializes component from power flow data.
Complex mPrevCurrFac
Coefficient in front of previous current value.
MatrixComp mEquivCurrent
DC equivalent current source [A].
void mnaCompAddPreStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes) override
Add MNA pre step dependencies.
void mnaCompUpdateVoltage(const Matrix &leftVector) override
Update interface voltage from MNA system result.
Inductor(String name, Logger::Level logLevel=Logger::Level::off)
Defines name, component parameters and logging level.
Inductor(String uid, String name, Logger::Level logLevel=Logger::Level::off)
Defines UID, name, component parameters and logging level.
void mnaCompUpdateCurrent(const Matrix &leftVector) override
Update interface current from MNA system result.
MatrixComp mEquivCond
Equivalent conductance [S].
SimPowerComp< Complex >::Ptr clone(String name) override
Returns a modified copy of the component with the given suffix added to the name and without.
void mnaCompAddPostStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes, Attribute< Matrix >::Ptr &leftVector) override
Add MNA post step dependencies.
void mnaCompApplyRightSideVectorStamp(Matrix &rightVector) override
Stamps right side (source) vector.
Inductor(String name, Real inductance, Logger::Level logLevel=Logger::Level::off)
Defines name, component parameters and logging level.
String uid()
Returns unique id.
Base class for all MNA components that are transmitting power.
Base class for all components that are transmitting power.