Entrapped air influence in hydraulic transients