CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Cosinusoidal free-surface

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   April 26, 2010, 02:50
Default Cosinusoidal free-surface
Senior Member
Join Date: Mar 2009
Posts: 110
Rep Power: 10
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:

Thanks in advance

nuovodna is offline   Reply With Quote

Old   April 26, 2010, 04:39
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,756
Rep Power: 29
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:

Have fun,

ngj is online now   Reply With Quote

Old   April 27, 2010, 06:03
Senior Member
Join Date: Mar 2009
Posts: 110
Rep Power: 10
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 10:49.
nuovodna is offline   Reply With Quote


free surface, interfoam

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Gmsh nishant_hull Open Source Meshers: Gmsh, Netgen, CGNS, ... 23 August 5, 2015 02:09
CFX 4.4 New free surface option Viatcheslav Anissimov CFX 0 April 3, 2002 06:27
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19
gravitational force for free surface flow Jongtae Kim Main CFD Forum 1 July 2, 2000 11:57
free convection heat transfer from a heated horizontal surface through a liquid to a thin cooled fin Kaushik FLUENT 1 May 8, 2000 06:47

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