CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   Looking for UDF files of the tutorial "Simulation of Wave Generation in a Tank" (http://www.cfd-online.com/Forums/fluent-udf/81320-looking-udf-files-tutorial-simulation-wave-generation-tank.html)

 seucj October 23, 2010 03:33

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

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

 minhaj_iut February 14, 2011 06:06

UDF files

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

 82.hosein@gmail.com April 8, 2013 01:48

Libudf.c

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

 Amir1 September 15, 2014 14:33

hi guys,

Can you send me the UDF file plz?

Thanks, Amir

wave_generation_udf

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)));
}

 Amir1 September 30, 2014 13:08

Thanks a lot. Best, Amir

 Engr_AhsanBaig June 6, 2015 03:08

Numerical Values Means in UDF

Quote:
 Originally Posted by adi.ptb (Post 511894) 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?

 Engr_AhsanBaig June 6, 2015 03:45

UDF of Simulation of Wave Generation in a Tank

Kindly elaborate me this udf posted by adi. I want to know about the function so that i can put my own numeric values.

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

 engrmansoor2534 August 5, 2015 02:41

Quote:
 Originally Posted by adi.ptb (Post 551876) 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

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,

 engrmansoor2534 August 5, 2015 03:40

thank you Adi... I am working on it and will get back to you If I needed any assistance.
Regards

 like.no.other August 21, 2015 05:52

1 Attachment(s)
Hi seucj

UDF is attached

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