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   July 18, 2011, 06:21
Default
  #21
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
You can sample results along the line using 'Probe' option in one of the menus. Then, you are allowed to select a point, line or rake. Line and rake is essentially the same, if I remember well the only think which separates line and rake is sample point distribution along the sample line. Check in the documentation, I am not using Fluent anymore.
paka is offline   Reply With Quote

Old   July 18, 2011, 08:56
Default
  #22
Member
 
ThanhToan
Join Date: Sep 2010
Posts: 49
Rep Power: 16
trantoan2008 is on a distinguished road
Send a message via Yahoo to trantoan2008 Send a message via Skype™ to trantoan2008
Quote:
Originally Posted by paka View Post
You can sample results along the line using 'Probe' option in one of the menus. Then, you are allowed to select a point, line or rake. Line and rake is essentially the same, if I remember well the only think which separates line and rake is sample point distribution along the sample line. Check in the documentation, I am not using Fluent anymore.
Hi Paka,

Thanks for your response.
What do you mean for "Probe' option in one of the menus? Can you describe more detailed your ideas in FLUENT S/W?

Best regard
trantoan2008 is offline   Reply With Quote

Old   May 28, 2012, 17:32
Default
  #23
New Member
 
ali toorani
Join Date: May 2012
Posts: 1
Rep Power: 0
ali.toorani is on a distinguished road
hi
i wane udf file for wave too or wave.msh
help me ( ali.3863@gmail.com )
tnx
ali.toorani is offline   Reply With Quote

Old   October 22, 2012, 14:35
Default
  #24
Member
 
pedro gonzalez
Join Date: Aug 2010
Location: Barcelona, Venezuela
Posts: 35
Rep Power: 16
pedrin84 is on a distinguished road
Any help would be appreciated:

I am using FLUENT to model a regular wave tank with linear theory and dynamic mesh in 2D. I am using a VOF multiphase model (water and air), with transitory regime. The length of the water tank is 200m, from th mobile wall, with 16 m depth. I want to measure the magnitude (amplitude) of the wave at at position x = 20 m from the mobile wall, through of the time, in the free surface (depth= 0m), . How to measure the magnitude (amplitude) in that distance?.
pedrin84 is offline   Reply With Quote

Old   October 22, 2012, 15:18
Default
  #25
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
You have an option in Fluent to sample data using LINE or RAKE option with specified sampling point density along the chosen sampling path.

Unfortunately, to my knowledge, Fluent doesn't allow you to sample your data by default with such a detail as to track free-surface movement. If anyone thinks I'm mistaken, please correct me.

The other option is your own UDF.
Try to google. Maybe by some chance someone posted a similar solution.

Regards and good luck.
paka is offline   Reply With Quote

Old   October 22, 2012, 15:19
Default
  #26
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
The other observation, Fluent is not the most efficient tool to use with VoF, i.e. computation time is much more significant than other available open-source software.
paka is offline   Reply With Quote

Old   October 22, 2012, 15:31
Default Monitor
  #27
Member
 
pranab_jha's Avatar
 
Pranab N Jha
Join Date: Nov 2009
Location: Houston, TX
Posts: 86
Rep Power: 17
pranab_jha is on a distinguished road
Maybe you can use a monitor.
Create a line at the x-location that you need. Then set the monitor for a liquid phase volume fraction. You might be able to get the (approximate) highest point of the wave at a certain time on that line.
This might do the trick.
pranab_jha is offline   Reply With Quote

Old   October 22, 2012, 15:33
Default
  #28
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
This is nothing different from what I wrote. Same tool/option.
paka is offline   Reply With Quote

Old   October 22, 2012, 16:27
Default
  #29
Member
 
pedro gonzalez
Join Date: Aug 2010
Location: Barcelona, Venezuela
Posts: 35
Rep Power: 16
pedrin84 is on a distinguished road
Thanks you. I will consider your suggestions. I have tried using a line, but not in the same way. With UDF it could get the magnitud of the wave, although in this moment, I dont have much knowledge how to create the file. Regards!!!
pedrin84 is offline   Reply With Quote

Old   October 22, 2012, 16:29
Default
  #30
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
What do you mean by 'magnitude of the wave'?

Do you mean velocity? Wave height?

You can extract all this data using line/rake option.
paka is offline   Reply With Quote

Old   October 22, 2012, 16:39
Default
  #31
Member
 
pedro gonzalez
Join Date: Aug 2010
Location: Barcelona, Venezuela
Posts: 35
Rep Power: 16
pedrin84 is on a distinguished road
It is the height of the wave, the sinusoidal movement. I cant to extract the data but I will try
pedrin84 is offline   Reply With Quote

Old   October 22, 2012, 16:49
Default
  #32
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
AFAIK, you set a rake/line to a Volume of Fluid. This way it will output the 0/1 volume of fluid with the line location on x-axis versus the height of the flow on y-axis. The tool unfortunately is not perfect and I am afraid you can only get visual representation. In order to dump actual data in form of numbers I'm afraid you will need to write your own UDFs. It is quite a bit of time I used Fluent, but I don't expect they added this kind of functionality.

(again, for UDF, Google might be your best friend here)

BTW. If you have your own wave paddle routine (must be UDF), you know the function you are using. Assuming your wave generating function (UDF) is coded correctly and your mesh resolution is appropriate for the problem you are trying to solve, for the same boundary conditions along the path of wave travel, the results should be the same as input values. In short, wave generating function should equal generated wave characteristics at location along the travel path, i.e. smooth flow bedding, constant depth, the same BC, gravity, etc.
paka is offline   Reply With Quote

Old   October 22, 2012, 17:20
Default
  #33
Member
 
pedro gonzalez
Join Date: Aug 2010
Location: Barcelona, Venezuela
Posts: 35
Rep Power: 16
pedrin84 is on a distinguished road
Ok. In the simulations, the sinusoidal movement only Its seen in X=0, from the mobile wall, but with X>0, the movement is zero, there is not height of the wave. I will try with both methods and I will view the results. Thanks you for your suggestions. Best Regards!!
pedrin84 is offline   Reply With Quote

Old   October 22, 2012, 17:27
Default
  #34
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
Note that when you read the data at x=0 you read it for the function you provided at BC. You cannot expect this output will give you full domain answer.
From what you said, I understand you did not apply/use line/rake, therefore you cannot read any data for your domian.

For X>0 you must use line/rake tool.

For the moving BC, i.e. moving wall, the function which drives the wall must be a displacement or velocity function (this is how UDF is defined). Whatever you are going to read AT the wall MUST be EXACTLY the same as the function you provide. Take also a note that if you define a rake/line close to the moving boundary i.e. in the first column of finite volume elements, i.e. along the height of moving boundary, you might not get exactly the same readings since the values are approximated. The smaller the cells and closer to the wall the more accurate answer you will get.
paka is offline   Reply With Quote

Old   October 22, 2012, 17:34
Default
  #35
Member
 
pedro gonzalez
Join Date: Aug 2010
Location: Barcelona, Venezuela
Posts: 35
Rep Power: 16
pedrin84 is on a distinguished road
This is the UDF file of the mobile wall:

#include "udf.h"

DEFINE_CG_MOTION(wave, dt, vel, omega, time, dtime)
{
vel[0]=(0.30823)*((1 - exp(-0.417*time))*1.0472*cos(1.0472*time) + ((0.417*exp(-0.417*time))*sin(1.0472*time)));
}
pedrin84 is offline   Reply With Quote

Old   October 23, 2012, 10:05
Default
  #36
New Member
 
Join Date: Dec 2011
Posts: 6
Rep Power: 15
wissou22 is on a distinguished road
Hi Pedrin
My problem is to introduce a moving wall with sinusoidal motion in a channel,
did I have to write your udf or just I define the velocity like vel[0]= 2 sin (0.5 t) for example.
thank you.
wissou22 is offline   Reply With Quote

Old   October 23, 2012, 16:45
Default
  #37
Member
 
pedro gonzalez
Join Date: Aug 2010
Location: Barcelona, Venezuela
Posts: 35
Rep Power: 16
pedrin84 is on a distinguished road
The movement of mobile wall is made according to the characteristics of the wave (sinusoidal motion). The velocity condition to the piston (mobile wall) is a function of the time, period and frequency of the wave, according with the Wave Linear Theory.
pedrin84 is offline   Reply With Quote

Old   October 24, 2012, 04:02
Default
  #38
New Member
 
Join Date: Dec 2011
Posts: 6
Rep Power: 15
wissou22 is on a distinguished road
thank you for your response.
wissou22 is offline   Reply With Quote

Old   October 24, 2012, 13:24
Default Hi, WSWGg, Can you help me to send your UDF profile, I am in trouble with waves now
  #39
New Member
 
guoji xu
Join Date: Feb 2012
Posts: 19
Rep Power: 14
gxu2 is on a distinguished road
Quote:
Originally Posted by WSWGg View Post
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?



Thank you in advance!
gxu2 is offline   Reply With Quote

Old   October 24, 2012, 13:34
Default Hi, Elahe, can you send me the UDF profile from WSWGg, I appreciate your help.
  #40
New Member
 
guoji xu
Join Date: Feb 2012
Posts: 19
Rep Power: 14
gxu2 is on a distinguished road
Quote:
Originally Posted by ekakavand View Post
Hi

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

best
elahe


Thank you in advance!
gxu2 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 01:32
Wave in Fluent. Sham FLUENT 0 December 21, 2004 00:43
how to generate a long annulus then run in FLUENT zhu chen Main CFD Forum 0 March 27, 2004 19:42
Generate solution (fluent) Nic FLUENT 6 February 27, 2002 12:00
fluent and shock wave huong FLUENT 3 March 19, 2001 11:44


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