9#include <dpsim-models/EMT/EMT_Ph3_SSN_Inductor.h>
14 Logger::Level logLevel)
15 : TwoTerminalVTypeSSNComp(
uid, name, logLevel),
19 auto copy = SharedFactory<Inductor>::make(name,
mLogLevel);
24void EMT::Ph3::SSN::Inductor::setParameters(
const Matrix &inductance) {
25 if (inductance.rows() != 3 || inductance.cols() != 3)
26 throw std::invalid_argument(
"Inductance matrix must have size 3 x 3.");
28 **mInductance = inductance;
30 Matrix inverseInductance = inductance.inverse();
31 Matrix identity3 = Matrix::Identity(3, 3);
37 Matrix aMatrix = Matrix::Zero(3, 3);
38 Matrix bMatrix = inverseInductance;
39 Matrix cMatrix = identity3;
40 Matrix dMatrix = Matrix::Zero(3, 3);
42 SSNComp::setParameters(aMatrix, bMatrix, cMatrix, dMatrix);
const CPS::Attribute< Matrix >::Ptr mInductance
Inductance [H].
Inductor(String uid, String name, Logger::Level logLevel=Logger::Level::off)
Defines UID, name, component parameters and logging level.
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.
AttributeList::Ptr mAttributes
Attribute List.
Logger::Level mLogLevel
Component logger control for internal variables.