modelModularSensors

Model that contains mass flow, pressure, temperature and quality sensors for modular compressors

Extends from Interfaces.PartialModularPort_ab (Base model for all modular models with multiple inlet and outlet ports).

Information

This is a model of modular sensors that is used, for example, for components of modular heat pumps like modular expansion valves or modular compressors.
It consists of four types of sensors that are introduced as vectors and that are mainly used in heat pumps:

  • Absolute pressure.
  • Temperature.
  • Mass flow rate.
  • Steam quality.

Parameters

TypeNameDefaultDescription
Sensors › General
Modelica.Units.SI.Timetau1Time constant at nominal flow rate
Sensors › Temperature sensor
BooleantransferHeatfalseif true, temperature T converges towards TAmb when no flow
Modelica.Units.SI.TemperatureTAmbMedium.T_defaultFixed ambient temperature for heat transfer
Modelica.Units.SI.TimetauHeaTra1200Time constant for heat transfer, default 20 minutes
Sensors › Initialisation
Modelica.Blocks.Types.InitinitTypeModelica.Blocks.Types.Init.InitialStateType of initialization (InitialState and InitialOutput are identical)
Modelica.Units.SI.TemperatureT_startMedium.T_defaultInitial or guess value of output (= state)
Modelica.Units.SI.SpecificEnthalpyh_out_startMedium.specificEnthalpy_pTX(p = Medium.p_default, T = Medium.T_default, X = Medium.X_default)Initial or guess value of output (= state)
Modular approach
IntegernPorts (from PartialModularPort_ab)1Number of inlet and outlet ports
Assumptions › General
BooleanallowFlowReversal (from PartialModularPort_ab)true= false to simplify equations, assuming, but not enforcing, no flow reversal
Advanced › Numeric limitations
Medium.MassFlowRatem_flow_nominal (from PartialModularPort_ab)0.1Nominal mass flow rate
Medium.MassFlowRatem_flow_small (from PartialModularPort_ab)1e-6*m_flow_nominalSmall mass flow rate for regularization of zero flow

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPorts_a[nPorts]ports_a (from PartialModularPort_ab)Fluid connectors a (positive design flow direction is from port_a to port_b)
Modelica.Fluid.Interfaces.FluidPorts_b[nPorts]ports_b (from PartialModularPort_ab)Fluid connectors b (positive design flow direction is from port_a to port_b)
Modelica.Blocks.Interfaces.RealOutput[nPorts]meaPrePressures measured by sensors
Modelica.Blocks.Interfaces.RealOutput[nPorts]meaTemTemperatures measured by sensors
Modelica.Blocks.Interfaces.RealOutput[nPorts]meaMasFloMass flow rates measured by sensors
Modelica.Blocks.Interfaces.RealOutput[nPorts]meaQuaQualities measured by sensors

Components

TypeNameDefaultDescription
Medium.SaturationProperties[nPorts]satProSaturation states for each fluid port
Modelica.Units.SI.SpecificEnthalpy[nPorts]bubEntBubble enthalpies for each fluid port
Modelica.Units.SI.SpecificEnthalpy[nPorts]dewEntDew enthalpies for each fluid port
Real[nPorts]pTriCriTrigger to check if medium exceeds critical pressure
AixLib.Fluid.Sensors.MassFlowRate[nPorts]senMasFloMass flow sensors
AixLib.Fluid.Sensors.Pressure[nPorts]senPrePressure sensors
AixLib.Fluid.Sensors.TemperatureTwoPort[nPorts]senTemTemperature sensors
AixLib.Fluid.Sensors.SpecificEnthalpyTwoPort[nPorts]senSpeEntSpecific enthalpy sensors

Revisions

  • October 30, 2017, by Mirko Engelpracht:
    First implementation (see issue 467).