New theoretical solution of the outflow process with a weir with complex shape