|
DPsim
|
Public Types | |
| using | Ptr = std::shared_ptr<SystemTopology> |
Public Member Functions | |
| SystemTopology () | |
| Do not use this constructor. | |
| SystemTopology (Real frequency) | |
| SystemTopology (Real frequency, IdentifiedObject::List components) | |
| SystemTopology (Real frequency, TopologicalNode::List nodes, IdentifiedObject::List components) | |
| Standard constructor for single frequency simulations. | |
| SystemTopology (Real frequency, Matrix frequencies, TopologicalNode::List nodes, IdentifiedObject::List components) | |
| Standard constructor for multi frequency simulations. | |
| Matrix | initFrequency (Real frequency) const |
| void | reset () |
| Reset state of components. | |
| void | addNode (TopologicalNode::Ptr topNode) |
| Adds node and initializes frequencies. | |
| void | addNodeAt (TopologicalNode::Ptr topNode, UInt index) |
| Adds node at specified position and initializes frequencies. | |
| void | addNodes (const TopologicalNode::List &topNodes) |
| Add multiple nodes. | |
| void | addComponent (IdentifiedObject::Ptr component) |
| Adds component and initializes frequencies. | |
| template<typename VarType> | |
| void | connectComponentToNodes (typename SimPowerComp< VarType >::Ptr component, typename SimNode< VarType >::List simNodes) |
| Connect component to simNodes. | |
| void | componentsAtNodeList () |
| void | addComponents (const IdentifiedObject::List &components) |
| Add multiple components. | |
| void | initWithPowerflow (const SystemTopology &systemPF, CPS::Domain domain) |
| Initialize nodes and SG power from PowerFlow. | |
| void | addTearComponent (IdentifiedObject::Ptr component) |
| Adds component and initializes frequencies. | |
| void | addTearComponents (const IdentifiedObject::List &components) |
| Add multiple components. | |
| template<typename Type> | |
| std::shared_ptr< Type > | node (UInt index) |
| Returns TopologicalNode by index in node list. | |
| template<typename Type> | |
| std::shared_ptr< Type > | node (std::string_view name) |
| Returns TopologicalNode by name. | |
| template<typename Type> | |
| std::shared_ptr< Type > | component (const String &name) |
| Returns Component by name. | |
| std::map< String, String, std::less<> > | listIdObjects () const |
| void | multiply (Int numberCopies) |
| Copy the whole topology the given number of times and add the resulting components and nodes to the topology. | |
| void | removeComponent (const String &name) |
| Remove system component. | |
| template<typename VarType> | |
| int | checkTopologySubnets (std::unordered_map< typename CPS::SimNode< VarType >::Ptr, int > &subnet) |
| template<typename VarType> | |
| void | splitSubnets (std::vector< CPS::SystemTopology > &splitSystems) |
| template<typename VarType> | |
| void | splitSubnets (std::vector< SystemTopology > &splitSystems) |
| template<typename VarType> | |
| int | checkTopologySubnets (std::unordered_map< typename SimNode< VarType >::Ptr, int > &subnet) |
Public Attributes | |
| Matrix | mFrequencies |
| List of considered network frequencies. | |
| TopologicalNode::List | mNodes |
| List of network nodes. | |
| IdentifiedObject::List | mComponents |
| List of network components. | |
| IdentifiedObject::List | mTearComponents |
| std::map< TopologicalNode::Ptr, TopologicalPowerComp::List > | mComponentsAtNode |
| Map of network components connected to network nodes. | |
| Real | mSystemFrequency |
| System frequency. | |
| Real | mSystemOmega |
| System angular frequency - omega. | |
Definition at line 23 of file SystemTopology.h.
| using CPS::SystemTopology::Ptr = std::shared_ptr<SystemTopology> |
Definition at line 25 of file SystemTopology.h.
|
inline |
Do not use this constructor.
Definition at line 47 of file SystemTopology.h.
|
inline |
Constructor to be used if components and nodes are added one by one
Definition at line 51 of file SystemTopology.h.
|
inline |
This constructor requires a search for all nodes which is not implemented yet!
Definition at line 57 of file SystemTopology.h.
|
inline |
Standard constructor for single frequency simulations.
Definition at line 63 of file SystemTopology.h.
|
inline |
Standard constructor for multi frequency simulations.
Definition at line 72 of file SystemTopology.h.
| void SystemTopology::addComponent | ( | IdentifiedObject::Ptr | component | ) |
Adds component and initializes frequencies.
Definition at line 51 of file SystemTopology.cpp.
| void SystemTopology::addComponents | ( | const IdentifiedObject::List & | components | ) |
Add multiple components.
Definition at line 80 of file SystemTopology.cpp.
| void SystemTopology::addNode | ( | TopologicalNode::Ptr | topNode | ) |
Adds node and initializes frequencies.
Definition at line 25 of file SystemTopology.cpp.
| void SystemTopology::addNodeAt | ( | TopologicalNode::Ptr | topNode, |
| UInt | index ) |
Adds node at specified position and initializes frequencies.
Definition at line 34 of file SystemTopology.cpp.
| void SystemTopology::addNodes | ( | const TopologicalNode::List & | topNodes | ) |
Add multiple nodes.
Definition at line 46 of file SystemTopology.cpp.
| void SystemTopology::addTearComponent | ( | IdentifiedObject::Ptr | component | ) |
Adds component and initializes frequencies.
Definition at line 117 of file SystemTopology.cpp.
| void SystemTopology::addTearComponents | ( | const IdentifiedObject::List & | components | ) |
Add multiple components.
Definition at line 129 of file SystemTopology.cpp.
| int CPS::SystemTopology::checkTopologySubnets | ( | std::unordered_map< typename SimNode< VarType >::Ptr, int > & | subnet | ) |
Definition at line 303 of file SystemTopology.cpp.
|
inline |
Returns Component by name.
Definition at line 130 of file SystemTopology.h.
| void SystemTopology::componentsAtNodeList | ( | ) |
Definition at line 71 of file SystemTopology.cpp.
| template void SystemTopology::connectComponentToNodes< Complex > | ( | typename SimPowerComp< VarType >::Ptr | component, |
| typename SimNode< VarType >::List | simNodes ) |
Connect component to simNodes.
Definition at line 63 of file SystemTopology.cpp.
| Matrix SystemTopology::initFrequency | ( | Real | frequency | ) | const |
Definition at line 19 of file SystemTopology.cpp.
| void SystemTopology::initWithPowerflow | ( | const SystemTopology & | systemPF, |
| CPS::Domain | domain ) |
Initialize nodes and SG power from PowerFlow.
Definition at line 85 of file SystemTopology.cpp.
| std::map< String, String, std::less<> > SystemTopology::listIdObjects | ( | ) | const |
Definition at line 161 of file SystemTopology.cpp.
| void SystemTopology::multiply | ( | Int | numberCopies | ) |
Copy the whole topology the given number of times and add the resulting components and nodes to the topology.
Definition at line 233 of file SystemTopology.cpp.
| template std::shared_ptr< SimNode< Complex > > SystemTopology::node< SimNode< Complex > > | ( | std::string_view | name | ) |
Returns TopologicalNode by name.
Definition at line 148 of file SystemTopology.cpp.
| template std::shared_ptr< SimNode< Complex > > SystemTopology::node< SimNode< Complex > > | ( | UInt | index | ) |
Returns TopologicalNode by index in node list.
Definition at line 136 of file SystemTopology.cpp.
| void SystemTopology::removeComponent | ( | const String & | name | ) |
Remove system component.
| name | name of the component |
Definition at line 246 of file SystemTopology.cpp.
| void SystemTopology::reset | ( | ) |
| void CPS::SystemTopology::splitSubnets | ( | std::vector< SystemTopology > & | splitSystems | ) |
Definition at line 258 of file SystemTopology.cpp.
| IdentifiedObject::List CPS::SystemTopology::mComponents |
List of network components.
Definition at line 32 of file SystemTopology.h.
| std::map<TopologicalNode::Ptr, TopologicalPowerComp::List> CPS::SystemTopology::mComponentsAtNode |
Map of network components connected to network nodes.
Definition at line 37 of file SystemTopology.h.
| Matrix CPS::SystemTopology::mFrequencies |
List of considered network frequencies.
Definition at line 28 of file SystemTopology.h.
| TopologicalNode::List CPS::SystemTopology::mNodes |
List of network nodes.
Definition at line 30 of file SystemTopology.h.
| Real CPS::SystemTopology::mSystemFrequency |
System frequency.
Definition at line 42 of file SystemTopology.h.
| Real CPS::SystemTopology::mSystemOmega |
System angular frequency - omega.
Definition at line 44 of file SystemTopology.h.
| IdentifiedObject::List CPS::SystemTopology::mTearComponents |
List of tearing components could be used by a solver to split the network into subnetworks
Definition at line 35 of file SystemTopology.h.