DPsim
Loading...
Searching...
No Matches
Base_Ph3_PiLine.h
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
11#include <dpsim-models/AttributeList.h>
12#include <dpsim-models/Definitions.h>
13
14namespace CPS {
15namespace Base {
16namespace Ph3 {
17class PiLine {
18
19public:
21 const Attribute<Matrix>::Ptr mSeriesRes;
23 const Attribute<Matrix>::Ptr mSeriesInd;
25 const Attribute<Matrix>::Ptr mParallelCap;
27 const Attribute<Matrix>::Ptr mParallelCond;
28
29 explicit PiLine(CPS::AttributeList::Ptr attributeList)
30 : mSeriesRes(attributeList->create<Matrix>("R_series")),
31 mSeriesInd(attributeList->create<Matrix>("L_series")),
32 mParallelCap(attributeList->create<Matrix>("C_parallel")),
33 mParallelCond(attributeList->create<Matrix>("G_parallel")){};
34
36 void setParameters(Matrix seriesResistance, Matrix seriesInductance,
37 Matrix parallelCapacitance = Matrix::Zero(3, 3),
38 Matrix parallelConductance = Matrix::Zero(3, 3)) const {
39 **mSeriesRes = seriesResistance;
40 **mSeriesInd = seriesInductance;
41 **mParallelCond = parallelConductance;
42 **mParallelCap = parallelCapacitance;
43 }
44};
45} // namespace Ph3
46} // namespace Base
47} // namespace CPS
const Attribute< Matrix >::Ptr mParallelCond
Conductance in parallel to the line [S].
const Attribute< Matrix >::Ptr mSeriesRes
Resistance along the line [ohms].
const Attribute< Matrix >::Ptr mSeriesInd
Inductance along the line [H].
const Attribute< Matrix >::Ptr mParallelCap
Capacitance in parallel to the line [F].