modelDensity
Ideal one port density sensor
Extends from Buildings.Fluid.Sensors.BaseClasses.PartialAbsoluteSensor (Partial component to model a sensor that measures a potential variable), Modelica.Icons.RoundSensor (Icon representing a round measurement device).
Information
This model outputs the density of the fluid connected to its port. The sensor is ideal, i.e. it does not influence the fluid.
To measure density in a duct or pipe, use Buildings.Fluid.Sensors.DensityTwoPort rather than this sensor. Read the Buildings.Fluid.Sensors.UsersGuide prior to using this model to see about potential numerical problems if this sensor is used incorrectly in a system model.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | warnAboutOnePortConnection (from PartialAbsoluteSensor) | true | Set to false to suppress warning about potential numerical issues, see Buildings.Fluid.Sensors.UsersGuide for more information |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | port (from PartialAbsoluteSensor) | ||
| Modelica.Blocks.Interfaces.RealOutput | d | Density in port medium |