9 #include <dpsim-models/TopologicalTerminal.h>
13 TopologicalTerminal::TopologicalTerminal(String uid, String name,
19 MatrixComp TopologicalTerminal::power()
const {
return mPower; }
21 void TopologicalTerminal::setPower(Complex power) {
mPower(0, 0) =
power; }
23 void TopologicalTerminal::setPower(MatrixComp power) {
mPower =
power; }
25 void TopologicalTerminal::setPhaseType(PhaseType type) {
28 mPower = MatrixComp::Zero(3, 1);
30 mPower = MatrixComp::Zero(1, 1);
33 Real TopologicalTerminal::singleActivePower() {
return singlePower().real(); }
35 Real TopologicalTerminal::singleReactivePower() {
return singlePower().imag(); }
37 Complex TopologicalTerminal::initialSingleVoltage() {
41 UInt TopologicalTerminal::matrixNodeIndex() {
45 std::vector<UInt> TopologicalTerminal::matrixNodeIndices() {
58 MatrixComp TopologicalTerminal::initialVoltage() {
String type()
Get component type (cross-platform)
virtual TopologicalNode::Ptr topologicalNodes()=0
Returns reference to TopologicalNode.
MatrixComp power() const
Returns Power as complex matrix, where the size depends on the number of phases.
PhaseType mPhaseType
Determines the connection between Component and Node.
MatrixComp mPower
Power through the Terminal.
Complex singlePower()
Returns single complex number for power.