modelSimpleValve
Simple valve model for calculating a mass flow rate out of a given pressure difference, linear pressure loss, simple fluid ports
Information
Purpose of model
A simple model of a valve with two fluid ports. The pressure loss is dependent on the opening of the valve. The opening of the valve is defined by a Real Input with values between 0 and 1. The pressure loss over the pipe can be influenced by changing the parameters m_flow_nom or delta_p_nom.
Level of detail, physical effects considered, and physical insight
L2 (defined in the CodingConventions)
- static mass balance
- constant fluid properties
- static energy balance, isenthalp
- linear pressure loss depending on the opening of the valve
Interfaces
Governing Equations
m_flow = OpeningValveIn * m_flow_nom / delta_p_nom * (inlet.p - outlet.p)
References
The model was used and verified in the following publication:
[1] Westphal, J.; Brunnemann, J.; Speerforck, A.; Enabling the dynamic simulation of an unaggregated, meshed district heating network with several thousand substations;Energy; 2025
Version History
Model was inserted by Jan Westphal (j.westphal@tuhh.de) August 2025
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Pressure | delta_p_nom | Nominal pressure drop in the valve | |
| Real | OpeningValve | 0.2 | Opening of the valve between 0 and 1 (unused) |
| SI.MassFlowRate | m_flow_nom | 1 | Nominal mass flow rate of the water |
| Boolean | useValveInput | true | |
| Boolean | checkValve | false |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.Basics.Interfaces.Thermal.FluidPortIn_simple | inlet | ||
| TransiEnt.Basics.Interfaces.Thermal.FluidPortOut_simple | outlet | ||
| Modelica.Blocks.Interfaces.RealInput | OpeningValveIn |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.MassFlowRate | m_flow |