modelEntropyFlowRate
Ideal entropy flow rate sensor
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor (Partial component to model sensors that measure flow properties using a dynamic model), Modelica.Icons.RoundSensor (Icon representing a round measurement device).
Information
This model outputs the entropy flow rate of the medium in the flow between fluid ports. The sensor is ideal, i.e., it does not influence the fluid.
If the parameter tau is non-zero, then the measured
specific entropy sout that is used to
compute the entropy flow rate
Ṡ = ṁ sout
is computed using a first order differential equation.
See
Buildings.Fluid.Sensors.UsersGuide for an explanation.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time | tau (from PartialDynamicFlowSensor) | 1 | Time constant at nominal flow rate (use tau=0 for steady-state sensor, but see user guide for potential problems) |
| Assumptions | |||
| Boolean | allowFlowReversal (from PartialTwoPort) | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
| Nominal condition | |||
| Modelica.Units.SI.MassFlowRate | m_flow_nominal (from PartialFlowSensor) | Nominal mass flow rate, used for regularization near zero flow | |
| Advanced | |||
| Modelica.Units.SI.MassFlowRate | m_flow_small (from PartialFlowSensor) | 1E-4*m_flow_nominal | For bi-directional flow, temperature is regularized in the region |m_flow| < m_flow_small (m_flow_small > 0 required) |
| Initialization | |||
| Modelica.Blocks.Types.Init | initType (from PartialDynamicFlowSensor) | Modelica.Blocks.Types.Init.InitialState | Type of initialization (InitialState and InitialOutput are identical) |
| Modelica.Units.SI.SpecificEntropy | s_out_start | Medium.specificEntropy_pTX(p = Medium.p_default, T = Medium.T_default, X = Medium.X_default) | Initial or guess value of measured specific entropy |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | port_a (from PartialTwoPort) | Fluid connector a (positive design flow direction is from port_a to port_b) | |
| Modelica.Fluid.Interfaces.FluidPort_b | port_b (from PartialTwoPort) | Fluid connector b (positive design flow direction is from port_a to port_b) | |
| Modelica.Blocks.Interfaces.RealOutput | S_flow | Entropy flow rate, positive if from port_a to port_b |
Revisions
-
June 25, 2026, by Michael Wetter:
Addednominalattribute to state variable.
This is for IBPSA, #2132. -
October 19, 2020, by Antoine Gautier:
Changed default value fortaufrom1to0.
This is for #1406. -
February 25, 2020, by Michael Wetter:
Changed icon to display its operating state.
This is for #1294. -
July 29, 2016, by Michael Wetter:
First implementation based on Buildings.Fluid.Sensors.EnthalpyFlowRate.