Rob
Ansys Employee

Maybe read this  https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v231/en/flu_udf/flu_udf_DynamicMeshDEFINE.html%23flu_udf_sec_define_grid_motion    as it's the one I used. DEFINE_PROFILE is for properties on a boundary, so velocity, temperature etc and is nominally superseded by Expressions. 

If the built in compiler is returning a load of complaints it's usually a good idea to read these and fix them.