modelSpecificEnthalpyTwoPort
Ideal two port sensor for the specific enthalpy
Extends from BaseClasses.PartialTwoPortSensor, BaseClasses.PartialMultiSensor_1values.
Information
This component monitors the fluid flowing from port_a to port_b. The sensor is ideal, i.e., it does not influence the fluid.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | precision (from PartialMultiSensor_1values) | 0 | Number of decimals displayed |
| Assumptions | |||
| Boolean | allowFlowReversal (from PartialTwoPortSensor) | true | = true to allow flow reversal, false restricts to design direction (port_a -> port_b) |
| Visualization | |||
| Boolean | showName (from PartialTwoPortSensor) | true | = false to hide component name |
| Advanced | |||
| Medium.MassFlowRate | m_flow_small (from PartialTwoPortSensor) | 1e-4 | Regularization for zero flow:|m_flow| < m_flow_small |
| Initialization › Start Value: Absolute Pressure | |||
| SI.AbsolutePressure | p_start (from PartialTwoPortSensor) | Medium.p_default | Pressure |
| Initialization › Start Value: Temperature | |||
| Boolean | use_T_start (from PartialTwoPortSensor) | true | Use T_start if true, otherwise h_start |
| SI.Temperature | T_start (from PartialTwoPortSensor) | Medium.T_default | Temperature |
| Initialization › Start Value: Specific Enthalpy | |||
| SI.SpecificEnthalpy | h_start (from PartialTwoPortSensor) | Medium.specificEnthalpy_pTX(p_start, T_start, X_start) | Specific enthalpy |
| Initialization › Start Value: Species Mass Fraction | |||
| SI.MassFraction[Medium.nX] | X_start (from PartialTwoPortSensor) | Medium.X_default | Mass fraction |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| TRANSFORM.Fluid.Interfaces.FluidPort_Flow | port_a (from PartialTwoPortSensor) | Fluid connector a (positive design flow direction is from port_a to port_b) | |
| TRANSFORM.Fluid.Interfaces.FluidPort_Flow | port_b (from PartialTwoPortSensor) | Fluid connector b (positive design flow direction is from port_a to port_b) | |
| Modelica.Blocks.Interfaces.RealOutput | h_out | Specific enthalpy of the passing fluid |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | var (from PartialMultiSensor_1values) | Variable to be converted | |
| Real | y (from PartialMultiSensor_1values) | iconUnit(var) | Icon display |