11 #include <dpsim-models/AttributeList.h>
12 #include <dpsim-models/Definitions.h>
32 explicit Transformer(CPS::AttributeList::Ptr attributeList)
34 attributeList->create<Real>(
"nominal_voltage_end1")),
36 attributeList->create<Real>(
"nominal_voltage_end2")),
38 mRatio(attributeList->create<Complex>(
"ratio")),
43 void setParameters(Real nomVoltageEnd1, Real nomVoltageEnd2, Real ratioAbs,
44 Real ratioPhase, Real resistance, Real inductance) {
47 **
mRatio = std::polar<Real>(ratioAbs, ratioPhase);