CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   setFields with gravity dependent gradient for pressure (https://www.cfd-online.com/Forums/openfoam-solving/67631-setfields-gravity-dependent-gradient-pressure.html)

romant August 21, 2009 04:34

setFields with gravity dependent gradient for pressure
 
Hej,

I got a question regarding the setFields tool. Is it possible to set the pressure depending on the position in z direction, meaning it increases with decreasing z due to gravity and depth in the water? For example when a vessel containing 10 meter deep water is modeled, I want the pressure at the bottom to be 1bar more than at the top of the vessel.

su_junwei August 21, 2009 05:45

Hi roman

you can try funkysetfield. With it you can set more complex initial field.
http://openfoamwiki.net/index.php/Co...funkySetFields

Junwei

romant August 21, 2009 06:04

I was looking at that already, but i am using 1.6.x, and it says there, that it is only usable for 1.5.

gschaider August 21, 2009 09:49

Quote:

Originally Posted by romant (Post 227067)
I was looking at that already, but i am using 1.6.x, and it says there, that it is only usable for 1.5.

Don't let such technicalities bother you ;) It is already "ported":
https://openfoam-extend.svn.sourcefo...unkySetFields/
(in fact the 1.5-version worked without problems). I only forgot to update the Wiki-page

Hope that these good new make you so enthusiastic that you modify the Wiki-page accordingly (it is quite easy, I assure you). So that others coming after you will know that it works

Bernhard

romant August 24, 2009 07:55

thanks
 
Thanks (also for this great tool),

also updated the wiki site + appropriate example

gschaider August 24, 2009 10:13

Quote:

Originally Posted by romant (Post 227280)
Thanks (also for this great tool),

also updated the wiki site + appropriate example

... and corrected two spelling mistakes that must have been there for years. Thanks


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