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

Making wave udf in fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2013, 21:29
Default Making wave udf in fluent
  #1
New Member
 
sunggun
Join Date: Mar 2011
Posts: 3
Rep Power: 15
sunggun1212 is on a distinguished road
hello, everyone.
I have being tried to generate the wave in fluent using udf.
Also, I used the open channel fluent suggesting for generating wave.

It is not working to generate wave using both of them.
Actually, I don't know how I can set the inlet, outlet boundary.

Simplely, I made 2D boundary and set the boundary.

Inlet boundary is velociy inlet, x,y component -> udf
outlet boundary is pressure outlet
upper and bottom boundary is wall, no slip

is it correct?

If not, anyone would inform me to go ahead, how can the boundary setting is correct and tell me a tip, please.


x component udf,

#include <udf.h>
#include <metric.h>
DEFINE_PROFILE(udf_inlet_u,thread,position)
{
face_t f;
real yy,k,height,depth,omega,time,z[ND_ND];
h=2.6;
k=0.10507;
dep=10.6;
omega=0.787367;

begin_f_loop(f,thread)
{
time=RP_Get_Real("flow-time");
yy=z[1];
F_CENTROID(z,f,thread);
F_PROFILE(f,thread,position)=(h/2.*omega*(cosh(k*(dep+yy))/sinh(k*dep))*sin(omega*time));


end_f_loop(f,thread)
}

y component udf,

#include <udf.h>
#include <metric.h>
DEFINE_PROFILE(udf_inlet_u,thread,position)
{
face_t f;
real yy,k,height,depth,omega,time,z[ND_ND];
h=2.6;
k=0.10507;
dep=10.6;
omega=0.787367;

begin_f_loop(f,thread)
{
time=RP_Get_Real("flow-time");
yy=z[1];
F_CENTROID(z,f,thread);
F_PROFILE(f,thread,position) = -h/2.*omega*(sinh(k*(dep+yy))/sinh(k*dep))*sin(omega*time);
end_f_loop(f,thread)
}
sunggun1212 is offline   Reply With Quote

Old   January 19, 2014, 23:09
Default
  #2
New Member
 
danny
Join Date: Jan 2014
Posts: 1
Rep Power: 0
dnlrichy is on a distinguished road
hi,
im dealing with the same project . can u let me know if the udf you provided here worked . if not can u mail me the udf to dnlrichy@gmail.com , it would be very helpful for me.
thanks
dnlrichy is offline   Reply With Quote

Old   January 21, 2014, 03:54
Default
  #3
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22
vasava will become famous soon enough
Have you guys tried 'Open channel wave BC' in VOF? For using this condition you simply have to activate 'Open Channel Flow' and 'Open Channel Wave BC'. These options are available when you select 'Volume of Fluid' in 'Multiphase Model'. There is no need of UDF for generating waves.

Please look in to the tutorial titled 'Heave and Pitch Simulation of Ship hull moving
through head sea waves' for more help.
vasava is offline   Reply With Quote

Old   January 21, 2014, 03:56
Default
  #4
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22
vasava will become famous soon enough
I am not sure about these options in older versions of Fluent. These options are available in Fluent 13 and 14.
vasava is offline   Reply With Quote

Old   May 7, 2014, 01:00
Default
  #5
New Member
 
sani kamsah
Join Date: May 2014
Posts: 1
Rep Power: 0
sanikamsah is on a distinguished road
Dear Vasava,

I'm facing this problem to. Can u send me the file of mesh 'Heave and Pitch Simulation of Ship hull moving through head sea waves' at my email: sani_pirates@yahoo.com

i'm appreciate your help. Thank you.
sanikamsah is offline   Reply With Quote

Old   May 7, 2014, 07:45
Default
  #6
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22
vasava will become famous soon enough
The tutorial case is 850 MB zip file. I will see what I can do.
vasava is offline   Reply With Quote

Old   December 31, 2014, 07:48
Default
  #7
New Member
 
Nidhin R
Join Date: Dec 2014
Posts: 7
Rep Power: 11
Nidhin R is on a distinguished road
my project involve generation of wave in a tank. I am using fluent latest version which does have "Open Channel and Open Channel wave BC" as a part of "Volume of fluid model" However I am not sure about the case setup and is getting errors in the simulation. Can someone who has experience tell me how to go about. I also request people with the "Heave and Pitch Simulation of Ship hull moving through head sea waves" tutorial files to share it with me.
If some one have UDF for moving boundary wave generator do share that too.

email: nidhirajan91@gmail.com
Nidhin R is offline   Reply With Quote

Old   October 27, 2015, 10:52
Default
  #8
New Member
 
Join Date: Oct 2015
Posts: 1
Rep Power: 0
hafsa is on a distinguished road
Hi
Please can u let me know if the first Udf explained above works, if not i would like to have a copy of the new udf bouhrim.hafsa@gmail.com
best regards,
hafsa 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
UDF to record FLUENT Solver variables... mariachi Fluent UDF and Scheme Programming 11 September 24, 2019 00:07
UDF to record FLUENT solver variables... mariachi FLUENT 1 February 3, 2010 22:18
UDF in Fluent subha_meter Main CFD Forum 0 October 17, 2009 23:54
Compiling UDF in Fluent 12 jsm FLUENT 1 July 22, 2009 07:40
UDF of Zimont model in fluent Z Main CFD Forum 0 February 17, 2005 03:07


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