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

wave in tank

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2013, 15:27
Default wave in tank
  #1
New Member
 
Mohamed Magdy Mohamed
Join Date: Jan 2013
Posts: 9
Rep Power: 13
M.Magdy is on a distinguished road
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,
M.Magdy is offline   Reply With Quote

Old   May 11, 2013, 10:56
Default
  #2
Senior Member
 
OJ
Join Date: Apr 2012
Location: United Kindom
Posts: 473
Rep Power: 20
oj.bulmer will become famous soon enough
Why don't you try UDF forum?
http://www.cfd-online.com/Forums/fluent-udf/

OJ
oj.bulmer is offline   Reply With Quote

Reply

Tags
moving wall, tank, udf, wave


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
Pressure for wave height in an Water Wave Tank Cluain CFX 8 December 6, 2021 04:58
WAVE TANK star-ccm+ . wave height dampens. WHY? muhsin STAR-CCM+ 3 October 9, 2012 14:24
Wave tank dynamic mesh Doro FLUENT 0 October 27, 2011 05:39
active wave absorb(about wave tank) zhaochuangang ANSYS 0 September 22, 2010 03:29
Outflow boundary in a wave tank LaiJW FLOW-3D 1 April 28, 2009 11:45


All times are GMT -4. The time now is 18:24.