modelMCV
Flow rate control valve
Extends from ThermofluidStream.Interfaces.SISOFlow.
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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Time | TC | 0.1 | Time constant of setpoint dynamic |
| Boolean | enableClippingOutput | false | = true, if clippingOutput is enabled |
| Boolean | displayM | mode == ThermofluidStream.FlowControl.Internal.Types.MassflowControlValveMode.mass_flow | |
| Boolean | displayV | mode == ThermofluidStream.FlowControl.Internal.Types.MassflowControlValveMode.volume_flow | |
| String | displayString | if displayM then "m_flow = %massFlow_set_par" elseif displayV then "V_flow = %volumeFlow_set_par" else "error" | |
| SI.Pressure | eps | 1 | Threshold for visual warning |
| Flow rate setpoint | |||
| Mode | mode | Mode.mass_flow | Valve mode |
| Boolean | setpointFromInput | false | = true, if flow rate input connector is enabled |
| SI.MassFlowRate | massFlow_set_par | 0 | Mass flow rate set value |
| SI.VolumeFlowRate | volumeFlow_set_par | 0 | Volume flow rate set value |
| Advanced | |||
| Real | k1 | 100 | Time constant factor |
| Real | k2 | 100 | Integrator windup factor |
| Medium.AbsolutePressure | p_min_par | dropOfCommons.p_min | Minimal steady-state output pressure |
| Layout › Display parameters | |||
| Boolean | displayFlowRate | true | = true, if mass flow rate massFlow_set_par or volume flow rate volumeFlow_set_par is displayed |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | setpoint_var | Flow rate input connector | |
| Modelica.Blocks.Interfaces.RealOutput | clippingOutput | (dp - dp_int) | |
| Medium.Density | rho_in | Medium.density(inlet.state) | Inlet density |
| SI.VolumeFlowRate | V_flow | m_flow/rho_in | Inlet volume flow rate |
| SI.Pressure | dp_int | Initial pressure difference | |
| SI.Pressure | dp_corr | k2*(dp - dp_int) | Corrected pressure difference |