A butterfly valve is rotated in water while cavitation is calculated. The regions of cavitation can be easily identified.

ANSYS has many methods of allowing for moving boundaries within a CFD simulation.  The lower image shows one such technique in which a spherical region of the model slides past a stationary mesh.