An extension of Prandtl's mixing length theory and application to internal and external flows /