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
| Type | Name | Default | Description |
|---|---|---|---|
| Sensors › General | |||
| Modelica.Units.SI.Time | tau | 1 | Time constant at nominal flow rate |
| Sensors › Temperature sensor | |||
| Boolean | transferHeat | false | if true, temperature T converges towards TAmb when no flow |
| Modelica.Units.SI.Temperature | TAmb | Medium.T_default | Fixed ambient temperature for heat transfer |
| Modelica.Units.SI.Time | tauHeaTra | 1200 | Time constant for heat transfer, default 20 minutes |
| Sensors › Initialisation | |||
| Modelica.Blocks.Types.Init | initType | Modelica.Blocks.Types.Init.InitialState | Type of initialization (InitialState and InitialOutput are identical) |
| Modelica.Units.SI.Temperature | T_start | Medium.T_default | Initial or guess value of output (= state) |
| Modelica.Units.SI.SpecificEnthalpy | h_out_start | Medium.specificEnthalpy_pTX(p = Medium.p_default, T = Medium.T_default, X = Medium.X_default) | Initial or guess value of output (= state) |
| Modular approach | |||
| Integer | nPorts (from PartialModularPort_ab) | 1 | Number of inlet and outlet ports |
| Assumptions › General | |||
| Boolean | allowFlowReversal (from PartialModularPort_ab) | true | = false to simplify equations, assuming, but not enforcing, no flow reversal |
| Advanced › Numeric limitations | |||
| Medium.MassFlowRate | m_flow_nominal (from PartialModularPort_ab) | 0.1 | Nominal mass flow rate |
| Medium.MassFlowRate | m_flow_small (from PartialModularPort_ab) | 1e-6*m_flow_nominal | Small mass flow rate for regularization of zero flow |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| 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] | meaPre | Pressures measured by sensors | |
| Modelica.Blocks.Interfaces.RealOutput[nPorts] | meaTem | Temperatures measured by sensors | |
| Modelica.Blocks.Interfaces.RealOutput[nPorts] | meaMasFlo | Mass flow rates measured by sensors | |
| Modelica.Blocks.Interfaces.RealOutput[nPorts] | meaQua | Qualities measured by sensors |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.SaturationProperties[nPorts] | satPro | Saturation states for each fluid port | |
| Modelica.Units.SI.SpecificEnthalpy[nPorts] | bubEnt | Bubble enthalpies for each fluid port | |
| Modelica.Units.SI.SpecificEnthalpy[nPorts] | dewEnt | Dew enthalpies for each fluid port | |
| Real[nPorts] | pTriCri | Trigger to check if medium exceeds critical pressure | |
| AixLib.Fluid.Sensors.MassFlowRate[nPorts] | senMasFlo | Mass flow sensors | |
| AixLib.Fluid.Sensors.Pressure[nPorts] | senPre | Pressure sensors | |
| AixLib.Fluid.Sensors.TemperatureTwoPort[nPorts] | senTem | Temperature sensors | |
| AixLib.Fluid.Sensors.SpecificEnthalpyTwoPort[nPorts] | senSpeEnt | Specific enthalpy sensors |
Revisions
- October 30, 2017, by Mirko Engelpracht:
First implementation (see issue 467).