The flux distribution and hysteresis losses in highTc superconductors including viscous forces on flux lines