Is this the correct approach to my problem? (UDF for object in motion)
I need to simulate a small object in a still pool of liquid. A force is exerted on the object pushing it downwards into the fluid a certain distance and eventually stops.
I am currently looking into writing a UDF for this motion with a dynamic mesh. Is this the correct approach? The UDF essentially defines the motion of the object correcT? |
I don't use dynamic mesh but I was simulated couple of moving objects. For example for moving heat source you must add for your equation "dx" element. In my case dx=v*t, where v is velocity and t is current time step. Now you need to put that into your equation:
original equation - l=(p/a)*pow(2,x) with dx l=(p/a)*pow(2,(x+dx)); That is of course example You must adapt that for your case. |
Quote:
You didn't use a dynamic mesh? Wouldn't this result in an inaccurate mesh when simulating the movement? What equation do you mean? From what I can tell FLUENT only allows very simple movement in the boundary condition settings without coding a UDF |
Quote:
Quote:
|
Quote:
Any idea where I can learn how to write a udf for motion? The tutorials from abyss fluent seem to be of little use. |
I've learn it from this and other CFD forums. Youtube contains some helpful videos too. That take some time but there is no other way. If you know how to write simple C or C++ code you should learn UDF's quite fast. You must also be familiar with problem you want to solve. Equations which are included in UDF must be write properly. Additional options (like move or smth like that) must be done with precautions. To 'move' something there is often only one condition - to add some time dependent variable to equation.
|
All times are GMT -4. The time now is 02:50. |