Numerical calculation of the flow around sails