SMS: Design of linear drainage systems