Ansys Employee
If you are using global variables in a file like this, it's best to make them staticstatic double my_tube_mass, my_tube_stiff, my_tube_length, my_tube_damping;nBut that all looks fine otherwise. There must be something else happening with your my_tube_ variables that's causing the issue.nBe careful about parallel UDFs, treat DEFINE_CG_MOTION UDFs as if they are only run on the compute nodes.nAlso putting these lines at the top of each DEFINE_CG_MOTION UDF is advised:nif (!Data_Valid_P())n {n   return;n }nnn