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

VOF+dambreak problem

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2009, 22:43
Default VOF+dambreak problem
  #1
Member
 
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17
yapalparvi is on a distinguished road
Hi there,

I was looking at the dambreak problem which is solved an example to demonstrate the VOF method. In that example the function gamma is given to be either 1 or 0 for a water column. The watercolumn is defined in a rectangular region (0.146.. 0.292,0) and a function boxtocell is used. I would like like to know if this so called water column instead of being a rectangular cross section is a circular shape . How do I prescribe the gamma function?...... Thanks

Ramesh
yapalparvi is offline   Reply With Quote

Old   July 31, 2009, 03:27
Default
  #2
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Dear Ramesh.

I suggest you try to use the tool funkySetFields:
http://openfoamwiki.net/index.php/Co...funkySetFields

There is even an example how to set up a circular gamma field!

Sebastian.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   July 31, 2009, 11:10
Default
  #3
Member
 
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17
yapalparvi is on a distinguished road
Thanks a lot . I downloaded the package .tar.gz and untarred it. How do I compile it. I tried to use ./Allwmake .... it says permission denied.
yapalparvi is offline   Reply With Quote

Old   July 31, 2009, 11:32
Default
  #4
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
I'm definitely not an expert in linux stuff, but maybe you can try to run the ./Allwmake skript as root?
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   July 31, 2009, 11:40
Default
  #5
Member
 
Eelco Gehring
Join Date: Mar 2009
Posts: 70
Rep Power: 17
feijooos is on a distinguished road
try putting the tar file somewhere in your own account, for instance in $FOAM_USER_APPBIN or something similar. Then extract it and hit wmake. That should do the trick.
feijooos is offline   Reply With Quote

Old   July 31, 2009, 14:39
Default
  #6
Member
 
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17
yapalparvi is on a distinguished road
Thanks a lot . It worked. !!!!!.

Sebastian,

do you have any example problem done using funkySetFields?. if so could you please let me know. In the dam break problem the gamma field is set in setFieldsDict. How do I set the gamma function with funkySetFields?. What I mean to ask is should I have a file named "funkySetFieldsDict" where I can set the gamma function? Thanks

Ramesh
yapalparvi is offline   Reply With Quote

Old   July 31, 2009, 15:51
Default
  #7
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Quote:
Originally Posted by yapalparvi View Post
Thanks a lot . It worked. !!!!!.

Sebastian,

do you have any example problem done using funkySetFields?. if so could you please let me know. In the dam break problem the gamma field is set in setFieldsDict. How do I set the gamma function with funkySetFields?. What I mean to ask is should I have a file named "funkySetFieldsDict" where I can set the gamma function? Thanks

Ramesh
Well, there is an example (which was made by me).
I have never used a dictionary as you can specify everything from the command line.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   July 31, 2009, 17:54
Default
  #8
Member
 
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17
yapalparvi is on a distinguished road
Hi Thanks . I tried to initialise the gamma field for the dambreak problem and used the same command as you do in the tutorial. It gives me an error

Wrong number of arguments, expected 0 found 2
Foam exiting

One more thing. what should I do with the setFieldsDict?.... in the dam break problem should I just delete it and initialise both the velocity and the gamma field from the command prompt?
yapalparvi is offline   Reply With Quote

Old   August 1, 2009, 04:12
Default
  #9
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Please don't use the two dots (. .).
These arguments are relicts from version 1.4.1 of OpenFOAM.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two-phase VOF problem scott copland FLUENT 3 March 15, 2007 08:25
Free CFD solver for VOF problem Jan Main CFD Forum 1 October 30, 2006 11:15
Problem with VOF open channel modelling Biswanath Mahato FLUENT 1 September 14, 2006 05:20
A Problem with setting the time step in VOF model Le FLUENT 2 July 20, 2006 23:00
problem with VOF. Marc FLUENT 1 June 5, 2002 09:17


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