|
DPsim
|
Interface to be implemented by all models used by the MNA solver. More...
#include <MNAInterface.h>
Public Types | |
| typedef std::shared_ptr< MNAInterface > | Ptr |
| typedef std::vector< Ptr > | List |
Public Member Functions | |
| virtual void | createSubComponents () |
| Constructs and registers MNA subcomponents; called before collectVirtualNodes so virtual nodes exist before matrix sizing. | |
| virtual void | mnaInitialize (Real omega, Real timeStep)=0 |
| Initializes variables of components. | |
| virtual void | mnaInitialize (Real omega, Real timeStep, Attribute< Matrix >::Ptr leftVector)=0 |
| virtual void | mnaApplySystemMatrixStamp (SparseMatrixRow &systemMatrix)=0 |
| Stamps system matrix. | |
| virtual void | mnaApplyRightSideVectorStamp (Matrix &rightVector)=0 |
| Stamps right side (source) vector. | |
| virtual Bool | mnaHasCompactRightSideVectorStamp () const |
| virtual void | mnaAddCompactRightSideVectorStamp (Matrix &) |
| virtual void | mnaWriteProfile (std::ostream &) const |
| Write optional component-internal timing rows into the solver profile. | |
| virtual void | mnaUpdateVoltage (const Matrix &leftVector)=0 |
| Update interface voltage from MNA system result. | |
| virtual void | mnaUpdateCurrent (const Matrix &leftVector)=0 |
| Update interface current from MNA system result. | |
| virtual void | mnaPreStep (Real time, Int timeStepCount)=0 |
| MNA pre step operations. | |
| virtual void | mnaPostStep (Real time, Int timeStepCount, Attribute< Matrix >::Ptr &leftVector)=0 |
| MNA post step operations. | |
| virtual void | mnaAddPreStepDependencies (AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes)=0 |
| Add MNA pre step dependencies. | |
| virtual void | mnaAddPostStepDependencies (AttributeBase::List &prevStepDependencies, AttributeBase::List &attributeDependencies, AttributeBase::List &modifiedAttributes, Attribute< Matrix >::Ptr &leftVector)=0 |
| Add MNA post step dependencies. | |
| virtual void | mnaInitializeHarm (Real omega, Real timeStep, std::vector< Attribute< Matrix >::Ptr > leftVector)=0 |
| Initializes variables of components. | |
| virtual void | mnaApplySystemMatrixStampHarm (SparseMatrixRow &systemMatrix, Int freqIdx)=0 |
| Stamps system matrix considering the frequency index. | |
| virtual void | mnaApplyRightSideVectorStampHarm (Matrix &sourceVector)=0 |
| Stamps right side (source) vector considering the frequency index. | |
| virtual void | mnaApplyRightSideVectorStampHarm (Matrix &sourceVector, Int freqIdx)=0 |
| virtual const Task::List & | mnaTasks () const =0 |
| Return list of MNA tasks. | |
| virtual Attribute< Matrix >::Ptr | getRightVector () const =0 |
| virtual Bool | getRightVectorStampIndices (std::vector< UInt > &indices) |
| Return row indices touched by this component's sparse RHS stamp. | |
Interface to be implemented by all models used by the MNA solver.
Definition at line 21 of file MNAInterface.h.
| typedef std::vector<Ptr> CPS::MNAInterface::List |
Definition at line 24 of file MNAInterface.h.
| typedef std::shared_ptr<MNAInterface> CPS::MNAInterface::Ptr |
Definition at line 23 of file MNAInterface.h.
|
inlinevirtual |
Constructs and registers MNA subcomponents; called before collectVirtualNodes so virtual nodes exist before matrix sizing.
Reimplemented in CPS::DP::Ph1::PiLine, CPS::DP::Ph1::PQLoadCS, CPS::DP::Ph1::RxLine, CPS::DP::Ph1::RXLoad, CPS::DP::Ph1::SVC, CPS::DP::Ph1::SynchronGeneratorIdeal, CPS::DP::Ph1::SynchronGeneratorTrStab, CPS::DP::Ph1::Transformer, CPS::DP::Ph3::PiLine, CPS::EMT::DC::PiLine, CPS::EMT::Ph1::PiLine, CPS::EMT::Ph3::HalfDecouplingLine, CPS::EMT::Ph3::PiLine, CPS::EMT::Ph3::RxLine, CPS::EMT::Ph3::RXLoad, CPS::EMT::Ph3::SynchronGeneratorIdeal, CPS::EMT::Ph3::SynchronGeneratorTrStab, CPS::EMT::Ph3::Transformer, CPS::SP::Ph1::Load, CPS::SP::Ph1::PiLine, CPS::SP::Ph1::RXLine, CPS::SP::Ph1::SolidStateTransformer, CPS::SP::Ph1::SynchronGeneratorTrStab, and CPS::SP::Ph1::Transformer.
Definition at line 28 of file MNAInterface.h.
Implemented in CPS::MNASimPowerComp< VarType >, CPS::MNASimPowerComp< Complex >, and CPS::MNASimPowerComp< Real >.
|
inlinevirtual |
Return row indices touched by this component's sparse RHS stamp.
Reimplemented in CPS::DP::Ph1::MixedVTypeVariableSSNComp, CPS::DP::Ph1::TwoTerminalITypeSSNComp, CPS::DP::Ph1::TwoTerminalVTypeSSNComp, CPS::DP::Ph3::MixedVTypeVariableSSNComp, CPS::DP::Ph3::TwoTerminalITypeSSNComp, CPS::DP::Ph3::TwoTerminalVTypeSSNComp, CPS::EMT::DC::TwoTerminalITypeSSNComp, CPS::EMT::DC::TwoTerminalVTypeSSNComp, CPS::EMT::Ph1::SSN::Full_Serial_RLC, CPS::EMT::Ph1::SSNTypeI2T, CPS::EMT::Ph1::SSNTypeV2T, CPS::EMT::Ph3::FourTerminalVTypeSSNComp, CPS::EMT::Ph3::TwoTerminalITypeSSNComp, CPS::EMT::Ph3::TwoTerminalVTypeSplitSSNComp, CPS::EMT::Ph3::TwoTerminalVTypeSSNComp, and CPS::EMT::Ph3::TwoTerminalVTypeVariableSSNComp.
Definition at line 84 of file MNAInterface.h.
|
inlinevirtual |
Add this component's current RHS contribution to the global vector. Only called when mnaHasCompactRightSideVectorStamp() is true.
Reimplemented in CPS::CompositePowerComp< VarType >, CPS::CompositePowerComp< Complex >, CPS::CompositePowerComp< Real >, CPS::DP::Ph1::AvVoltageSourceInverterDQ, CPS::DP::Ph1::CurrentSource, CPS::DP::Ph3::Capacitor, CPS::DP::Ph3::CurrentSource, CPS::DP::Ph3::Inductor, CPS::DP::Ph3::SynchronGenerator4OrderVBR, CPS::DP::Ph3::VoltageSource, CPS::DP::SSNComp, CPS::EMT::DC::PiLine, CPS::EMT::Ph1::CurrentSource, CPS::EMT::Ph3::NetworkInjection, CPS::EMT::Ph3::PiLine, CPS::EMT::Ph3::PQLoad, CPS::EMT::Ph3::ReducedOrderSynchronGeneratorVBR, CPS::EMT::Ph3::RxLine, CPS::EMT::Ph3::RXLoad, CPS::EMT::Ph3::SynchronGeneratorVBR, CPS::EMT::Ph3::Transformer, and CPS::EMT::SSNComp.
Definition at line 42 of file MNAInterface.h.
|
pure virtual |
Add MNA post step dependencies.
|
pure virtual |
Add MNA pre step dependencies.
Implemented in CPS::MNASimPowerComp< VarType >, CPS::MNASimPowerComp< Complex >, and CPS::MNASimPowerComp< Real >.
|
pure virtual |
Stamps right side (source) vector.
Implemented in CPS::MNASimPowerComp< VarType >, CPS::MNASimPowerComp< Complex >, and CPS::MNASimPowerComp< Real >.
|
pure virtual |
Stamps right side (source) vector considering the frequency index.
Implemented in CPS::MNASimPowerComp< VarType >, CPS::MNASimPowerComp< Complex >, and CPS::MNASimPowerComp< Real >.
|
pure virtual |
Implemented in CPS::MNASimPowerComp< VarType >, CPS::MNASimPowerComp< Complex >, and CPS::MNASimPowerComp< Real >.
|
pure virtual |
Stamps system matrix.
Implemented in CPS::MNASimPowerComp< VarType >, CPS::MNASimPowerComp< Complex >, and CPS::MNASimPowerComp< Real >.
|
pure virtual |
Stamps system matrix considering the frequency index.
Implemented in CPS::MNASimPowerComp< VarType >, CPS::MNASimPowerComp< Complex >, and CPS::MNASimPowerComp< Real >.
|
inlinevirtual |
Return true when the direct MNA solver can accumulate this component's contribution row-wise instead of adding its full-size dense stamp.
Reimplemented in CPS::CompositePowerComp< VarType >, CPS::CompositePowerComp< Complex >, CPS::CompositePowerComp< Real >, CPS::DP::Ph1::CurrentSource, CPS::DP::Ph3::Capacitor, CPS::DP::Ph3::CurrentSource, CPS::DP::Ph3::Inductor, CPS::DP::Ph3::SynchronGenerator4OrderVBR, CPS::DP::Ph3::VoltageSource, CPS::DP::SSNComp, CPS::EMT::DC::PiLine, CPS::EMT::Ph1::CurrentSource, CPS::EMT::Ph3::NetworkInjection, CPS::EMT::Ph3::PiLine, CPS::EMT::Ph3::PQLoad, CPS::EMT::Ph3::ReducedOrderSynchronGeneratorVBR, CPS::EMT::Ph3::RxLine, CPS::EMT::Ph3::RXLoad, CPS::EMT::Ph3::SynchronGeneratorVBR, CPS::EMT::Ph3::Transformer, and CPS::EMT::SSNComp.
Definition at line 39 of file MNAInterface.h.
Initializes variables of components.
Implemented in CPS::MNASimPowerComp< VarType >, CPS::MNASimPowerComp< Complex >, and CPS::MNASimPowerComp< Real >.
|
pure virtual |
|
pure virtual |
Initializes variables of components.
|
pure virtual |
MNA post step operations.
MNA pre step operations.
Implemented in CPS::MNASimPowerComp< VarType >, CPS::MNASimPowerComp< Complex >, and CPS::MNASimPowerComp< Real >.
|
pure virtual |
Return list of MNA tasks.
Implemented in CPS::MNASimPowerComp< VarType >, CPS::MNASimPowerComp< Complex >, and CPS::MNASimPowerComp< Real >.
|
pure virtual |
Update interface current from MNA system result.
Implemented in CPS::MNASimPowerComp< VarType >, CPS::MNASimPowerComp< Complex >, and CPS::MNASimPowerComp< Real >.
|
pure virtual |
Update interface voltage from MNA system result.
Implemented in CPS::MNASimPowerComp< VarType >, CPS::MNASimPowerComp< Complex >, and CPS::MNASimPowerComp< Real >.
|
inlinevirtual |
Write optional component-internal timing rows into the solver profile.
Definition at line 44 of file MNAInterface.h.