modelBaseValve

Simple hydraulic valve (base class)

Extends from OpenHPL.Interfaces.TwoContacts (Model of two connectors).

Information

This is a partial, simple model of hydraulic valve.  

This model is based on the energy balance of a valve.

  • Mass flow is equal at inflow and outflow
  • The head loss and pressure difference is proportional to square of velocity

Specifically:

$$ \Delta p \cdot f(\mathrm{opening}) = \nu \cdot | \nu | $$

The function f(opening) is expressed as:

$$ f(\mathrm{opening}) = \left( C_\mathrm{v} \cdot \mathrm{max}(\epsilon, u^\alpha)\right)^2 $$

When \(\alpha\) is 1, this implies a linear relation between closing and head loss.

The valve capacity can either be specified directly by the user by specifying C_v or it will be calculated from the nominal head H_n and nominal flow rate Vdot_n.

The valve efficiency is in per-unit values from 0 to 1, where 1 means that there are no losses in the valve. The valve power is defined as the product of the valve power and valve efficiency.

Besides hydraulic input and output, there is an input u for controlling the valve opening.

Parameters

TypeNameDefaultDescription
Nominal values
BooleanValveCapacitytrueIf checked, the valve capacity C_v should be specified, otherwise specify the nominal values (net head and flow rate at nominal opening)
RealC_v1Valve capacity
SI.HeightH_n100Nominal net head
SI.VolumeFlowRateVdot_n3Nominal volume flow rate
SI.PerUnitu_n1Nominal opening
Advanced › Closing law
Realalpha1Exponent of closing curve (if different from 1, the closing law will be non-linear)

Connectors

TypeNameDefaultDescription
Contact_ii (from TwoContacts)Inlet contact (positive design flow direction is from i to o)
Contact_oo (from TwoContacts)Outlet contact (positive design flow direction is from i to o)

Components

TypeNameDefaultDescription
Datadata (from TwoContacts)
SI.PressuredpPressure drop
SI.MassFlowRatemdotMass flow rate
SI.VolumeFlowRateVdotVolume flow rate