DPsim
Loading...
Searching...
No Matches
TopologicalTerminal.h
Go to the documentation of this file.
1/* Copyright 2017-2021 Institute for Automation of Complex Power Systems,
2 * EONERC, RWTH Aachen University
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
7 *********************************************************************************/
8
9#pragma once
10
14
15namespace CPS {
16
55} // namespace CPS
String uid()
Returns unique id.
String type()
Get component type (cross-platform)
std::shared_ptr< TopologicalNode > Ptr
virtual TopologicalNode::Ptr topologicalNodes()=0
Returns reference to TopologicalNode.
std::vector< UInt > matrixNodeIndices()
void setPhaseType(PhaseType type)
MatrixComp power() const
Returns Power as complex matrix, where the size depends on the number of phases.
TopologicalTerminal(String uid, String name, PhaseType phase=PhaseType::Single)
std::shared_ptr< TopologicalTerminal > Ptr
PhaseType mPhaseType
Determines the connection between Component and Node.
MatrixComp mPower
Power through the Terminal.
Complex singlePower()
Returns single complex number for power.
std::string String
Definition Definitions.h:65
double Real
Definition Definitions.h:62
std::complex< Real > Complex
Definition Definitions.h:63
Eigen::Matrix< Complex, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor > MatrixComp
Dense matrix for complex numbers.
Definition Definitions.h:84
unsigned int UInt
Definition Definitions.h:60