| Name | Description |
|---|---|
| Ideal enthalphy flow rate sensor | |
| Collection of models that illustrate model use and test models | |
| Ideal wet bulb temperature sensor |
Buildings.Fluids.Sensors.EnthalpyFlowRate
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.
| Type | Name | Default | Description |
|---|---|---|---|
| replaceable package Medium | PartialMedium | Medium in the sensor | |
| Advanced | |||
| Temp | flowDirection | Modelica_Fluid.Types.FlowDir... | Unidirectional (port_a -> port_b) or bidirectional flow component |
| Type | Name | Description |
|---|---|---|
| FluidPort_a | port_a | |
| FluidPort_b | port_b | |
| output RealOutput | H_flow | Enthalpy flow rate, positive if from port_a to port_b [W] |
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
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.
| Type | Name | Default | Description |
|---|---|---|---|
| replaceable package Medium | PartialMedium | Medium in the sensor | |
| Advanced | |||
| Temp | flowDirection | Modelica_Fluid.Types.FlowDir... | Unidirectional (port_a -> port_b) or bidirectional flow component |
| Type | Name | Description |
|---|---|---|
| FluidPort_a | port_a | |
| FluidPort_b | port_b | |
| output RealOutput | TWB | Wet bulb temperature in port medium [K] |
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;