DPsim
Loading...
Searching...
No Matches
CPS::MNASwitchInterface Class Referenceabstract

MNA interface to be used by switching devices. More...

#include <MNASwitchInterface.h>

Inheritance diagram for CPS::MNASwitchInterface:
[legend]

Public Types

typedef std::shared_ptr< MNASwitchInterfacePtr
 
typedef std::vector< PtrList
 

Public Member Functions

virtual ~MNASwitchInterface ()=default
 
virtual Bool supportsPrecomputedSystemMatrices () const
 
virtual Bool mnaIsClosed ()=0
 Check if switch is closed.
 
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)
 

Detailed Description

MNA interface to be used by switching devices.

Definition at line 16 of file MNASwitchInterface.h.

Member Typedef Documentation

◆ List

typedef std::vector<Ptr> CPS::MNASwitchInterface::List

Definition at line 19 of file MNASwitchInterface.h.

◆ Ptr

Definition at line 18 of file MNASwitchInterface.h.

Constructor & Destructor Documentation

◆ ~MNASwitchInterface()

virtual CPS::MNASwitchInterface::~MNASwitchInterface ( )
virtualdefault

Member Function Documentation

◆ mnaApplySwitchSystemMatrixStamp()

virtual void CPS::MNASwitchInterface::mnaApplySwitchSystemMatrixStamp ( Bool closed,
SparseMatrixRow & systemMatrix,
Int freqIdx )
inlinefinalvirtual

Stamps system matrix considering the defined switch position.

Definition at line 35 of file MNASwitchInterface.h.

◆ mnaCompApplySwitchSystemMatrixStamp()

virtual void CPS::MNASwitchInterface::mnaCompApplySwitchSystemMatrixStamp ( Bool closed,
SparseMatrixRow & systemMatrix,
Int freqIdx )
inlinevirtual

◆ mnaIsClosed()

◆ supportsPrecomputedSystemMatrices()

virtual Bool CPS::MNASwitchInterface::supportsPrecomputedSystemMatrices ( ) const
inlinevirtual

Whether all system-matrix states of the switch can be represented by precomputed switch matrices.

Note
This is expected to be true for implementations of MNASwitchInterface. The capability is required because some existing switch components also vary matrix parameters continuously between their discrete switch states.

Reimplemented in CPS::DP::Ph1::varResSwitch, and CPS::SP::Ph1::varResSwitch.

Definition at line 29 of file MNASwitchInterface.h.


The documentation for this class was generated from the following file: