11#include <dpsim-models/Config.h>
18 typedef std::shared_ptr<MNASwitchInterface>
Ptr;
19 typedef std::vector<Ptr>
List;
39 systemMatrix.makeCompressed();
MNA interface to be used by switching devices.
std::shared_ptr< MNASwitchInterface > Ptr
virtual Bool supportsPrecomputedSystemMatrices() const
virtual void mnaApplySwitchSystemMatrixStamp(Bool closed, SparseMatrixRow &systemMatrix, Int freqIdx) final
Stamps system matrix considering the defined switch position.
virtual void mnaCompApplySwitchSystemMatrixStamp(Bool closed, SparseMatrixRow &systemMatrix, Int freqIdx)
virtual Bool mnaIsClosed()=0
Check if switch is closed.
virtual ~MNASwitchInterface()=default
Eigen::SparseMatrix< Real, Eigen::RowMajor > SparseMatrixRow
Sparse matrix for real numbers (row major).