modelValveDesiredMassFlow_PT1

Simple valve with prescribed mass flow rate

Extends from TransiEnt.Basics.Icons.Valve.

Information

1. Purpose of model

This model represents a simple valve for real gases which ensures a given mass flow.

2. Level of detail, physical effects considered, and physical insight

This model works like an ideally controlled valve to ensure a given mass flow.

3. Limits of validity

This model is only valid for real gases.

4. Interfaces

gasPortIn: Inlet of the real gas

gasPortOut: Outlet of the real gas

m_flowDes: Input for the desired mass flow

5. Nomenclature

(no elements)

6. Governing Equations

(no remarks)

7. Remarks for Usage

Make sure that there is always a negative pressure gradient in the direction of the mass flow to ensure a physically possible use of the valve.

Via parameter 'useLeakageMassFlow' a small mass flow of 'm_flow_small' is always flowing through valve (to avoid Zero-Mass-Flow problems)

8. Validation

(no remarks)

9. References

(no remarks)

10. Version History

Model created by Carsten Bode (c.bode@tuhh.de) on Tue Apr 05 2016

Model modified by Oliver Schülting (oliver.schuelting@tuhh.de) on Nov 2018: added useLeakageMassFlow

Parameters

TypeNameDefaultDescription
Fundamental Definitions
TILMedia.VLEFluidTypes.BaseVLEFluidmediumsimCenter.gasModel1Medium used in the valve
BooleanhysteresisWithDelta_ptruetrue: hysteresis uses pressure difference, false: hysteresis uses inlet pressure
SI.PressureDifferenceDelta_p_low1e3Lower value for hysteresis with pressure difference
SI.PressureDifferenceDelta_p_high1e5Upper value for hyseteresis with pressure difference
SI.Pressurep_low1e5Lower value for hysteresis with inlet pressure
SI.Pressurep_high1.1e5Upper value for hyseteresis with inlet pressure
Numerical Stability
BooleanuseLeakageMassFlowfalseConstant leakage gas mass flow of 'm_flow_small' to avoid zero mass flow
SI.MassFlowRatem_flow_smallsimCenter.m_flow_smallleakage mass flow if useLeakageMassFlow=true
Summary
BooleanuseFluidModelsForSummaryfalseTrue, if fluid models shall be used for the summary

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.Gas.RealGasPortIngasPortIn
TransiEnt.Basics.Interfaces.Gas.RealGasPortOutgasPortOut
Modelica.Blocks.Interfaces.RealInputm_flowDesDesired mass flow

Components

TypeNameDefaultDescription
TransiEnt.SimCentersimCenter
Summarysummary
Modelica.Blocks.Continuous.TransferFunctiontransferFunction
Modelica.Blocks.Sources.RealExpressionrealExpression

Contents

NameDescription
Summaryprotected