CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

udf for rectangular tank sloshing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 25, 2013, 08:14
Post udf for rectangular tank sloshing
  #1
New Member
 
Puneet
Join Date: Sep 2013
Posts: 14
Rep Power: 13
puneetnema is on a distinguished road
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.
puneetnema is offline   Reply With Quote

Reply

Tags
ansys


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 12:03.