|
[Sponsors] |
November 25, 2013, 08:14 |
udf for rectangular tank sloshing
|
#1 |
New Member
Puneet
Join Date: Sep 2013
Posts: 14
Rep Power: 13 |
yar plz somebody help me...once again i m posting the same problem
hii i have written udf for sinusoidal wall movement given to a 2-d rectangular tank of dimension (1.2*0.6),but after iteration it is not showing any results or movement in water phase. i have tried for different end time and taking time step size as 1e-5 and no. of time steps 1000,10000,100000 but for any case showing no result. attached udf. #include"udf.h" #define A 0.05 /* Amplitude=0.05m/s2*/ #define w 1.5 /*angular velocity*/ real AlnrX; DEFINE_ADJUST(Accl,domain) { real t; t=RP_Get_Real("flow-time); AlnrX=A*sin(w*t);/*SINUSOIDAL MOTION*/ printf("Time=%f\n,t); printf(Acceleration=%f\n",AlnrX); } DEFINE_SOURCE(xmom_source,cell.thread,ds,eqn) { double pos[ND_ND]; double rho; real source; C_CENTROID(pos,cell,thread); rho=C_R(cell,thread);/*DENSITY*/ ds[eqn]=0.0; source=-AlnrX*rho; /*momentum source term*/ return source; } Last edited by puneetnema; November 25, 2013 at 11:54. |
|
Tags |
ansys |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
water sloshing in oscillating tank (problem using udf Define_ZONE_MOTION) | Tamsu | Fluent UDF and Scheme Programming | 8 | November 24, 2021 01:11 |
udf for tank sloshing | puneetnema | Fluent UDF and Scheme Programming | 1 | February 23, 2014 11:31 |
Using DEFINE_ZONE_MOTION udf to study sloshing in lateral excitations | Tamsu | Fluent UDF and Scheme Programming | 3 | October 20, 2013 18:14 |
Tank sloshing in fluent diverging...need help | lostin4ever | FLUENT | 4 | February 24, 2010 08:20 |
Tank sloshing in fluent diverging...need help | lostin4ever | Main CFD Forum | 0 | November 11, 2009 05:26 |