modelValvePartial

General control valve model

Extends from ValveBase (General valve model).

Information

It is the base model for control valves, and extends the ValveBase model. It adds the following parameters for configuration:
  • parameter Boolean isCompressibleFlow = false. In order to specify the type of flow to consider. If it is made true the flow will be always considered as adiabatic.
  • parameter Boolean isLinear = true. To specify the valve characteristics. If made false, the valve will be considered as isopercentual.
  • parameter Boolean useFixedAperture = true. If true, the aperture of the valve will be fixed to the value entered manually at the aperture parameter. Otherwise the aperture will be taken from the RealInput connector Opening, making possible the calculation of the aperture outside of the model.
  • parameter Real aperture = 1.0. The fraction of aperture of the valve used if useFixedAperture = true.
The following variables are also defined:
  • SI.Area KvFlow. The acting Kv of the valve taking into account its aperture, different from the nominal Kv.
  • The conditional connector Modelica.Blocks.Interfaces.RealInput Opening, conditioned to useFixedAperture=false. In order to receive the valve aperture by connexion.
  • The protected connector Modelica.Blocks.Interfaces.RealInput Aperture.
The implementation of the Aperture connector is done in the standard way: The connectors Opening and Aperture are connected, but if useFixedAperture is made true, the Opening connector disappears, and also the connection. And the equation Aperture=aperture (reading the manual entered value) is activated.
There is also an equation relating the Kv, KvFlow and Aperture, taking into account the selected characteristic of the valve.
And an equation relating flow with KvFlow and differential pressure, if Aperture>0. Otherwise the flow is made equal to 0.

Parameters

TypeNameDefaultDescription
Ports links
BooleanuseElevDifference (from TwoFluidPorts)trueintroduces, or not, an equation for the ports elevation. Use only in one connector
FreeFluids.Types.ElevationOptionelevCalcMethod (from TwoFluidPorts)FreeFluids.Types.ElevationOption.differentialif useElevDifference==true, selects the equation to use: differential, or absolute for PortB
Modelica.Units.SI.LengthelevDifference (from TwoFluidPorts)0.0used only if previously selected. Positive if PortB higher than PortA
Modelica.Units.SI.LengthportBelevation (from TwoFluidPorts)0.0used only if previously selected.
BooleancalcEnthalpyDifference (from TwoFluidPorts)trueif true, will calculate the enthalpy difference between ports. Use only in one connector
BooleanpassComposition (from TwoFluidPorts)trueif true, the equation PortA.X=PortB.X will be activated
Flow
FreeFluids.Types.ValveFixOptionfix (from ValveBase)FreeFluids.Types.ValveFixOption.fixKvselect the value to fix: Kv, pressure drop, or flow
Modelica.Units.SI.AreafixedKv (from ValveBase)1.0Kv value if it is fixed
Modelica.Units.SI.PressureDifferencefixedDP (from ValveBase)-0.5e5negative if PortB.P<PortA.P
Modelica.Units.SI.MassFlowRatefixedFlow (from ValveBase)1.0fixed mass flow to maintain at Port A. Possitive if flow is in
BooleanisCompressibleFlowfalseif compressible, it will be treated always as adiabatic
BooleanisLineartrueIf true, linear characteristic is applied, otherwise isoporcentual
BooleanuseFixedAperturetrueif true the aperture parameter is used. Otherwise aperture is supplied by the connector
Realaperture1.0maximum just 1 valve should be closed (aperture=0) in a line

Connectors

TypeNameDefaultDescription
FreeFluids.Interfaces.FluidPortAPortA (from TwoFluidPorts)
FreeFluids.Interfaces.FluidPortBPortB (from TwoFluidPorts)
Modelica.Blocks.Interfaces.RealInputOpening

Components

TypeNameDefaultDescription
Modelica.Units.SI.SpecificEnthalpyHdiff (from TwoFluidPorts)specific enthalpy difference: Port B - Port A
Modelica.Units.SI.PressureDifferencePdiff (from TwoFluidPorts)pressure difference: Port B - Port A
Modelica.Units.SI.AreaKv (from ValveBase)
Modelica.Units.SI.AreaCv (from ValveBase)
Modelica.Units.SI.VolumeFlowRateQ (from ValveBase)
Medium.ThermodynamicStateState (from ValveBase)
Medium.DensityRho (from ValveBase)
Medium.TemperatureT (from ValveBase)Temperature
SI.AreaKvFlowKv at actual aperture