Calculation of incompressible viscous flows in vessels with moving boundaries