Rob
Ansys Employee

Have a look at AQWA and Fluent's 6DOF functions. There are tutorials and/or documentation covering both approaches and codes.