modelImpedance

Partial model representing a generalized impedance

Extends from Buildings.Electrical.Interfaces.Load (Partial model for a generic load).

Information

This model represents a generalized interface for an impedance.

The model has a single generalized electric terminal of type Buildings.Electrical.Interfaces.Terminal that can be redeclared. The impedance can be of different types:

  1. resistive,
  2. inductive,
  3. resistive and inductive,
  4. capacitive, and
  5. resistive and capacitive.

The values of the resistance R, capacitance C and inductance L can be specified as parameters of the model.

The values of the resistance R, capacitance C and inductance L can also be specified by using the input variables y_R, y_C, and y_L that are Real values between [0,1].
These input values are enabled by the boolean flags use_R_in, use_L_in, and use_C_in.

Example

If the flag use_R_in = true, the value of R is computed as

R = Rmin + yR (Rmax - Rmin)

Parameters

TypeNameDefaultDescription
BooleaninductivetrueIf true, the load is inductive, otherwise it is capacitive
Modelica.Units.SI.ResistanceR1Resistance
Modelica.Units.SI.InductanceL0Inductance
Modelica.Units.SI.CapacitanceC0Capacitance
Modeling assumption
Booleanlinearized (from Load)falseIf true, the load model is linearized
Buildings.Electrical.Types.Loadmode (from Load)Buildings.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 <> Buildings.Electrical.Types.Load.VariableZ_P_input
Modelica.Units.SI.VoltageV_nominal (from Load)Nominal voltage (V_nominal >= 0)
Initialization
Buildings.Electrical.Types.InitModeinitMode (from Load)Buildings.Electrical.Types.InitMode.linearizedInitialization mode for homotopy operator
Variable load › Resistance
Booleanuse_R_infalseIf true, R is specified by an input
Modelica.Units.SI.ResistanceRMin1e-4Minimum value of the resistance
Modelica.Units.SI.ResistanceRMax1e2Maximum value of the resistance
Variable load › Capacitance
Booleanuse_C_infalseIf true, C is specified by an input
Modelica.Units.SI.CapacitanceCMin1e-4Minimum value of the capacitance
Modelica.Units.SI.CapacitanceCMax1e2Maximum value of the capacitance
Variable load › Inductance
Booleanuse_L_infalseIf true, L is specified by an input
Modelica.Units.SI.InductanceLMin1e-4Minimum value of the inductance
Modelica.Units.SI.InductanceLMax1e2Maximum 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
Buildings.Electrical.Interfaces.Terminalterminal (from Load)Generalized electric terminal
Modelica.Blocks.Interfaces.RealInputy_RInput that sepecify variable R
Modelica.Blocks.Interfaces.RealInputy_CInput that sepecify variable C
Modelica.Blocks.Interfaces.RealInputy_LInput 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 15, 2014, by Marco Bonvini:
    Created documentation.