modelPartialIsenthalpicExpansionValve

Base model for all isenthalpic expansion valves

Extends from BaseClasses.PartialExpansionValve (Base model for all expansion valve models).

Information

This is a base model for simple isenthalpic expansion valves that are used, for example, in close-loop systems like heat pumps or chillers. This model inherits from AixLib.Fluid.Actuators.Valves.ExpansionValves.BaseClasses.PartialExpansionValve and, hence, please check out the PartialExpansionValve model if detailed information is required about the modelling approach.

Within this base model, the following two equations are implemented:

  • port_b.h_outflow = inStrem(port_a.h_outflow) for flow in design direction.
  • port_a.h_outflow = inStrem(port_b.h_outflow) for flow in reverse direction.

Parameters

TypeNameDefaultDescription
Geometry
Modelica.Units.SI.AreaAVal (from PartialExpansionValve)2.5e-6Cross-sectional area of the valve when it is fully opened
Modelica.Units.SI.DiameterdInlPip (from PartialExpansionValve)7.5e-3Diameter of the pipe at valve's inlet
Transient behaviour
BooleanuseInpFil (from PartialExpansionValve)true= true, if transient behaviour of valve opening or closing is computed
Modelica.Units.SI.TimerisTim (from PartialExpansionValve)0.5Time until valve opening reaches 99.6 % of its set value
Flow Coefficient
Utilities.Types.CalcProccalcProc (from PartialExpansionValve)Utilities.Types.CalcProc.nominalChose predefined calculation method for flow coefficient
Flow Coefficient › Nominal calculation
Modelica.Units.SI.MassFlowRatemFlowNom (from PartialExpansionValve)m_flow_nominalMass flow at nominal conditions
Modelica.Units.SI.PressureDifferencedpNom (from PartialExpansionValve)15e5Pressure drop at nominal conditions
Assumptions
BooleanallowFlowReversal (from PartialTwoPort)true= false to simplify equations, assuming, but not enforcing, no flow reversal
Advanced
Modelica.Units.SI.PressureDifferencedp_start (from PartialTwoPortTransport)0Guess value of dp = port_a.p - port_b.p
Medium.MassFlowRatem_flow_start (from PartialTwoPortTransport)0Guess value of m_flow = port_a.m_flow
Medium.MassFlowRatem_flow_small (from PartialTwoPortTransport)Small mass flow rate for regularization of zero flow
Medium.MassFlowRatem_flow_nominal (from PartialExpansionValve)0.1Nominal mass flow rate
Advanced › Diagnostics
Booleanshow_T (from PartialTwoPortTransport)true= true, if temperatures at port_a and port_b are computed
Booleanshow_V_flow (from PartialTwoPortTransport)true= true, if volume flow rate at inflowing port is computed
Booleanshow_flow_coefficient (from PartialExpansionValve)true= true, if flow coefficient model is computed
Booleanshow_staInl (from PartialExpansionValve)true= true, if thermodynamic state at valve's inlet is computed
Booleanshow_staOut (from PartialExpansionValve)false= true, if thermodynamic state at valve's outlet is computed

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_a (from PartialTwoPort)Fluid connector a (positive design flow direction is from port_a to port_b)
Modelica.Fluid.Interfaces.FluidPort_bport_b (from PartialTwoPort)Fluid connector b (positive design flow direction is from port_a to port_b)
Modelica.Blocks.Interfaces.RealInputmanVarVal (from PartialExpansionValve)Prescribed expansion valve's opening
Modelica.Blocks.Interfaces.RealOutputcurManVarVal (from PartialExpansionValve)Current expansion valve's opening

Components

TypeNameDefaultDescription
Medium.MassFlowRatem_flow (from PartialTwoPortTransport)Mass flow rate in design flow direction
Modelica.Units.SI.PressureDifferencedp (from PartialTwoPortTransport)Pressure difference between port_a and port_b (= port_a.p - port_b.p)
Modelica.Units.SI.VolumeFlowRateV_flow (from PartialTwoPortTransport)m_flow/Modelica.Fluid.Utilities.regStep(m_flow, Medium.density(Medium.setState_phX(p = port_a.p, h = inStream(port_a.h_outflow), X = inStream(port_a.Xi_outflow))), Medium.density(Medium.setState_phX(p = port_b.p, h = inStream(port_b.h_outflow), X = inStream(port_b.Xi_outflow))), m_flow_small)Volume flow rate at inflowing port (positive when flow from port_a to port_b)
Medium.Temperatureport_a_T (from PartialTwoPortTransport)Modelica.Fluid.Utilities.regStep(port_a.m_flow, Medium.temperature(Medium.setState_phX(p = port_a.p, h = inStream(port_a.h_outflow), X = inStream(port_a.Xi_outflow))), Medium.temperature(Medium.setState_phX(port_a.p, port_a.h_outflow, port_a.Xi_outflow)), m_flow_small)Temperature close to port_a, if show_T = true
Medium.Temperatureport_b_T (from PartialTwoPortTransport)Modelica.Fluid.Utilities.regStep(port_b.m_flow, Medium.temperature(Medium.setState_phX(p = port_b.p, h = inStream(port_b.h_outflow), X = inStream(port_b.Xi_outflow))), Medium.temperature(Medium.setState_phX(port_b.p, port_b.h_outflow, port_b.Xi_outflow)), m_flow_small)Temperature close to port_b, if show_T = true
Medium.ThermodynamicStatestaInl (from PartialExpansionValve)Thermodynamic state of the fluid at inlet condtions
Medium.ThermodynamicStatestaOut (from PartialExpansionValve)Thermodynamic state of the fluid at outlet condtions
FlowCoefficientflowCoefficient (from PartialExpansionValve)Instance of model 'flow coefficient'
RealC (from PartialExpansionValve)Flow coefficient used to calculate mass flow and pressure drop
Modelica.Blocks.Continuous.FilterfilterOpening (from PartialExpansionValve)Second order filter to approximate valve opening or closing time
Modelica.Blocks.Routing.RealPassThroughopeningThrough (from PartialExpansionValve)Dummy passing through of opening signal to allow usage of filter

Revisions

  • October 16, 2017, by Mirko Engelpracht, Christian Vering:
    First implementation (see issue 457).