# Looking for UDF files of the tutorial "Simulation of Wave Generation in a Tank"

 Register Blogs Members List Search Today's Posts Mark Forums Read

 October 23, 2010, 03:33 Looking for UDF files of the tutorial "Simulation of Wave Generation in a Tank" #1 New Member   Chen Join Date: Oct 2010 Posts: 4 Rep Power: 6 hello i have a homework to simulate the liquid slosh in a tank, it's about Moving Wall BC, i have the tutorial "Simulation of Wave Generation in a Tank", but i can't find the files, especially the libudf.c. can someone help me? if you know where i can get it or you have. please help me out! my email seuchenjian@gmail.com. thanks again

 February 14, 2011, 06:06 UDF files #2 New Member   Md. Minhaj Alam Join Date: Sep 2010 Posts: 9 Rep Power: 7 Hi, Did you manage to get the UDF file for wave generation tank. I am also looking for it. Could you email me if you already get it. minhaj_iut@yahoo.com

 April 8, 2013, 01:48 Libudf.c #3 New Member   Abdol Hosein Nowruzi Join Date: Dec 2012 Posts: 1 Rep Power: 0 Hi, I am also a master engineer and I am really in need of this file. could you please do me a favor and send it to me? 82.hosein@gmail.com

 September 15, 2014, 14:33 #4 Member   Amir Join Date: Sep 2012 Posts: 44 Rep Power: 5 hi guys, Can you send me the UDF file plz? Thanks, Amir

 September 25, 2014, 11:25 wave_generation_udf #5 Member   ad Join Date: Apr 2014 Posts: 43 Rep Power: 3 hi,try this #include "udf.h" DEFINE_CG_MOTION(wave, dt, vel, omega, time, dtime) { vel[0]=(0.037098)*((1 - exp(-2.303*time))*7.7528*cos(7.7528*time) + ((2.303*exp(-2.303*time))*sin(7.7528*time))); }

 September 30, 2014, 13:08 #6 Member   Amir Join Date: Sep 2012 Posts: 44 Rep Power: 5 Thanks a lot. Best, Amir

June 6, 2015, 03:08
Numerical Values Means in UDF
#7
New Member

Mirza Ahsan Baig
Join Date: May 2015
Posts: 7
Rep Power: 2
Quote:
 Originally Posted by adi.ptb hi,try this #include "udf.h" DEFINE_CG_MOTION(wave, dt, vel, omega, time, dtime) { vel[0]=(0.037098)*((1 - exp(-2.303*time))*7.7528*cos(7.7528*time) + ((2.303*exp(-2.303*time))*sin(7.7528*time))); }
Can you explain what these numeric values represent in this udf?

 June 6, 2015, 03:45 UDF of Simulation of Wave Generation in a Tank #8 New Member   Mirza Ahsan Baig Join Date: May 2015 Posts: 7 Rep Power: 2 Kindly elaborate me this udf posted by adi. I want to know about the function so that i can put my own numeric values.

 June 24, 2015, 03:26 #9 Member   ad Join Date: Apr 2014 Posts: 43 Rep Power: 3 I dont think that its really matter what this number represent for,its only an example,u have to decide what profile you want to use for motion of the wall,for example you can use sine function or parabolic function for motion of the wall,u just have to modify it to suit your problem

August 5, 2015, 02:41
#10
New Member

Mansoor Ahmed
Join Date: Apr 2014
Location: Pakistan
Posts: 28
Rep Power: 3
Quote:
 Originally Posted by adi.ptb I dont think that its really matter what this number represent for,its only an example,u have to decide what profile you want to use for motion of the wall,for example you can use sine function or parabolic function for motion of the wall,u just have to modify it to suit your problem
I am trying to simulate peristaltic flow in a 2D channel. this includes a UDF which will propagate a sinusoidal wave at the channel wall as a result the wall deforms and accounts for the motion of fluid inside the channel. the problem is that I am not too good in C language I would highly appreciate if you can help me out in this matter.
thank you
Regards

 August 5, 2015, 02:47 #11 Member   ad Join Date: Apr 2014 Posts: 43 Rep Power: 3 I think you should better take a look at the Dynamic meshing in UDF manual, you can start from there, the structure is the same you just have to modify it to your desire,

 August 5, 2015, 03:40 #12 New Member   Mansoor Ahmed Join Date: Apr 2014 Location: Pakistan Posts: 28 Rep Power: 3 thank you Adi... I am working on it and will get back to you If I needed any assistance. Regards

August 21, 2015, 05:52
#13
Member

like.no.other
Join Date: Sep 2011
Posts: 35
Rep Power: 6
Hi seucj

UDF is attached
Attached Files
 wave.c (194 Bytes, 9 views)
__________________
www.CFDiran.ir