11 #include <dpsim-models/Base/Base_Ph1_SVC.h>
12 #include <dpsim-models/DP/DP_Ph1_Capacitor.h>
13 #include <dpsim-models/DP/DP_Ph1_Inductor.h>
14 #include <dpsim-models/DP/DP_Ph1_Switch.h>
15 #include <dpsim-models/Solver/MNAInterface.h>
16 #include <dpsim-models/Solver/MNAVariableCompInterface.h>
37 std::shared_ptr<DP::Ph1::Switch> mSubInductorProtectionSwitch;
40 std::shared_ptr<DP::Ph1::Switch> mSubCapacitorProtectionSwitch;
42 Bool mValueChange =
false;
43 Bool mInductiveMode =
false;
47 Real mSwitchStateChange =
false;
48 Real mSwitchROpen = 1e9;
49 Real mSwitchRClosed = 1e-9;
52 Real mBSetCounter = 0;
64 Bool mDisconnect =
false;
71 SVC(String
uid, String name, Logger::Level logLevel = Logger::Level::off);
73 SVC(String name, Logger::Level logLevel = Logger::Level::off)
74 :
SVC(name, name, logLevel) {}
100 AttributeBase::List &attributeDependencies,
101 AttributeBase::List &modifiedAttributes);
105 AttributeBase::List &attributeDependencies,
106 AttributeBase::List &modifiedAttributes,
111 void setSwitchState();
113 void updateSusceptance();
114 void mechanicalModelUpdateSusceptance(Real time);
116 void checkProtection(Real time);
Static VAR compensator (SVC)
void mnaCompApplySystemMatrixStamp(SparseMatrixRow &systemMatrix)
Stamps system matrix.
void mnaCompUpdateVoltage(const Matrix &leftVector)
Update interface voltage from MNA system results.
std::shared_ptr< DP::Ph1::Capacitor > mSubCapacitor
Internal capacitor.
void mnaCompUpdateCurrent(const Matrix &leftVector)
Update interface current from MNA system results.
void mnaCompAddPostStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes, Attribute< Matrix >::Ptr &leftVector)
add MNA post step dependencies
std::shared_ptr< DP::Ph1::Inductor > mSubInductor
void mnaCompAddPreStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes)
add MNA pre step dependencies
void mnaCompApplyRightSideVectorStamp(Matrix &rightVector)
Stamps right side (source) vector.
void initializeFromNodesAndTerminals(Real frequency)
Initializes states from power flow data.
void mnaCompPreStep(Real time, Int timeStepCount)
MNA pre step operations.
void mnaCompPostStep(Real time, Int timeStepCount, Attribute< Matrix >::Ptr &leftVector)
MNA post step operations.
SVC(String name, Logger::Level logLevel=Logger::Level::off)
Defines name and log level.
SVC(String uid, String name, Logger::Level logLevel=Logger::Level::off)
Defines UID, name and log level.
void mnaCompInitialize(Real omega, Real timeStep, Attribute< Matrix >::Ptr leftVector)
Initializes MNA specific variables.
String uid()
Returns unique id.
Base class for all MNA components that are transmitting power.
MNA interface to be used by elements that require recomputing of the system matrix.