modelValve
Simple valve
Extends from FluidHeatFlow.BaseClasses.TwoPort (Partial model of two port).
Information
Simple controlled valve.
Standard characteristic Kv=f (y) is given at standard conditions (dp0, rho0),
- either linear :
Kv/Kv1 = Kv0/Kv1 + (1-Kv0/Kv1) * y/Y1 - or exponential:
Kv/Kv1 = Kv0/Kv1 * exp[log(Kv1/Kv0) * y/Y1]
where:
Kv0 ... min. flow @ y = 0Y1 .... max. valve openingKv1 ... max. flow @ y = Y1
Flow resistance under real conditions is calculated by
V_flow**2 * rho / dp = Kv(y)**2 * rho0 / dp0
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| FluidHeatFlow.Media.Medium | medium (from TwoPort) | FluidHeatFlow.Media.Medium() | Medium in the component |
| SI.Mass | m (from TwoPort) | Mass of medium | |
| SI.Temperature | T0 (from TwoPort) | Initial temperature of medium | |
| Boolean | T0fixed (from TwoPort) | false | Initial temperature guess value or fixed |
| Real | tapT (from TwoPort) | 1 | Defines temperature of heatPort between inlet and outlet temperature |
| Real | frictionLoss | Part of friction losses fed to medium | |
| Standard characteristic | |||
| Boolean | LinearCharacteristic | Type of characteristic | |
| Real | y1 | Max. valve opening | |
| SI.VolumeFlowRate | Kv1 | Max. flow @ y = y1 | |
| Real | kv0 | Leakage flow / max.flow @ y = 0 | |
| SI.Pressure | dp0 | Standard pressure drop | |
| SI.Density | rho0 | Standard medium's density | |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| FluidHeatFlow.Interfaces.FlowPort_a | flowPort_a (from TwoPort) | ||
| FluidHeatFlow.Interfaces.FlowPort_b | flowPort_b (from TwoPort) | ||
| Modelica.Blocks.Interfaces.RealInput | y |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Pressure | dp (from TwoPort) | Pressure drop a->b | |
| SI.VolumeFlowRate | V_flow (from TwoPort) | Volume flow a->b | |
| SI.HeatFlowRate | Q_flow (from TwoPort) | Heat exchange with ambient | |
| SI.Temperature | T (from TwoPort) | Outlet temperature of medium | |
| SI.Temperature | T_a (from TwoPort) | Temperature at flowPort_a | |
| SI.Temperature | T_b (from TwoPort) | Temperature at flowPort_b | |
| SI.TemperatureDifference | dT (from TwoPort) | Temperature increase of coolant in flow direction | |
| SI.Temperature | T_q (from TwoPort) | Temperature relevant for heat exchange with ambient |