Separate Treatment of Attached and Detached Flow Regions in General Viscous Flows