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

Cosinusoidal free-surface

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2010, 03:50
Default Cosinusoidal free-surface
  #1
Senior Member
 
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 17
nuovodna is on a distinguished road
Hi, i'd like to set up the initial values of "alpha1" to design a cosinusoidal free surface (not a straight line but following a specified function). I attach a image file: the green line is the function
y = 0.05*cos(x/.1)+.3
over the damBreak mesh points. How can i set up this type of free surface??

Image file: http://dl.dropbox.com/u/3617688/freesurface.jpeg


Thanks in advance

Emanuele
nuovodna is offline   Reply With Quote

Old   April 26, 2010, 05:39
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Emanuele

I would suggest that you take a look on funkySetFields. Here you should be able to set more general void fractions than with setFields. Here is a link to the wiki:

http://openfoamwiki.net/index.php/Co...funkySetFields

Have fun,

Niels
ngj is offline   Reply With Quote

Old   April 27, 2010, 07:03
Default
  #3
Senior Member
 
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 17
nuovodna is on a distinguished road
thanks for the tip!! It works

PS I'd like to have for each cell the fraction alpha in order to initiate the simulation with a continuous interface (without steps on the interface). I imagine it's not easy to program for a general case, I've already made it for rectangle and sphere but it would be better if associated with funkySetFields.

Last edited by nuovodna; April 27, 2010 at 11:49.
nuovodna is offline   Reply With Quote

Reply

Tags
free surface, interfoam


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
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 03:09
CFX 4.4 New free surface option Viatcheslav Anissimov CFX 0 April 3, 2002 07:27
CFX4.3 -build analysis form Chie Min CFX 5 July 13, 2001 00:19
gravitational force for free surface flow Jongtae Kim Main CFD Forum 1 July 2, 2000 12:57
free convection heat transfer from a heated horizontal surface through a liquid to a thin cooled fin Kaushik FLUENT 1 May 8, 2000 07:47


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