modelACACTransformerFull

AC AC transformer with detailed equivalent circuit

Extends from BuildingSystems.Electrical.Icons.RefAngleConversion (Icon that represents if the angle symble should be displayed or not), BuildingSystems.Electrical.Interfaces.PartialConversion (Model representing a generic two port system for conversion).

Information

This is a detailed transformer model that takes into account the winding Joule losses and the leakage reactances on both primary and secondary side. The model also describes the core or iron losses and the losses due to magnetization effects.

The losses are represented by a series of resistances R1, R2, Rm and inductances L1, L2, and Lm.

The model is parameterized using the following parameters

  • VHigh - RMS voltage at primary side,
  • VLow - RMS voltage at secondary side,
  • VABase - apparent nominal power of the transformer,
  • f - frequency,
  • R_1, L_1 - resistance and inductance at primary side (per unit),
  • R_2, L_2 - resistance and inductance at secondary side (per unit), and
  • R_m, L_m - resistance and inductance for magnetization effects (per unit).

Given the nominal conditions, the model computes the values of the nominal impedances at both primary and secondary side. Given these values, the per unit values are transformed into the actual values of the resistances and inductances.

The magnetization losses can be enabled or disabled using the boolean flag magEffects.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.VoltageVHighRMS voltage on side 1 of the transformer (primary side)
Modelica.Units.SI.VoltageVLowRMS voltage on side 2 of the transformer (secondary side)
Modelica.Units.SI.ApparentPowerVABaseNominal power of the transformer
Modelica.Units.SI.FrequencyfNominal frequency
BuildingSystems.Electrical.Types.PerUnitR1Resistance on side 1 of the transformer (pu)
BuildingSystems.Electrical.Types.PerUnitL1Inductance on side 1 of the transformer (pu)
BuildingSystems.Electrical.Types.PerUnitR2Resistance on side 2 of the transformer (pu)
BuildingSystems.Electrical.Types.PerUnitL2Inductance on side 2 of the transformer (pu)
Magnetization
BooleanmagEffectsfalseIf true, introduce magnetization effects
BuildingSystems.Electrical.Types.PerUnitRmMagnetization resistance (pu)
BuildingSystems.Electrical.Types.PerUnitLmMagnetization inductance (pu)
Ground › side 1
Booleanground_1falseConnect side 1 of converter to ground
Ground › side 2
Booleanground_2trueConnect side 2 of converter to ground
Initialization
Modelica.Units.SI.Anglephi_10Angle of the voltage side 1 at initialization
Modelica.Units.SI.Anglephi_2phi_1Angle of the voltage side 2 at initialization

Connectors

TypeNameDefaultDescription
BuildingSystems.Electrical.Interfaces.BaseTerminalterminal_n (from PartialBaseTwoPort)Electric terminal side p
BuildingSystems.Electrical.Interfaces.BaseTerminalterminal_p (from PartialBaseTwoPort)Electric terminal side n

Components

TypeNameDefaultDescription
Modelica.Units.SI.Voltagev_p (from PartialConversion)Voltage drop between the two positive pins
Modelica.Units.SI.Voltagev_n (from PartialConversion)Voltage drop between the two negative pins
Modelica.Units.SI.Currenti_p (from PartialConversion)Current flowing through the positive pins
Modelica.Units.SI.Currenti_n (from PartialConversion)Current flowing through the negative pins
Modelica.Units.SI.EfficiencyetaEfficiency
Modelica.Units.SI.Power[2]PLossLoss power
Modelica.Units.SI.Voltage[2]V1Voltage at the winding - primary side
Modelica.Units.SI.Voltage[2]V2Voltage at the winding - secondary side

Revisions

  • January 30, 2019, by Michael Wetter:
    Added missing replaceable for the terminal.
  • November 28, 2016, by Michael Wetter:
    Made voltage public to allow setting a start value.
    This is for #584.
  • May 26, 2016, by Michael Wetter:
    Moved function call to PhaseSystem.thetaRef out of derivative operator as this is not yet supported by JModelica.
  • September 4, 2014, by Michael Wetter:
    Revised model.
  • August 5, 2014, by Marco Bonvini:
    Revised documentation.
  • June 17, 2014, by Marco Bonvini:
    Adde parameter phi_1 and phi_2 that are used during initialization to specify the angle of the voltage phasor.
  • June 9, 2014, by Marco Bonvini:
    Revised implementation and added stateSelect statement to use the current i[:] on the connectors as iteration variable for the initialization problem.
  • January 29, 2012, by Thierry S. Nouidui:
    First implementation.