def re_rect(FlowRate, Width, DistCenter, Nu, openchannel):
    """Return the Reynolds Number for a rectangular channel."""
    #Checking input validity - inputs not checked here are checked by
    #functions this function calls.
    ut.check_range([FlowRate, ">0", "Flow rate"], [Nu, ">0", "Nu"])
    return (4 * FlowRate
            * radius_hydraulic(Width, DistCenter, openchannel).magnitude
            / (Width * DistCenter * Nu))
def re_rect ( FlowRate , Width , DistCenter , Nu , openchannel ) : ut . check_range ( [ FlowRate , ">0" , "Flow rate" ] , [ Nu , ">0" , "Nu" ] ) return ( 4 * FlowRate * radius_hydraulic ( Width , DistCenter , openchannel ) . magnitude / ( Width * DistCenter * Nu ) )
Return the Reynolds Number for a rectangular channel.