Computational techniques and validation of 3-dimensional viscous/turbulent codes for internal flows