modelImpedance

Model of a generic impedance

Extends from BuildingSystems.Electrical.Interfaces.Impedance (Partial model representing a generalized impedance).

Information

Model of an impedance. This model can be used to represent any type of resistive, inductive or capacitive load.

Note that the power consumed by the impedance model will drecrease if its voltage decreases.

The model of the impedance is

V = Z i,

where Z = R + j X is the impedance. The value of the resistance R and the reactance X depend on the type of impedance. Different types of impedances can be selected using the boolean parameters inductive, use_R_in, use_L_in, and use_C_in. See BuildingSystems.Electrical.Interfaces.Impedance for more details.

Parameters

TypeNameDefaultDescription
Booleaninductive (from Impedance)trueIf true, the load is inductive, otherwise it is capacitive
Modelica.Units.SI.ResistanceR (from Impedance)1Resistance
Modelica.Units.SI.InductanceL (from Impedance)0Inductance
Modelica.Units.SI.CapacitanceC (from Impedance)0Capacitance
Modeling assumption
Booleanlinearized (from Load)falseIf true, the load model is linearized
BuildingSystems.Electrical.Types.Loadmode (from Load)BuildingSystems.Electrical.Types.Load.FixedZ_steady_stateType of load model (e.g., steady state, dynamic, prescribed power consumption, etc.)
Nominal conditions
Modelica.Units.SI.PowerP_nominal (from Load)0Nominal power (negative if consumed, positive if generated). Used if mode <> BuildingSystems.Electrical.Types.Load.VariableZ_P_input
Modelica.Units.SI.VoltageV_nominal (from Load)Nominal voltage (V_nominal >= 0)
Initialization
BuildingSystems.Electrical.Types.InitModeinitMode (from Load)BuildingSystems.Electrical.Types.InitMode.zero_currentInitialization mode for homotopy operator
Variable load › Resistance
Booleanuse_R_in (from Impedance)falseIf true, R is specified by an input
Modelica.Units.SI.ResistanceRMin (from Impedance)1e-4Minimum value of the resistance
Modelica.Units.SI.ResistanceRMax (from Impedance)1e2Maximum value of the resistance
Variable load › Capacitance
Booleanuse_C_in (from Impedance)falseIf true, C is specified by an input
Modelica.Units.SI.CapacitanceCMin (from Impedance)1e-4Minimum value of the capacitance
Modelica.Units.SI.CapacitanceCMax (from Impedance)1e2Maximum value of the capacitance
Variable load › Inductance
Booleanuse_L_in (from Impedance)falseIf true, L is specified by an input
Modelica.Units.SI.InductanceLMin (from Impedance)1e-4Minimum value of the inductance
Modelica.Units.SI.InductanceLMax (from Impedance)1e2Maximum value of the inductance

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputy (from Load)Fraction of the nominal power consumed
Modelica.Blocks.Interfaces.RealInputPow (from Load)Power consumed
BuildingSystems.Electrical.Interfaces.Terminalterminal (from Load)Generalized electric terminal
Modelica.Blocks.Interfaces.RealInputy_R (from Impedance)Input that sepecify variable R
Modelica.Blocks.Interfaces.RealInputy_C (from Impedance)Input that sepecify variable C
Modelica.Blocks.Interfaces.RealInputy_L (from Impedance)Input that sepecify variable L

Components

TypeNameDefaultDescription
Modelica.Units.SI.Voltage[:]v (from Load)terminal.vVoltage vector
Modelica.Units.SI.Current[:]i (from Load)terminal.iCurrent vector
Modelica.Units.SI.Power[PhaseSystem.n]S (from Load)PhaseSystem.phasePowers_vi(v, -i)Phase powers
Modelica.Units.SI.PowerP (from Load)Power of the load (negative if consumed, positive if fed into the electrical grid)

Revisions

  • May 26, 2016, by Michael Wetter:
    Moved function call to PhaseSystem.thetaRef out of derivative operator as this is not yet supported by JModelica.
  • March 30, 2015, by Michael Wetter:
    Made PhaseSystem and terminal replaceable. This was detected by the OpenModelica regression tests.
  • September 4, 2014, by Michael Wetter:
    Revised documentation.
  • August 5, 2014, by Marco Bonvini:
    Revised documentation.
  • January 2, 2012, by Michael Wetter:
    First implementation.