modelImpedance
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:
- resistive,
- inductive,
- resistive and inductive,
- capacitive, and
- 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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | inductive | true | If true, the load is inductive, otherwise it is capacitive |
| Modelica.Units.SI.Resistance | R | 1 | Resistance |
| Modelica.Units.SI.Inductance | L | 0 | Inductance |
| Modelica.Units.SI.Capacitance | C | 0 | Capacitance |
| Modeling assumption | |||
| Boolean | linearized (from Load) | false | If true, the load model is linearized |
| Buildings.Electrical.Types.Load | mode (from Load) | Buildings.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 <> Buildings.Electrical.Types.Load.VariableZ_P_input |
| Modelica.Units.SI.Voltage | V_nominal (from Load) | Nominal voltage (V_nominal >= 0) | |
| Initialization | |||
| Buildings.Electrical.Types.InitMode | initMode (from Load) | Buildings.Electrical.Types.InitMode.linearized | Initialization mode for homotopy operator |
| Variable load › Resistance | |||
| Boolean | use_R_in | false | If true, R is specified by an input |
| Modelica.Units.SI.Resistance | RMin | 1e-4 | Minimum value of the resistance |
| Modelica.Units.SI.Resistance | RMax | 1e2 | Maximum value of the resistance |
| Variable load › Capacitance | |||
| Boolean | use_C_in | false | If true, C is specified by an input |
| Modelica.Units.SI.Capacitance | CMin | 1e-4 | Minimum value of the capacitance |
| Modelica.Units.SI.Capacitance | CMax | 1e2 | Maximum value of the capacitance |
| Variable load › Inductance | |||
| Boolean | use_L_in | false | If true, L is specified by an input |
| Modelica.Units.SI.Inductance | LMin | 1e-4 | Minimum value of the inductance |
| Modelica.Units.SI.Inductance | LMax | 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 | |
| Buildings.Electrical.Interfaces.Terminal | terminal (from Load) | Generalized electric terminal | |
| Modelica.Blocks.Interfaces.RealInput | y_R | Input that sepecify variable R | |
| Modelica.Blocks.Interfaces.RealInput | y_C | Input that sepecify variable C | |
| Modelica.Blocks.Interfaces.RealInput | y_L | 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 15, 2014, by Marco Bonvini:
Created documentation.