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 tank sloshing

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By puneetnema

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 21, 2013, 01:30
Post udf for tank sloshing
  #1
New Member
 
Puneet
Join Date: Sep 2013
Posts: 14
Rep Power: 12
puneetnema is on a distinguished road
hii
i have written udf for sinusoidal wall movement given to a 2-d rectangular tank of dimension (3*3),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;
}

plz help me
Mike Romeo likes this.
puneetnema is offline   Reply With Quote

Old   February 23, 2014, 10:31
Smile Fuel Tank Sloshing
  #2
New Member
 
Join Date: Feb 2014
Posts: 3
Rep Power: 12
Mike Romeo is on a distinguished road
Hi Everybody

I have same problem too.
I want to solve Fuel Tank Sloshing with fluent tutorial, but when I follow tutorial steps, at the end, after run calculation, "fluid doesn't move!" Would you help me?
I think I should write zone motion UDF, isn't it ? Do I need ON dynamic mesh ?
How can move the fluid (kerosene) in tank ??

Thanks in advance
Mike Romeo is offline   Reply With Quote

Reply


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 00:11
UDF for sloshing Alamedda FLUENT 1 November 13, 2013 01:29
Using DEFINE_ZONE_MOTION udf to study sloshing in lateral excitations Tamsu Fluent UDF and Scheme Programming 3 October 20, 2013 17:14
UDF for Sloshing re_m1987 Fluent UDF and Scheme Programming 0 August 18, 2013 06:52
Udf for sloshing problem D.Martelli Fluent UDF and Scheme Programming 0 December 9, 2009 11:21


All times are GMT -4. The time now is 21:51.