Buildings.Electrical.AC.OnePhase.Lines
Package with models for AC electrical lines
Information
This package contains models for transmission lines and electrical networks.
Extends from Modelica.Icons.Package (Icon for standard packages).
Package Content
Name | Description |
---|---|
Line | Model of an electrical line |
Network | Single phase AC network |
TwoPortInductance | Model of an inductive element with two electrical ports |
TwoPortRL | Model of a resistive-inductive element with two electrical ports |
TwoPortRLC | Model of an RLC element with two electrical ports |
TwoPortResistance | Model of a resistance with two electrical ports |
Examples | Package with example models |
Buildings.Electrical.AC.OnePhase.Lines.Line
Model of an electrical line
Information
This model represents an AC single phase cable. The model is based on Buildings.Electrical.AC.OnePhase.Lines.TwoPortRLC and provides functionalities to parametrize the values of R, L and C, either using commercial cables or using default values.
Extends from Buildings.Electrical.Transmission.BaseClasses.PartialLine (Partial cable line dispersion model).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package PhaseSystem_p | PartialPhaseSystem | Phase system of terminal p | |
replaceable package PhaseSystem_n | PartialPhaseSystem | Phase system of terminal n | |
Length | l | Length of the line [m] | |
Power | P_nominal | Nominal power of the line [W] | |
Model | |||
Assumptions | |||
Boolean | use_C | false | Set to true to add a capacitance in the center of the line |
Load | modelMode | Buildings.Electrical.Types.L... | Select between steady state and dynamic model |
Thermal | |||
Boolean | use_T | false | If true, enables the input for the temperature of the cable |
Temperature | TCable | T_ref | Fixed temperature of the cable [K] |
Tech. specification | |||
Auto/Manual mode | |||
CableMode | mode | Buildings.Electrical.Types.C... | Select if choosing the cable automatically or between a list of commercial options |
Manual mode | |||
Generic | commercialCable | Buildings.Electrical.Transmi... | Commercial cables options |
Connectors
Type | Name | Description |
---|---|---|
replaceable package PhaseSystem_p | Phase system of terminal p | |
replaceable package PhaseSystem_n | Phase system of terminal n | |
input RealInput | T | Temperature of the cable |
Modelica definition
Buildings.Electrical.AC.OnePhase.Lines.Network
Single phase AC network
Information
This model represents a generalized electrical AC single phase network.
See Buildings.Electrical.Transmission.BaseClasses.PartialNetwork for information about the network model.
See Buildings.Electrical.Transmission.Grids.PartialGrid for more information about the topology of the network, such as the number of nodes, how they are connected, and the length of each connection.
Extends from Buildings.Electrical.Transmission.BaseClasses.PartialNetwork (Partial model that represent an electric network).
Parameters
Type | Name | Default | Description |
---|---|---|---|
Model | |||
Assumptions | |||
Boolean | use_C | false | If true, model the cable capacity |
Load | modelMode | Types.Load.FixedZ_steady_state | Select between steady state and dynamic model |
Modelica definition
Buildings.Electrical.AC.OnePhase.Lines.TwoPortInductance
Model of an inductive element with two electrical ports
Information
This model represents an inductance that connects two AC one phase interfaces. This model can be used to represent a single phase cable in a AC grid.
The model represents the lumped inductance as shown in the figure below.
Extends from Buildings.Electrical.Transmission.BaseClasses.PartialTwoPortInductance (Partial model of an inductive element that links two electrical connectors).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package PhaseSystem_p | PartialPhaseSystem | Phase system of terminal p | |
replaceable package PhaseSystem_n | PartialPhaseSystem | Phase system of terminal n | |
Inductance | L | Inductance [H] | |
Modeling assumption | |||
Load | mode | Buildings.Electrical.Types.L... | Type of model (e.g., steady state, dynamic, prescribed power consumption, etc.) |
Connectors
Type | Name | Description |
---|---|---|
replaceable package PhaseSystem_p | Phase system of terminal p | |
replaceable package PhaseSystem_n | Phase system of terminal n |
Modelica definition
Buildings.Electrical.AC.OnePhase.Lines.TwoPortRL
Model of a resistive-inductive element with two electrical ports
Information
This model represents a resistance and an inductance connected in series with two AC one phase interfaces. This model can be used to represent a single phase cable in a AC grid.
The model represents the lumped RL cable as shown in the figure below.
Extends from Buildings.Electrical.Transmission.BaseClasses.PartialTwoPortRLC (Partial model of an RLC element that links two electrical connectors).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package PhaseSystem_p | PartialPhaseSystem | Phase system of terminal p | |
replaceable package PhaseSystem_n | PartialPhaseSystem | Phase system of terminal n | |
Boolean | useHeatPort | false | =true, if heatPort is enabled |
Temperature | T | T_ref | Fixed device temperature if useHeatPort = false [K] |
Resistance | R | Resistance at temperature T_ref [Ohm] | |
Temperature | T_ref | 298.15 | Reference temperature [K] |
Temperature | M | 507.65 | Temperature constant (R_actual = R*(M + T_heatPort)/(M + T_ref)) [K] |
Capacitance | C | 0 | Capacity [F] |
Inductance | L | Inductance [H] | |
Current | i_start[PhaseSystem_p.n] | zeros(PhaseSystem_p.n) | Initial current phasor of the line (positive if entering from terminal p) [A] |
Nominal conditions | |||
Voltage | V_nominal | 0 | Nominal voltage (V_nominal >= 0) [V] |
Modeling assumption | |||
Load | mode | Buildings.Electrical.Types.L... | Type of model (e.g., steady state, dynamic, prescribed power consumption, etc.) |
Connectors
Type | Name | Description |
---|---|---|
replaceable package PhaseSystem_p | Phase system of terminal p | |
replaceable package PhaseSystem_n | Phase system of terminal n | |
HeatPort_a | heatPort | Conditional heat port |
Modelica definition
Buildings.Electrical.AC.OnePhase.Lines.TwoPortRLC
Model of an RLC element with two electrical ports
Information
This model represents a series of two resistive-inductive impedances and a capacitance that connects two AC single phase interfaces. This model can be used to represent a cable in a AC grid.
The model represents the lumped resistances and capacity, as a T-model, as shown in the figure below.
As can be seen in the figure, the resistance R and the inductance L are split in two halves
and the capacitance is located in the center.
The capacitance in the center is optional. If it is not present, set the
parameter C=0
.
The model is either dynamic or static depending on the
presence of the capacitive effect.
Extends from Buildings.Electrical.Transmission.BaseClasses.PartialTwoPortRLC (Partial model of an RLC element that links two electrical connectors).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package PhaseSystem_p | PartialPhaseSystem | Phase system of terminal p | |
replaceable package PhaseSystem_n | PartialPhaseSystem | Phase system of terminal n | |
Boolean | useHeatPort | false | =true, if heatPort is enabled |
Temperature | T | T_ref | Fixed device temperature if useHeatPort = false [K] |
Resistance | R | Resistance at temperature T_ref [Ohm] | |
Temperature | T_ref | 298.15 | Reference temperature [K] |
Temperature | M | 507.65 | Temperature constant (R_actual = R*(M + T_heatPort)/(M + T_ref)) [K] |
Capacitance | C | Capacity [F] | |
Inductance | L | Inductance [H] | |
Voltage | Vc_start[2] | {V_nominal,0} | Initial voltage phasor of the capacitance located in the middle of the line [V] |
Modeling assumption | |||
Load | mode | Buildings.Electrical.Types.L... | Type of model (e.g., steady state, dynamic, prescribed power consumption, etc.) |
Connectors
Type | Name | Description |
---|---|---|
replaceable package PhaseSystem_p | Phase system of terminal p | |
replaceable package PhaseSystem_n | Phase system of terminal n | |
HeatPort_a | heatPort | Conditional heat port |
Modelica definition
Buildings.Electrical.AC.OnePhase.Lines.TwoPortResistance
Model of a resistance with two electrical ports
Information
This model represents a resistance that connects two AC one phase interfaces. This model can be used to represent a single phase cable in a AC grid.
The model represents the lumped resistance as shown in the figure below.
Extends from Buildings.Electrical.Transmission.BaseClasses.PartialTwoPortResistance (Partial model of a resistive element that links two electrical connectors).
Parameters
Type | Name | Default | Description |
---|---|---|---|
replaceable package PhaseSystem_p | PartialPhaseSystem | Phase system of terminal p | |
replaceable package PhaseSystem_n | PartialPhaseSystem | Phase system of terminal n | |
Boolean | useHeatPort | false | =true, if heatPort is enabled |
Temperature | T | T_ref | Fixed device temperature if useHeatPort = false [K] |
Resistance | R | Resistance at temperature T_ref [Ohm] | |
Temperature | T_ref | 298.15 | Reference temperature [K] |
Temperature | M | 507.65 | Temperature constant (R_actual = R*(M + T_heatPort)/(M + T_ref)) [K] |
Connectors
Type | Name | Description |
---|---|---|
replaceable package PhaseSystem_p | Phase system of terminal p | |
replaceable package PhaseSystem_n | Phase system of terminal n | |
HeatPort_a | heatPort | Conditional heat port |