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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | inductive (from Impedance) | true | If true, the load is inductive, otherwise it is capacitive |
| Modelica.Units.SI.Resistance | R (from Impedance) | 1 | Resistance |
| Modelica.Units.SI.Inductance | L (from Impedance) | 0 | Inductance |
| Modelica.Units.SI.Capacitance | C (from Impedance) | 0 | Capacitance |
| Modeling assumption | |||
| Boolean | linearized (from Load) | false | If true, the load model is linearized |
| BuildingSystems.Electrical.Types.Load | mode (from Load) | BuildingSystems.Electrical.Types.Load.FixedZ_steady_state | Type of load model (e.g., steady state, dynamic, prescribed power consumption, etc.) |
| Nominal conditions | |||
| Modelica.Units.SI.Power | P_nominal (from Load) | 0 | Nominal power (negative if consumed, positive if generated). Used if mode <> BuildingSystems.Electrical.Types.Load.VariableZ_P_input |
| Modelica.Units.SI.Voltage | V_nominal (from Load) | Nominal voltage (V_nominal >= 0) | |
| Initialization | |||
| BuildingSystems.Electrical.Types.InitMode | initMode (from Load) | BuildingSystems.Electrical.Types.InitMode.zero_current | Initialization mode for homotopy operator |
| Variable load › Resistance | |||
| Boolean | use_R_in (from Impedance) | false | If true, R is specified by an input |
| Modelica.Units.SI.Resistance | RMin (from Impedance) | 1e-4 | Minimum value of the resistance |
| Modelica.Units.SI.Resistance | RMax (from Impedance) | 1e2 | Maximum value of the resistance |
| Variable load › Capacitance | |||
| Boolean | use_C_in (from Impedance) | false | If true, C is specified by an input |
| Modelica.Units.SI.Capacitance | CMin (from Impedance) | 1e-4 | Minimum value of the capacitance |
| Modelica.Units.SI.Capacitance | CMax (from Impedance) | 1e2 | Maximum value of the capacitance |
| Variable load › Inductance | |||
| Boolean | use_L_in (from Impedance) | false | If true, L is specified by an input |
| Modelica.Units.SI.Inductance | LMin (from Impedance) | 1e-4 | Minimum value of the inductance |
| Modelica.Units.SI.Inductance | LMax (from Impedance) | 1e2 | Maximum value of the inductance |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | y (from Load) | Fraction of the nominal power consumed | |
| Modelica.Blocks.Interfaces.RealInput | Pow (from Load) | Power consumed | |
| BuildingSystems.Electrical.Interfaces.Terminal | terminal (from Load) | Generalized electric terminal | |
| Modelica.Blocks.Interfaces.RealInput | y_R (from Impedance) | Input that sepecify variable R | |
| Modelica.Blocks.Interfaces.RealInput | y_C (from Impedance) | Input that sepecify variable C | |
| Modelica.Blocks.Interfaces.RealInput | y_L (from Impedance) | Input that sepecify variable L |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Voltage[:] | v (from Load) | terminal.v | Voltage vector |
| Modelica.Units.SI.Current[:] | i (from Load) | terminal.i | Current vector |
| Modelica.Units.SI.Power[PhaseSystem.n] | S (from Load) | PhaseSystem.phasePowers_vi(v, -i) | Phase powers |
| Modelica.Units.SI.Power | P (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 toPhaseSystem.thetaRefout of derivative operator as this is not yet supported by JModelica. -
March 30, 2015, by Michael Wetter:
MadePhaseSystemandterminalreplaceable. 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.