modelOpenChannel

Open channel model with optional spatial discretization

Extends from OpenHPL.Icons.OpenChannel (Open channel icon), OpenHPL.Interfaces.TwoContacts (Model of two connectors).

Information

Open Channel Model

Model for open channels (rivers, canals) suitable for run-of-river hydropower plants. The channel connects an upstream and downstream component via standard Contact connectors (pressure and mass flow rate).

Geometry

The channel is defined by its length L, width W, and the difference in bed elevations between inlet and outlet H. The bed slope is computed as H/L.

Governing Equations

The model is based on the momentum balance for incompressible flow:

$$ L\,\frac{\mathrm{d}\dot{m}}{\mathrm{d}t} = (p_\mathrm{i} - p_\mathrm{o})\,A + \rho\,g\,\Delta H\,A - F_\mathrm{f} $$

where A = W · h is the cross-sectional flow area and Ff is the friction force.

Friction

Friction is computed using Manning's equation adapted for a rectangular cross-section:

$$ F_\mathrm{f} = \rho\,g\,n^2\,v\,|v|\,L\,\frac{(W + 2h)^{4/3}}{(W\,h)^{4/3}} $$

where n is Manning's roughness coefficient.

Modes of Operation
  • Lumped mode (default): The channel is treated as a single control volume. The flow rate responds to the pressure difference between inlet and outlet connectors, gravity, and friction.
  • Sectional mode (useSections = true): The channel is divided into N sections. Each section maintains its own water depth via a continuity equation for the free surface. Inter-section flows are computed using Manning's equation with the local water surface slope. This captures water level variations along the channel.
Connectors

Inlet and outlet connectors carry pressure and mass flow rate. Connect upstream to the inlet i and downstream to the outlet o.

Parameters

TypeNameDefaultDescription
Geometry
SI.LengthL5000Channel length
SI.LengthW10Channel width
SI.LengthH10Bed elevation difference between inlet and outlet (positive = downhill inlet to outlet)
Friction
Realm_manning33Manning M (Strickler) coefficient M=1/n (typically 60-110 for steel, 30-60 for rock tunnels)
Booleanuse_ntrueIf true, use Mannings coefficient n (=1/M) instead of Manning's M (Strickler)
Realn_manning0.03Manning's n coefficient (typically 0.009-0.017 for steel/concrete, 0.017-0.030 for rock tunnels)
Discretization
BooleanuseSectionsfalseIf true, discretize the channel into N sections with varying water levels
IntegerN10Number of sections (only used when useSections = true)
Initialization
BooleanSteadyStatedata.SteadyStateIf true, starts in steady state
SI.VolumeFlowRateVdot_0data.Vdot_0Initial volume flow rate
SI.Heighth_02Initial water depth

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
DatadataUsing standard data set
SI.MassFlowRatemdotMass flow rate through the channel
SI.VolumeFlowRateVdotVolume flow rate
SI.VelocityvAverage water velocity
SI.Heighth_avgAverage water depth in the channel
SI.Positionh_avg_absh_avg + o.elevation.zAbsolute average water level
SI.Pressurep_iInlet pressure
SI.Pressurep_oOutlet pressure
SI.ForceF_fFriction force
SI.Height[if useSections then N else 0]h_secWater depth in each section
SI.Position[size(h_sec, 1)]h_sec_absh_sec .+ o.elevation.zAbsolute water level in each section
SI.Velocity[if useSections then N else 0]v_secVelocity in each section