An improved cavitation model with thermodynamic effect and multiple cavitation regimes