modelTwoWayValveTable
Two way valve with nonlinear opening characteristics based on a table
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
Test model for a two way valve in which a table is used to specify the opening characteristics. The valve has the following opening characteristics, which is taken from a test case of the IEA EBC Annex 60 project.
| y | 0 | 0.1667 | 0.3333 | 0.5 | 0.6667 | 1 |
| Kv | 0 | 0.19 | 0.35 | 0.45 | 0.5 | 0.65 |
The Kv value is the volume flow rate in m3/h at a pressure difference of 1 bar. Hence, the Kv value of the fully open valve is Kv=0.65.
Plotting the variables kv.y versus y.y shows that the valve
reproduces the Kv values shown in the above table.
The parameter filterOpening is set to false,
as this model is used to plot the flow at different opening signals
without taking into account the travel time of the actuator.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Data.Generic | datVal | Valve characteristics |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.Ramp | y | Control signal | |
| Buildings.Fluid.Sources.Boundary_pT | sou | Boundary condition for flow source | |
| Buildings.Fluid.Sources.Boundary_pT | sin | Boundary condition for flow sink | |
| Valves.TwoWayTable | valTab | Valve model with opening characteristics based on a table | |
| Modelica.Blocks.Math.UnitConversions.To_bar | to_bar | ||
| Sensors.RelativePressure | senRelPre | Pressure differential sensor | |
| Sensors.VolumeFlowRate | senVolFlo | Volume flow rate sensor | |
| Modelica.Blocks.Math.Sqrt | sqrt1 | ||
| Modelica.Blocks.Math.Gain | to_m3_h | Conversion to m3/h | |
| Modelica.Blocks.Math.Division | kv | Kv-value |
Contents
| Name | Description |
|---|---|
| Medium |
Revisions
-
August 12, 2014 by Michael Wetter:
Addedparameterkeyword todatVal, as this is needed to asssigndatValto a parameter in the instancevalTab. This also avoids an error in OpenModelica. -
April 2, 2014 by Michael Wetter:
First implementation.