UDF /Dynamic Mesh Query
Hi all,
I am able to run the first tutorial on dynamic mesh i.e falling box example. The UDF given in example is 6dof_2d.c #include "udf.h" #define BMODULUS 2.2e9 #define rho_ref 1000.0 DEFINE_PROPERTY(water_density,c,t) { real rho; real p, dp, p_operating; p_operating = RP_Get_Real("operating-pressure"); p = C_P(c,t); dp = p-p_operating; rho = rho_ref/(1.0-dp/BMODULUS); return rho; } DEFINE_PROPERTY(water_speed_of_sound,c,t) { real a; real p, dp, p_operating; p_operating = RP_Get_Real ("operating-pressure"); p = C_P(c,t); dp = p-p_operating; a = (1.-dp/BMODULUS)*sqrt(BMODULUS/rho_ref); return a; } DEFINE_SDOF_PROPERTIES(test_box, prop, dt, time, dtime) { prop[SDOF_MASS] = 666.66; prop[SDOF_IXX] = 129.6296; prop[SDOF_IYY] = 111.1111; prop[SDOF_IZZ] = 129.6296; printf ("\n2d_test_box: Updated 6DOF properties"); } As my understanding its a Lagrange mesh which is being updated. My question is how this UDF works on updating the mesh and how its making the mesh dynamic? Also in the geometry i can see a thin mesh around the solid boundary,is it a boundary layer mesh,which interacts with the fluid mesh? What is the mechanics behind the dynamic mesh? I have gone through tutorial but mostly it talk about the steps to run the simulation. Thanks |
hi dear ..
i start working on this tutorial and i cant understand what is the relation for density and speed and sound. actually i cant understand the physics of problem. i would be very pleasure if u could answer my question kindly, tanks a lot |
udf for telescopic motion
Hi everyone,
I do not have good experience in ANSYS Fluent UDF coding, and am trying to impose a simple UDF to move an extended section of telescopic jack from a fixed main part. I want to move the jack extended section in x-direction in small time intervals (t) with some velocity (v). Could anyone please help me to write this UDF? I will be very thankful. Thanks |
I'm no UDF guru but here is my two cents on how it works:
The udf does not update the mesh, It only contains the information regarding how the mesh moves. In Fluent, you have to enable ''dynamic mesh'', and select your compiled UDF in the drop down menu list. this is where the magic happens. Fluent will load the udf information and start deforming or remeshing your domain... |
Thanks note
Thank you very much brother. I will go through the tutorial attached, and hopefully it will guide me for what i am aiming for. I have seen your other posts and got a lot of information from those posts.
Thank you. |
All times are GMT -4. The time now is 00:37. |