11 #include <dpsim-models/DP/DP_Ph1_RXLoad.h>
12 #include <dpsim-models/DP/DP_Ph1_Switch.h>
34 Logger::Level logLevel = Logger::Level::off);
36 RXLoadSwitch(String name, Logger::Level logLevel = Logger::Level::off);
42 void setParameters(Real activePower, Real reactivePower, Real nomVolt,
43 Real openResistance, Real closedResistance,
59 AttributeBase::List &prevStepDependencies,
60 AttributeBase::List &attributeDependencies,
61 AttributeBase::List &modifiedAttributes)
override;
65 AttributeBase::List &attributeDependencies,
66 AttributeBase::List &modifiedAttributes,
74 SparseMatrixRow &systemMatrix,
75 Int freqIdx)
override;
Base class for composite power components.
Constant impedance load model consisting of RLC elements.
void updateSwitchState(Real time)
built-in logic for protection switch
void setParameters(Real activePower, Real reactivePower, Real nomVolt, Real openResistance, Real closedResistance, Bool closed=false)
Sets model specific parameters.
Real mSwitchTimeOffset
internal switch is only opened after this time offset
void mnaCompApplySwitchSystemMatrixStamp(Bool closed, SparseMatrixRow &systemMatrix, Int freqIdx) override
Stamps system matrix considering the defined switch position.
void setSwitchParameters(Real openResistance, Real closedResistance, Bool closed=false)
Sets only switch parameters so that load parameters could be calculated from powerflow.
RXLoadSwitch(String uid, String name, Logger::Level logLevel=Logger::Level::off)
Defines UID, name and logging level.
std::vector< const Matrix * > mRightVectorStamps
Right side vectors of subcomponents.
void mnaParentAddPreStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes) override
Add MNA pre step dependencies.
void mnaParentAddPostStepDependencies(AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes, Attribute< Matrix >::Ptr &leftVector) override
Add MNA post step dependencies.
Bool mnaIsClosed() override
Check if switch is closed.
void mnaParentPreStep(Real time, Int timeStepCount) override
MNA pre step operations.
void mnaParentPostStep(Real time, Int timeStepCount, Attribute< Matrix >::Ptr &leftVector) override
MNA post step operations.
std::shared_ptr< DP::Ph1::RXLoad > mSubRXLoad
Internal RXLoad.
void initializeFromNodesAndTerminals(Real frequency) override
Initializes component from power flow data.
std::shared_ptr< DP::Ph1::Switch > mSubSwitch
Internal protection switch.
String uid()
Returns unique id.
MNA interface to be used by switching devices.