TAGGED: bug, dynamic-mesh
-
-
November 24, 2023 at 11:34 am
Thodorisdm
SubscriberHello,Â
Â
I am running a dynamic mesh problem. The walls are having a sinusoidal motion and the layering method is employed. When I run the case for a frquency of 1Hz it runs normally. When I increase to 20Hz, the mesh is not moving (in the preview mesh at every timestep I have the same volumes). When I am then checking my dynamic zones, every rigid body zone has a nan y-coordinate in the cg definition. Is it a bug?
-
November 24, 2023 at 1:46 pm
Federico
Ansys EmployeeÂ
Hello,Â
did you adjust your time step size accordingly when changing the frequency?Â
Also, mesh preview will deform the mesh, hence you will need to re-read the case to a previous state with undeformed mesh. To a Mesh Check and make sure the CG coordinates are valid before you initialize the motion.
Â
-
November 24, 2023 at 1:50 pm
Thodorisdm
SubscriberYes everything has been adjusted. If my timestep was not adjusted, I think I would have a message for negative volumes, no?
-
November 24, 2023 at 3:50 pm
Federico
Ansys EmployeeYes and no, depending on what your ymotion UDF does, time step size can bring in other issues as well.
As per my previous comment, do a mesh check prior to doing a Preview of Mesh Motion. Otherwise, you may share your UDF code here to give us more information.
-
-
November 24, 2023 at 3:59 pm
Thodorisdm
SubscriberI always check the mesh prior to the preview of the mesh motion. Hereby my UDF. Always works for frequency 1-5 but not for larger.Â#include "udf.h"Â#define amplitude 0.01#define frequency 10ÂDEFINE_CG_MOTION(ymotion,dt,vel,omega,time,dtime){real vmax;real Tper;ÂÂTper = 1/frequency;vmax = (amplitude * 2*M_PI) / Tper;vel[1] = vmax*(cos(2 * M_PI * time / Tper));} -
November 24, 2023 at 4:06 pm
Federico
Ansys Employeewhat is your dt for this case with 10Hz?
-
November 24, 2023 at 4:09 pm
Thodorisdm
Subscriberdt = 4.7 e-4 sec. Ideal height on the stationary zones to calculate the split and compression is 8e-4 m. and the real height of my mesh there is 6e-4 m .
-
November 24, 2023 at 4:36 pm
Federico
Ansys EmployeeOk, all your DM settings appear to be ok.Â
However, Tper appears to be an integer division, which results in 0. Can you try with Tper = 1.0/frequency ?
-
-
November 24, 2023 at 4:46 pm
Thodorisdm
Subscriberyes, that solves everything! Thank you!
-
- The topic ‘Dynamic mesh-nan in cg definition’ is closed to new replies.
-
2923
-
970
-
852
-
599
-
591
© 2025 Copyright ANSYS, Inc. All rights reserved.