Extends from Modelica.Icons.Library2 (Icon for library where additional icon elements shall be added).
Name | Description |
---|---|
HeatPort | Thermal port for 1-dim. heat transfer |
HeatPort_a | Thermal port for 1-dim. heat transfer (filled rectangular icon) |
HeatPort_b | Thermal port for 1-dim. heat transfer (unfilled rectangular icon) |
Element1D | Partial heat transfer element with two HeatPort connectors that does not store energy |
Type | Name | Description |
---|---|---|
Temperature | T | Port temperature [K] |
flow HeatFlowRate | Q_flow | Heat flow rate (positive if flowing from outside into the component) [W] |
partial connector HeatPort "Thermal port for 1-dim. heat transfer" Modelica.SIunits.Temperature T "Port temperature"; flow Modelica.SIunits.HeatFlowRate Q_flow "Heat flow rate (positive if flowing from outside into the component)";end HeatPort;
This connector is used for 1-dimensional heat flow between components. The variables in the connector are:
T Temperature in [Kelvin]. Q_flow Heat flow rate in [Watt].
According to the Modelica sign convention, a positive heat flow rate Q_flow is considered to flow into a component. This convention has to be used whenever this connector is used in a model class.
Note, that the two connector classes HeatPort_a and HeatPort_b are identical with the only exception of the different icon layout.
Extends from HeatPort (Thermal port for 1-dim. heat transfer).
Type | Name | Description |
---|---|---|
Temperature | T | Port temperature [K] |
flow HeatFlowRate | Q_flow | Heat flow rate (positive if flowing from outside into the component) [W] |
connector HeatPort_a "Thermal port for 1-dim. heat transfer (filled rectangular icon)" extends HeatPort;end HeatPort_a;
This connector is used for 1-dimensional heat flow between components. The variables in the connector are:
T Temperature in [Kelvin]. Q_flow Heat flow rate in [Watt].
According to the Modelica sign convention, a positive heat flow rate Q_flow is considered to flow into a component. This convention has to be used whenever this connector is used in a model class.
Note, that the two connector classes HeatPort_a and HeatPort_b are identical with the only exception of the different icon layout.
Extends from HeatPort (Thermal port for 1-dim. heat transfer).
Type | Name | Description |
---|---|---|
Temperature | T | Port temperature [K] |
flow HeatFlowRate | Q_flow | Heat flow rate (positive if flowing from outside into the component) [W] |
connector HeatPort_b "Thermal port for 1-dim. heat transfer (unfilled rectangular icon)" extends HeatPort;end HeatPort_b;
This partial model contains the basic connectors and variables to allow heat transfer models to be created that do not store energy, This model defines and includes equations for the temperature drop across the element, dT, and the heat flow rate through the element from port_a to port_b, Q_flow.
By extending this model, it is possible to write simple constitutive equations for many types of heat transfer components.
Type | Name | Description |
---|---|---|
HeatPort_a | port_a | |
HeatPort_b | port_b |
partial model Element1D "Partial heat transfer element with two HeatPort connectors that does not store energy" Modelica.SIunits.HeatFlowRate Q_flow "Heat flow rate from port_a -> port_b"; Modelica.SIunits.TemperatureDifference dT "port_a.T - port_b.T";public HeatPort_a port_a; HeatPort_b port_b; equation dT = port_a.T - port_b.T; port_a.Q_flow = Q_flow; port_b.Q_flow = -Q_flow;end Element1D;