|
[Sponsors] |
June 29, 2017, 08:10 |
UDF Wall movement
|
#1 |
New Member
heru
Join Date: Jan 2016
Posts: 12
Rep Power: 10 |
Hi,
I want to move a wall under an harmonic movement in ANSYS Fluent. I am not able to move the wall in my related problem. Then I moved to the ansys tutorial "Fluent_MDM_14.5_WS04_UDF". There explain how to move a wall by using a UDF. Nonetheless I do exacly what the tutorial says but I do not get any kind of movement. Is anyone that know how move a wall or have already solved this problem? I attach part of the code provided by Ansys (It is no difficult) #include "udf.h" #include "math.h" #include "dynamesh_tools.h" DEFINE_CG_MOTION(object, dt, vel, omega, time, dtime) { /* reset velocities */ NV_S (vel, =, 0.0); NV_S (omega, =, 0.0); /* compute velocity formula */ vel[0]=0.47058*cos(2*M_PI*time); vel[1]=0.47058*sin(2*M_PI*time); omega[2]=15; printf("\n"); printf("\n x_velocity = %g \n",vel[0]); } |
|
June 30, 2017, 10:35 |
|
#2 |
New Member
heru
Join Date: Jan 2016
Posts: 12
Rep Power: 10 |
I found that the problem comes because I am using windows 10. In windows 7 it works
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for slip and moving wall | lichun Dong | FLUENT | 3 | March 26, 2014 05:37 |
wall boundary condition in UDF | ssamton | FLUENT | 0 | January 31, 2011 04:07 |
UDF for fluxes normal to a wall | Leverkin | FLUENT | 0 | December 10, 2007 13:04 |
udf: dimensionless wall coordinate | Chris | FLUENT | 0 | June 22, 2004 07:10 |
Wall movement due to pressure with UDF | Dimitrios | FLUENT | 2 | November 15, 2003 08:06 |