Calculations of motions and hydrodynamic pressures for a ship in waves