DPsim
Loading...
Searching...
No Matches
EMT_DC_Inductor.h
Go to the documentation of this file.
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
7
8namespace CPS {
9namespace EMT {
10namespace DC {
11
13class Inductor final : public TwoTerminalVTypeSSNComp,
14 public SharedFactory<Inductor> {
15public:
17
22
24 Logger::Level logLevel = Logger::Level::off);
25 Inductor(String name, Logger::Level logLevel = Logger::Level::off)
26 : Inductor(name, name, logLevel) {}
27
29 void setParameters(Real inductance, Real initialCurrent = 0.0);
30 void initializeFromNodesAndTerminals(Real frequency) override final;
31};
32
33} // namespace DC
34} // namespace EMT
35} // namespace CPS
AttributePointer< Attribute< T > > Ptr
Definition Attribute.h:250
void initializeFromNodesAndTerminals(Real frequency) override final
Initializes Component variables according to power flow data stored in Nodes.
const Attribute< Real >::Ptr mInitialCurrent
Initial current from terminal 1 to terminal 0 [A].
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.
Inductor(String uid, String name, Logger::Level logLevel=Logger::Level::off)
void setParameters(Real inductance, Real initialCurrent=0.0)
const Attribute< Real >::Ptr mInductance
Inductance [H].
Inductor(String name, Logger::Level logLevel=Logger::Level::off)
TwoTerminalVTypeSSNComp(String uid, String name, Logger::Level logLevel=Logger::Level::off)
String uid()
Returns unique id.
spdlog::level::level_enum Level
Definition Logger.h:33
std::shared_ptr< SimPowerComp< VarType > > Ptr
static std::shared_ptr< Inductor > make(Args &&...args)
Definition PtrFactory.h:19
std::string String
Definition Definitions.h:65
double Real
Definition Definitions.h:62