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

How to generate a wave in Fluent?

Register Blogs Community New Posts Updated Threads Search

Like Tree19Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2009, 03:09
Default How to generate a wave in Fluent?
  #1
Member
 
Join Date: Mar 2009
Posts: 43
Rep Power: 17
gholamghar is on a distinguished road
Hello
I want to generate a wave in Fluent.anybody knows how i should do this?
i have heard this should be done with UDF writing.is this right?
thanks
Attached Images
File Type: jpg before reaching to beach.JPG (3.2 KB, 597 views)
moodyspace and Ahmed Fakhrey like this.
gholamghar is offline   Reply With Quote

Old   March 20, 2009, 01:46
Default
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
Hello stranger,

Yes you should use UDF function, means write your own routine. Depends what kind of wave you need to generate. There is one of the tutorials online, I believe it is in student section... Let me check it online...

OK. I found one of the links, here it is, direct link to the PDF with tutorial.
http://willem.engen.nl/uni/fluent/do...ernal/wave.pdf

Hope it helps. If you have some more questions shoot, I'll try to help.

PS. What is a little bit strange, if you test the same routine in pure C, you will get ALMOST the same paddle displacement numerical values as those from Fluent C routine, but slightly, by a tiny bit off from the ones from original C... like 0.00001. Overall displacement plots overlap.
paka is offline   Reply With Quote

Old   November 27, 2009, 14:51
Default generate wave
  #3
New Member
 
Elahe
Join Date: Oct 2009
Posts: 21
Rep Power: 16
ekakavand is on a distinguished road
hi
this is a late answer but you can find it in this link:
http://www.fluent.com/software/sf_me...orial_wave.htm

and search (fluent tutorial generate wave in tank) you can find a pdf file that explain how you can solve your problem.

best regards,
elahe
Ahmed Fakhrey likes this.
ekakavand is offline   Reply With Quote

Old   December 25, 2009, 03:28
Default
  #4
New Member
 
Igor
Join Date: Nov 2009
Location: Saint-Petersburg
Posts: 8
Rep Power: 16
WSWGg is on a distinguished road
It's not necessary to define moving wall using UDF. Why???!!! Aren't you afraid of possible problems with your grid?!
Just define velocity components: horizontal and vertical - and water free level using UDF. I think it's simpler. If you need I can send you my UDF file.
Also, don't forget about wave reflection from outlet boundary because of using pressure-outlet boundary conditions.
WSWGg is offline   Reply With Quote

Old   December 28, 2009, 02:43
Default
  #5
New Member
 
Elahe
Join Date: Oct 2009
Posts: 21
Rep Power: 16
ekakavand is on a distinguished road
Hi WSWGg,

thank you for your attention,

do you mean i should patch water level in the first and introduce a periodic horizental velocity to fluent? do i undrestant right?

if not please explain it for me a little more,

can i get your udf file,too?

my email address : ekakavand@yahoo.com

all the best,
elahe
ekakavand is offline   Reply With Quote

Old   December 28, 2009, 04:01
Default
  #6
New Member
 
Igor
Join Date: Nov 2009
Location: Saint-Petersburg
Posts: 8
Rep Power: 16
WSWGg is on a distinguished road
Of course, you should patch water level in the first!
Ok, I'll do this, I'll send you my UDF, but after January 1st, ok?
I've got a little problems at the moment.
WSWGg is offline   Reply With Quote

Old   December 28, 2009, 06:03
Default
  #7
New Member
 
Elahe
Join Date: Oct 2009
Posts: 21
Rep Power: 16
ekakavand is on a distinguished road
Thank you so much WSWGg,

I await to receive your file.

all the best,
elahe
ekakavand is offline   Reply With Quote

Old   January 5, 2010, 06:17
Default
  #8
New Member
 
Waruna Arampath
Join Date: Jun 2009
Posts: 1
Rep Power: 0
arampath is on a distinguished road
Hi,
i am also try to simulate wave by introducing velocity inlet (linear theory)
and its work fine with me.
now i want to simulate (wave carry with mean current) but in this case i don't know how to set the boundary conditions.

any help would be highly appreciate
arampath is offline   Reply With Quote

Old   January 5, 2010, 07:43
Default
  #9
Member
 
novice
Join Date: Nov 2009
Posts: 33
Rep Power: 16
novice is on a distinguished road
Hi WSWGg,

Can you please send the UDF to me also. i want to define the velocity at the inlet using a UDF.

my email: call_madhu@yahoo.com

thanks in advance
novice is offline   Reply With Quote

Old   January 9, 2010, 16:51
Default
  #10
New Member
 
Elahe
Join Date: Oct 2009
Posts: 21
Rep Power: 16
ekakavand is on a distinguished road
Quote:
Originally Posted by WSWGg View Post
Of course, you should patch water level in the first!
Ok, I'll do this, I'll send you my UDF, but after January 1st, ok?
I've got a little problems at the moment.

hi WSWGg
i hope to be solved your problem,
could you please send me your udf or fluent file that you said about it.

all the best
elahe
ekakavand is offline   Reply With Quote

Old   January 11, 2010, 07:34
Default
  #11
New Member
 
Igor
Join Date: Nov 2009
Location: Saint-Petersburg
Posts: 8
Rep Power: 16
WSWGg is on a distinguished road
Arampath and Ekakavand, check your e-mails, I've just sent my UDF file, like had promised.
Novice, excuse me, but I don't understand you post. You simulated wave using linear wave theory making boundary conditions on velocity components on enter border, am I right? So, what's the problem?
WSWGg is offline   Reply With Quote

Old   March 9, 2010, 08:53
Default
  #12
New Member
 
Join Date: Mar 2010
Posts: 6
Rep Power: 16
mahbube is on a distinguished road
Hi
can anyone help me to write a UDF for the creation of a sinusoidal wave at the end of a model square tank(model basin)(2-D)?
thanks.
mahbube is offline   Reply With Quote

Old   March 9, 2010, 09:06
Default
  #13
New Member
 
Elahe
Join Date: Oct 2009
Posts: 21
Rep Power: 16
ekakavand is on a distinguished road
Quote:
Originally Posted by mahbube View Post
Hi
can anyone help me to write a UDF for the creation of a sinusoidal wave at the end of a model square tank(model basin)(2-D)?
thanks.
Hi

can you send me your email?
my email is here... you can see it.

best
elahe
ekakavand is offline   Reply With Quote

Old   March 13, 2010, 03:53
Default
  #14
New Member
 
Join Date: Mar 2010
Posts: 6
Rep Power: 16
mahbube is on a distinguished road
Quote:
Originally Posted by paka View Post
Hello stranger,

Yes you should use UDF function, means write your own routine. Depends what kind of wave you need to generate. There is one of the tutorials online, I believe it is in student section... Let me check it online...

OK. I found one of the links, here it is, direct link to the PDF with tutorial.
http://willem.engen.nl/uni/fluent/do...ernal/wave.pdf

Hope it helps. If you have some more questions shoot, I'll try to help.

PS. What is a little bit strange, if you test the same routine in pure C, you will get ALMOST the same paddle displacement numerical values as those from Fluent C routine, but slightly, by a tiny bit off from the ones from original C... like 0.00001. Overall displacement plots overlap.

hello paka
i have used udf(DEFINE-CG) for writing udf in the tutorial wave generation in a tank,but i dont know what to write vel?i dont know how to define vel for this waves?.

thanks for your advance.
Ahmed Fakhrey likes this.
mahbube is offline   Reply With Quote

Old   April 19, 2010, 04:05
Default Wave and breakwaters
  #15
New Member
 
gokhan
Join Date: Apr 2010
Posts: 4
Rep Power: 16
lordg is on a distinguished road
Quote:
Originally Posted by WSWGg View Post
Of course, you should patch water level in the first!
Ok, I'll do this, I'll send you my UDF, but after January 1st, ok?
I've got a little problems at the moment.
Hi everyone...
i am trying to simulate the turbulent waves and scouring in front of breakwaters...
the wave simulation works fine with the laminar flow option but when i switch to turbulent flow (k-e or k-o) the solution always diverges and i get no wave profile...
any help with that will be appriciated.

and WSWG if i could get your UDF also it'd do me great help as i am new to UDFs. my email is gsoydinc@parkinsaat.com

Thnx.

gok
lordg is offline   Reply With Quote

Old   April 21, 2010, 12:34
Red face
  #16
Member
 
pranab_jha's Avatar
 
Pranab N Jha
Join Date: Nov 2009
Location: Houston, TX
Posts: 86
Rep Power: 16
pranab_jha is on a distinguished road
Quote:
Originally Posted by WSWGg View Post
It's not necessary to define moving wall using UDF. Why???!!! Aren't you afraid of possible problems with your grid?!
Just define velocity components: horizontal and vertical - and water free level using UDF. I think it's simpler. If you need I can send you my UDF file.
Also, don't forget about wave reflection from outlet boundary because of using pressure-outlet boundary conditions.
Hi WSWGg,
I am trying to model waves on water surface inside a pipe flowing with air and water. I have already simulated the stratified flow, but do not know how to generate a wave using a UDF coz I have no prior experience in writing a UDF. I want to generate a wave and then observe it with different phase velocities. Can you please send me your UDF so that I can learn from it.

Thanks,
Pranab
pranab_jha is offline   Reply With Quote

Old   April 21, 2010, 12:56
Default
  #17
New Member
 
Join Date: Mar 2010
Posts: 19
Rep Power: 16
Randre is on a distinguished road
There are many Thesis online wich have UDFs regarding wave profiles.

With just a quick search:

http://theses.library.uwa.edu.au/adt...ic/02whole.pdf

The wave theory chosen for the UDF of thesis above is Stokes 2nd Order. If you want another one like Linear just change the equations
Ahmed Fakhrey likes this.
Randre is offline   Reply With Quote

Old   April 23, 2010, 09:38
Default
  #18
Member
 
pranab_jha's Avatar
 
Pranab N Jha
Join Date: Nov 2009
Location: Houston, TX
Posts: 86
Rep Power: 16
pranab_jha is on a distinguished road
Quote:
Originally Posted by WSWGg View Post
I've got your letter, have looked at your picture and want to tell you next: your task as you understand is full 3D problem and it can't be reduce to plane-parallel case which allows to consider only 2D problem. By the moment I've handled only 2D problem so I don't think I or my UDF can help you. But one advice maybe would be beneficial to you, try to generate sinusoidal wave by harmonic wall motion. M-m, you know, at the moment I even don't know is it possible to generate wave using only UDF function in your case - sorry. Good luck.
Hi WSWGg,
Thanks for your reply. Will try your suggestion.
pranab_jha is offline   Reply With Quote

Old   June 24, 2010, 11:12
Default
  #19
Senior Member
 
Join Date: Jan 2010
Location: Germany
Posts: 268
Rep Power: 17
Zaktatir is on a distinguished road
can u send me the udf file please (nevertheless i am using CFX) but just for interest of introducing some perturbation into my stratified flows
Zaktatir is offline   Reply With Quote

Old   July 18, 2011, 04:39
Default
  #20
Member
 
ThanhToan
Join Date: Sep 2010
Posts: 49
Rep Power: 15
trantoan2008 is on a distinguished road
Send a message via Yahoo to trantoan2008 Send a message via Skype™ to trantoan2008
Hi WSWGg,

Can you send me your UDFs file? By the way, how can I plot wave elevation coresponding to time in FLuent S/W?
Thanks for your help.

Best regard
trantoan2008 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
wave generation in fluent Harry FLUENT 3 August 26, 2013 00:32
Wave in Fluent. Sham FLUENT 0 December 20, 2004 23:43
how to generate a long annulus then run in FLUENT zhu chen Main CFD Forum 0 March 27, 2004 18:42
Generate solution (fluent) Nic FLUENT 6 February 27, 2002 11:00
fluent and shock wave huong FLUENT 3 March 19, 2001 10:44


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