CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   wave in tank (http://www.cfd-online.com/Forums/fluent-udf/117565-wave-tank.html)

M.Magdy May 10, 2013 14:27

wave in tank
 
hi,
I'm trying to simulate wave in tank
the udf I'm using for the moving wall
apparently there some thing wrong with it because the wall moves in one direction and doesn't return back

#include "udf.h"
DEFINE_CG_MOTION(wave, dt, cg_vel, cg_omega, time, dtime)
{
cg_vel[0] = ((0.02)*(cos((80)*(CURRENT_TIME))));
cg_vel[1] = 0.0;
cg_vel[2] = 0.0;

cg_omega[0] = 0.0;
cg_omega[1] = 0.0;
cg_omega[2] = 0.0;

}

and if any one could tell me what is the different between this udf and that one.
#include "udf.h"
DEFINE_CG_MOTION(wave, dt, cg_vel, cg_omega, time, dtime)
{
cg_vel[0] = ((0.02)*(cos((80)*(t))));
cg_vel[1] = 0.0;
cg_vel[2] = 0.0;

cg_omega[0] = 0.0;
cg_omega[1] = 0.0;
cg_omega[2] = 0.0;

}
Thanks,

oj.bulmer May 11, 2013 09:56

Why don't you try UDF forum?
http://www.cfd-online.com/Forums/fluent-udf/

OJ


All times are GMT -4. The time now is 16:35.