CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   setFields: possible keywords? (https://www.cfd-online.com/Forums/openfoam/85254-setfields-possible-keywords.html)

AlmostSurelyRob February 21, 2011 09:03

setFields: possible keywords?
 
Dear All,

has anyone documented possible keywords for setFieldDict? I know about boxToCell and obviously default values, but are there any other keywords that might be used there?

My problem is the following. I am playing with interFoam, flow in a pipe and I have just rotated the Gravitational Acceleration vector by pi/4 to see if there is any effect depending on the orientation of my grid with respect to GA.

I would like to initialise the domain with liquid at the bottom of the pipe, but obviously now the bottom is rotated by pi/4. It is impossible with boxToCell since it always aligns the box with the grid. Is there any way to work around this problem without rotating the whole grid?

Bernhard February 21, 2011 09:29

You should consider funkySetFields:
http://openfoamwiki.net/index.php/Co...funkySetFields

If you're familiar with GroovyBC you should easily be able to do what you want.

AlmostSurelyRob February 22, 2011 03:48

Thank you for your comment and a hint. funkySetFields looks extremely useful and I will gladly get acquainted with it.

For now I just wish to report that I solved my problem with rotateMesh. I have to say that I was unaware that such tool exists and hence, I thought I will have to manually update my blockMeshDict. With rotateMesh I simply wrote

Code:

rotateMesh "(0 1 0)" "(0.71 0.71 0)"
But funkySetFields is my next priority.


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