CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   VOF+dambreak problem (http://www.cfd-online.com/Forums/openfoam-solving/67008-vof-dambreak-problem.html)

yapalparvi July 30, 2009 21:43

VOF+dambreak problem
 
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

sega July 31, 2009 02:27

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.

yapalparvi July 31, 2009 10:10

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.

sega July 31, 2009 10:32

I'm definitely not an expert in linux stuff, but maybe you can try to run the ./Allwmake skript as root?

feijooos July 31, 2009 10:40

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.

yapalparvi July 31, 2009 13:39

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

sega July 31, 2009 14:51

Quote:

Originally Posted by yapalparvi (Post 224897)
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.

yapalparvi July 31, 2009 16:54

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?

sega August 1, 2009 03:12

Please don't use the two dots (. .).
These arguments are relicts from version 1.4.1 of OpenFOAM.


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