modelMCV

Flow rate control valve

Extends from ThermofluidStream.Interfaces.SISOFlow (Base Model with basic flow eqautions for SISO).

Information

This component can be used to emulate a mass- or volume-flow regulated valve, depending on its mode.

The mass- or volume-flow-setpoint can be set or given by a real input signal, and the valve tries to enforce a PT1- dynamic on this setpoint, within its pressure limits. The valve will not create pressure, or let the outlet pressure drop below p_min. To avoid this, the internally integrated pressure-drop is clipped. If it is clipped and hence the setpoint cannot be reached, an optional output leaves its "zero" value and a visual warning is shown in the form of a red circle on the icon.

Documentation of the used equations:

Parameters

TypeNameDefaultDescription
StringinstanceName (from DropOfCommonsPlus)getInstanceName()Instance name
SI.TimeTC0.1Time constant of setpoint dynamic
BooleanenableClippingOutputfalse= true, if clippingOutput is enabled
BooleandisplayMmode == ThermofluidStream.FlowControl.Internal.Types.MassflowControlValveMode.mass_flow
BooleandisplayVmode == ThermofluidStream.FlowControl.Internal.Types.MassflowControlValveMode.volume_flow
StringdisplayStringif displayM then "m_flow = %massFlow_set_par" elseif displayV then "V_flow = %volumeFlow_set_par" else "error"
SI.Pressureeps1Threshold for visual warning
Layout
BooleandisplayInstanceName (from DropOfCommonsPlus)dropOfCommons.displayInstanceNames= true, if instance name is displayed
BooleandisplayParameters (from DropOfCommonsPlus)dropOfCommons.displayParameters= true, if displaying parameters is enabled
Advanced
BooleanconsiderInertance (from SISOFlow)dropOfCommons.considerInertance=true, if transient momentum (inertance) term is considered; disable only for advanced use
Utilities.Units.InertanceL (from SISOFlow)dropOfCommons.LInertance
StateSelectm_flowStateSelect (from SISOFlow)StateSelect.defaultState selection for mass flow rate
Booleanclip_p_out (from SISOFlow)= false, if dr_corr=0 (correction of inertial pressure difference)
Medium.AbsolutePressurep_min (from SISOFlow)dropOfCommons.p_minMinimum steady-state output pressure
Realk1100Time constant factor
Realk2100Integrator windup factor
Medium.AbsolutePressurep_min_pardropOfCommons.p_minMinimal steady-state output pressure
Initialization › Mass flow rate
InitializationMethodsinitM_flow (from SISOFlow)ThermofluidStream.Utilities.Types.InitializationMethods.noneInitialization method for mass flow rate
SI.MassFlowRatem_flow_0 (from SISOFlow)0Initial value for mass flow rate
Utilities.Units.MassFlowAccelerationm_acceleration_0 (from SISOFlow)0Initial value for derivative of mass flow rate
Flow rate setpoint
ModemodeMode.mass_flowValve mode
BooleansetpointFromInputfalse= true, if flow rate input connector is enabled
SI.MassFlowRatemassFlow_set_par0Mass flow rate set value
SI.VolumeFlowRatevolumeFlow_set_par0Volume flow rate set value
Layout › Display parameters
BooleandisplayFlowRatetrue= true, if mass flow rate massFlow_set_par or volume flow rate volumeFlow_set_par is displayed

Connectors

TypeNameDefaultDescription
Inletinlet (from SISOFlow)
Outletoutlet (from SISOFlow)
Modelica.Blocks.Interfaces.RealInputsetpoint_varFlow rate input connector
Modelica.Blocks.Interfaces.RealOutputclippingOutput(dp - dp_int)

Components

TypeNameDefaultDescription
SI.MassFlowRatem_flow (from SISOFlow)inlet.m_flowMass flow rate
SI.Pressuredr_corr (from SISOFlow)Correction of inertial pressure difference
SI.Pressuredp (from SISOFlow)Pressure difference
Medium.AbsolutePressurep_in (from SISOFlow)Medium.pressure(inlet.state)Inlet pressure
Medium.SpecificEnthalpyh_in (from SISOFlow)Medium.specificEnthalpy(inlet.state)Inlet specific enthalpy
Medium.MassFraction[Medium.nXi]Xi_in (from SISOFlow)Medium.massFraction(inlet.state)Inlet mass fractions
Medium.AbsolutePressurep_out (from SISOFlow)Outlet pressure
Medium.SpecificEnthalpyh_out (from SISOFlow)Outlet specific enthalpy
Medium.MassFraction[Medium.nXi]Xi_out (from SISOFlow)Outlet mass fractions
Medium.Densityrho_inMedium.density(inlet.state)Inlet density
SI.VolumeFlowRateV_flowm_flow/rho_inInlet volume flow rate
SI.Pressuredp_intInitial pressure difference
SI.Pressuredp_corrk2*(dp - dp_int)Corrected pressure difference