modelDensityTwoPort
Ideal two port density sensor
Extends from IBPSA.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor, Modelica.Icons.RotationalSensor.
Information
This model outputs the density of the fluid 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 its output
is computed using a first order differential equation.
Setting tau=0 is not recommend. See
IBPSA.Fluid.Sensors.UsersGuide for an explanation.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Initialization | |||
| Medium.Density | d_start | Medium.density(state = Medium.setState_pTX(p = p_start, T = T_start, X = X_start)) | Initial or guess value of output (=state) |
| Modelica.SIunits.Temperature | T_start | Medium.T_default | Temperature used to compute d_start |
| Modelica.SIunits.Pressure | p_start | Medium.p_default | Pressure used to compute d_start |
| Modelica.SIunits.MassFraction[Medium.nX] | X_start | Medium.X_default | Mass fraction used to compute d_start |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput | d | Density of the passing fluid |
Revisions
-
January 18, 2016 by Filip Jorissen:
Using parametertauInvsince this now exists in IBPSA.Fluid.Sensors.BaseClasses.PartialDynamicFlowSensor. This is for #372. -
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, based onModelica.Fluid.