modelVolumeFlowRate
Ideal sensor for volume flow rate
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor, Modelica.Icons.RoundSensor.
Information
This model outputs the volume flow rate flowing from
port_a to port_b.
The sensor is ideal, i.e., it does not influence the fluid.
If the parameter tau is non-zero, then the measured
density that is used to convert the mass flow rate into
volumetric flow rate is computed using a first order differential equation.
Setting tau=0 is not recommend. See
Buildings.Fluid.Sensors.UsersGuide for an explanation.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Initialization | |||
| Medium.Density | d_start | Medium.density(Medium.setState_pTX(p_start, T_start, X_start)) | Initial or guess value of density |
| Modelica.Units.SI.Temperature | T_start | Medium.T_default | Temperature used to compute d_start |
| Modelica.Units.SI.Pressure | p_start | Medium.p_default | Pressure used to compute d_start |
| Modelica.Units.SI.MassFraction[Medium.nX] | X_start | Medium.X_default | Mass fraction used to compute d_start |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput | V_flow | Volume flow rate from port_a to port_b |
Revisions
-
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. -
January 18, 2016 by Filip Jorissen:
Using parametertauInvsince this now exists in Buildings.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor. This is for #372. -
August 31, 2013, by Michael Wetter:
Removed default valuetau=0as the base class already setstau=1. This change was made so that all sensors use the same default value. -
June 3, 2011 by Michael Wetter:
Revised implementation to add dynamics in such a way that the time constant increases as the mass flow rate tends to zero. This significantly improves the numerics. -
September 29, 2009, by Michael Wetter:
First implementation. Implementation is based onModelica.Fluid.