Modeling of viscoelastic turbulent flow in channel and pipe