CSarbitrary-class: CSarbitrary Class

CSarbitrary-classR Documentation

CSarbitrary Class

Description

Defines a cross-section class with arbitrary geometry for hydraulic calculations. For single open channels only, avoid geometries with multiple channels.

Slots

x

A numeric vector of x-coordinates [m].

z

A numeric vector of z-coordinates [m].

xb_l

x-coordinate of the left bank bottom [m].

xb_r

x-coordinate of the right bank bottom [m].

kSt_B

Roughness of the channel bed [m^(1/3)/s].

kSt_l

Roughness of the left bank [m^(1/3)/s].

kSt_r

Roughness of the right bank [m^(1/3)/s].

Examples

# Define sample cross-section data
x <- c(0, 4, 9, 13)
z <- c(2, 0, 0, 2)
cs <- new("CSarbitrary", x = x, z = z, xb_l = 4, xb_r = 9,
          kSt_B = 35, kSt_l = 45, kSt_r = 45)

hydReng documentation built on April 4, 2025, 1:57 a.m.