DPsim
Loading...
Searching...
No Matches
EMT_Ph3_SSN_Capacitor.h
1// SPDX-FileCopyrightText: 2026 Institute for Automation of Complex Power Systems, EONERC, RWTH Aachen University
2// SPDX-License-Identifier: MPL-2.0
3
4#pragma once
5
6#include <dpsim-models/Base/Base_Ph3_Capacitor.h>
7#include <dpsim-models/EMT/EMT_Ph3_TwoTerminalITypeSSNComp.h>
8#include <dpsim-models/MathUtils.h>
9
10namespace CPS {
11namespace EMT {
12namespace Ph3 {
13namespace SSN {
14
15class Capacitor final : public TwoTerminalITypeSSNComp,
17 public SharedFactory<Capacitor> {
18public:
19 using SharedFactory<Capacitor>::make;
20
21 Capacitor(String uid, String name,
22 Logger::Level logLevel = Logger::Level::off);
23 Capacitor(String name, Logger::Level logLevel = Logger::Level::off)
24 : Capacitor(name, name, logLevel) {}
25
26 SimPowerComp<Real>::Ptr clone(String name) override final;
27
28 void setParameters(Matrix capacitance);
29
30protected:
31 MatrixComp buildInitialInputFromNodes(Real frequency) override final;
32};
33
34} // namespace SSN
35} // namespace Ph3
36} // namespace EMT
37} // namespace CPS
SimPowerComp< Real >::Ptr clone(String name) override final
Returns a modified copy of the component with the given suffix added to the name and without.
String uid()
Returns unique id.