Ansys Learning Forum › Forums › Discuss Simulation › Fluids › Finding Lift force in CG motion UDF › Reply To: Finding Lift force in CG motion UDF
Hi, thanks for replying. this is the latest UDF I am using,
The problem is, if i use the vel[1], the lift force goes very high, so does the velocity. This makes the airfoil go outside domain and it creates floating point exception error. If I dont use the vel[1], and I print the lift force using Message, it shows correct lift value.
What I need is, change the location of the airfoil based on the lift force. If there is any other way to give it a y-displacement it is also ok. I am giving it a flapping motion, which generates various lift force based on time and I need the latest lift force to update the airfoil location before going to next time step.