In the more general case, channels with non-uniform non-circular cross-sectional area, such as the Tesla valve, the hydraulic diameter is defined as:
where
: is the total wetted volume of the channel,
: is the total wetted surface area.
This definition is reduced to   for uniform non-circular cross-section  channels, and   for circular pipes.