Buildings.Fluids.Sensors

Package with sensor models

Package Content

NameDescription
Buildings.Fluids.Sensors.EnthalpyFlowRate EnthalpyFlowRate Ideal enthalphy flow rate sensor
Buildings.Fluids.Sensors.Examples Examples Collection of models that illustrate model use and test models
Buildings.Fluids.Sensors.WetBulbTemperature WetBulbTemperature Ideal wet bulb temperature sensor


Buildings.Fluids.Sensors.EnthalpyFlowRate Buildings.Fluids.Sensors.EnthalpyFlowRate

Ideal enthalphy flow rate sensor

Buildings.Fluids.Sensors.EnthalpyFlowRate

Information


This component monitors the enthalphy flow rate of the medium in the flow between fluid ports. The sensor is ideal, i.e., it does not influence the fluid.


Parameters

TypeNameDefaultDescription
replaceable package MediumPartialMediumMedium in the sensor
Advanced
TempflowDirectionModelica_Fluid.Types.FlowDir...Unidirectional (port_a -> port_b) or bidirectional flow component

Connectors

TypeNameDescription
FluidPort_aport_a 
FluidPort_bport_b 
output RealOutputH_flowEnthalpy flow rate, positive if from port_a to port_b [W]

Modelica definition

model EnthalpyFlowRate "Ideal enthalphy flow rate sensor" 
  extends Modelica_Fluid.Sensors.BaseClasses.PartialFlowSensor;
  extends Modelica.Icons.RotationalSensor;
  Modelica.Blocks.Interfaces.RealOutput H_flow(unit="W") 
    "Enthalpy flow rate, positive if from port_a to port_b";
  
equation 
  H_flow = port_a.H_flow;
end EnthalpyFlowRate;

Buildings.Fluids.Sensors.WetBulbTemperature Buildings.Fluids.Sensors.WetBulbTemperature

Ideal wet bulb temperature sensor

Buildings.Fluids.Sensors.WetBulbTemperature

Information


This component monitors the wet bulb temperature of the medium in the flow between fluid ports. The sensor is ideal, i.e., it does not influence the fluid.


Parameters

TypeNameDefaultDescription
replaceable package MediumPartialMediumMedium in the sensor
Advanced
TempflowDirectionModelica_Fluid.Types.FlowDir...Unidirectional (port_a -> port_b) or bidirectional flow component

Connectors

TypeNameDescription
FluidPort_aport_a 
FluidPort_bport_b 
output RealOutputTWBWet bulb temperature in port medium [K]

Modelica definition

model WetBulbTemperature "Ideal wet bulb temperature sensor" 
  import SI = Modelica.SIunits;
  extends Modelica_Fluid.Sensors.BaseClasses.PartialFlowSensor;
  Medium.BaseProperties medium;
  Modelica.Blocks.Interfaces.RealOutput TWB(unit = "K", start=293.15) 
    "Wet bulb temperature in port medium";
  
  Buildings.Utilities.Psychrometrics.WetBulbTemperature wetBulMod(
               redeclare package Medium = Medium) 
    "Model for wet bulb temperature";
  
equation 
  port_a.p = medium.p;
  h  = medium.h;
  Xi = medium.Xi;
  
  // compute wet bulb temperature
  wetBulMod.dryBul.h  = medium.h;
  wetBulMod.dryBul.p  = medium.p;
  wetBulMod.dryBul.Xi = medium.Xi;
  TWB = wetBulMod.wetBul.T;
  
end WetBulbTemperature;

HTML-documentation generated by Dymola Fri Jun 20 09:58:32 2008.