The hydraulic diameter is a term for handling flow in non-circular tubes and channels. Using this term, one can calculate many things in the same way as for a round tube.
It is calculated from the cross-section and the wetted perimeter. The wetted perimeter includes all surfaces acted upon by shear stress from the fluid. As it is relevant for the viscous forces on the fluid, it is also relevant for the Reynolds number.