11 #include <dpsim-models/Config.h>
12 #include <dpsim-models/Definitions.h>
18 typedef std::shared_ptr<MNASwitchInterface> Ptr;
19 typedef std::vector<Ptr> List;
28 SparseMatrixRow &systemMatrix,
30 this->mnaCompApplySwitchSystemMatrixStamp(closed, systemMatrix, freqIdx);
31 systemMatrix.makeCompressed();
33 virtual void mnaCompApplySwitchSystemMatrixStamp(
34 Bool closed, SparseMatrixRow &systemMatrix, Int freqIdx) {}
MNA interface to be used by switching devices.
virtual void mnaApplySwitchSystemMatrixStamp(Bool closed, SparseMatrixRow &systemMatrix, Int freqIdx) final
Stamps system matrix considering the defined switch position.
virtual Bool mnaIsClosed()=0
Check if switch is closed.