DPsim
|
Classes | |
class | MnaPostStepHarm |
Public Types | |
typedef VarType | Type |
typedef std::shared_ptr< SimNode< VarType > > | Ptr |
typedef std::vector< Ptr > | List |
![]() | |
typedef std::shared_ptr< TopologicalNode > | Ptr |
typedef std::vector< Ptr > | List |
![]() | |
typedef std::shared_ptr< IdentifiedObject > | Ptr |
typedef std::vector< Ptr > | List |
Public Member Functions | |
SimNode (String uid, String name, std::vector< UInt > matrixNodeIndex, PhaseType phaseType, const std::vector< Complex > &initialVoltage) | |
This very general constructor is used by other constructors. | |
SimNode (PhaseType phaseType=PhaseType::Single) | |
Create ground node if no parameters are given. | |
SimNode (String name, PhaseType phaseType=PhaseType::Single, const std::vector< Complex > &initialVoltage={0, 0, 0}) | |
SimNode (String uid, String name, UInt matrixNodeIndex, PhaseType phaseType=PhaseType::Single, const std::vector< Complex > &initialVoltage={0, 0, 0}) | |
SimNode (UInt matrixNodeIndex, PhaseType phaseType=PhaseType::Single) | |
void | initialize () |
Initialize mVoltage according to mInitialVoltage. | |
void | initialize (Matrix frequencies) |
Initialize state matrices with size according to phase type and frequency number. | |
UInt | matrixNodeIndex (PhaseType phaseType=PhaseType::Single) override |
Returns matrix index for specified phase. | |
std::vector< UInt > | matrixNodeIndices () override |
Returns all matrix indices. | |
VarType | singleVoltage (PhaseType phaseType=PhaseType::Single) |
MatrixVar< VarType > | voltage () |
void | setMatrixNodeIndex (UInt phase, UInt matrixNodeIndex) override |
void | setVoltage (VarType newVoltage) |
void | setPower (VarType newPower) |
void | mnaUpdateVoltage (const Matrix &leftVector) |
void | mnaInitializeHarm (std::vector< Attribute< Matrix >::Ptr > leftVector) |
void | mnaUpdateVoltageHarm (const Matrix &leftVector, Int freqIdx) |
const Task::List & | mnaTasks () |
Return list of MNA tasks. | |
void | mnaUpdateVoltage (const Matrix &leftVector) |
void | mnaUpdateVoltage (const Matrix &leftVector) |
void | mnaInitializeHarm (std::vector< Attribute< Matrix >::Ptr > leftVector) |
void | setVoltage (Complex newVoltage) |
void | setPower (Complex newPower) |
![]() | |
TopologicalNode (String uid, String name, PhaseType phaseType, const std::vector< Complex > &initialVoltage) | |
This very general constructor is used by other constructors. | |
Bool | isGround () const |
MatrixComp | initialVoltage () const |
void | setInitialVoltage (MatrixComp voltage) const |
void | setInitialVoltage (Complex voltage) const |
void | setInitialVoltage (Complex voltage, Int phaseIndex) const |
Complex | initialSingleVoltage (PhaseType phaseType=PhaseType::Single) |
PhaseType | phaseType () const |
![]() | |
IdentifiedObject (const String &uid, const String &name) | |
IdentifiedObject (const String &name) | |
AttributeBase::Ptr | attribute (const String &name) const |
Return pointer to an attribute. | |
template<typename T> | |
Attribute< T >::Ptr | attributeTyped (const String &name) const |
Return pointer to an attribute. | |
const AttributeBase::Map & | attributes () const |
String | name () |
String | uid () |
Returns unique id. | |
String | type () |
Get component type (cross-platform) | |
virtual String | description () |
Public Attributes | |
const Attribute< MatrixVar< VarType > >::Ptr | mVoltage |
const Attribute< MatrixVar< VarType > >::Ptr | mApparentPower |
Power injected at node. | |
![]() | |
const Attribute< MatrixComp >::Ptr | mInitialVoltage |
![]() | |
const Attribute< String >::Ptr | mName |
Human readable name. | |
const Attribute< String >::Ptr | mUID |
Unique identifier. | |
Static Public Attributes | |
static Ptr | GND |
Protected Attributes | |
std::vector< UInt > | mMatrixNodeIndex = {0} |
Matrix | mFrequencies |
List of considered network harmonics. | |
UInt | mNumFreqs = 0 |
Number of harmonics. | |
Task::List | mMnaTasks |
![]() | |
PhaseType | mPhaseType = PhaseType::Single |
Bool | mIsGround = false |
![]() | |
AttributeList::Ptr | mAttributes = AttributeList::make() |
Attribute List. | |
Additional Inherited Members | |
![]() | |
static std::shared_ptr< SimNode< VarType > > | make (Args &&...args) |
typedef std::vector<Ptr> CPS::SimNode< VarType >::List |
typedef std::shared_ptr<SimNode<VarType> > CPS::SimNode< VarType >::Ptr |
typedef VarType CPS::SimNode< VarType >::Type |
SimNode::SimNode | ( | String | uid, |
String | name, | ||
std::vector< UInt > | matrixNodeIndex, | ||
PhaseType | phaseType, | ||
const std::vector< Complex > & | initialVoltage ) |
This very general constructor is used by other constructors.
Definition at line 14 of file SimNode.cpp.
SimNode::SimNode | ( | PhaseType | phaseType = PhaseType::Single | ) |
Create ground node if no parameters are given.
Definition at line 34 of file SimNode.cpp.
|
inline |
|
inline |
|
inline |
void SimNode::initialize | ( | Matrix | frequencies | ) |
Initialize state matrices with size according to phase type and frequency number.
Definition at line 57 of file SimNode.cpp.
|
overridevirtual |
Returns matrix index for specified phase.
Implements CPS::TopologicalNode.
Definition at line 75 of file SimNode.cpp.
|
overridevirtual |
Returns all matrix indices.
Implements CPS::TopologicalNode.
Definition at line 91 of file SimNode.cpp.
const Task::List & SimNode::mnaTasks | ( | ) |
Return list of MNA tasks.
Definition at line 111 of file SimNode.cpp.
|
overridevirtual |
Implements CPS::TopologicalNode.
Definition at line 107 of file SimNode.cpp.
|
inline |
|
inline |
VarType SimNode::singleVoltage | ( | PhaseType | phaseType = PhaseType::Single | ) |
Definition at line 65 of file SimNode.cpp.
MatrixVar< VarType > SimNode::voltage | ( | ) |
Definition at line 102 of file SimNode.cpp.
|
static |
const Attribute<MatrixVar<VarType>>::Ptr CPS::SimNode< VarType >::mApparentPower |
|
protected |
|
protected |
|
protected |
|
protected |
const Attribute<MatrixVar<VarType>>::Ptr CPS::SimNode< VarType >::mVoltage |