|
[Sponsors] |
February 21, 2011, 10:03 |
setFields: possible keywords?
|
#1 |
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22 |
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? |
|
February 21, 2011, 10:29 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
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. |
|
February 22, 2011, 04:48 |
|
#3 |
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22 |
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)" Last edited by AlmostSurelyRob; February 22, 2011 at 09:14. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with setFields: "wrong token type - expected word" | svevo | OpenFOAM Pre-Processing | 11 | September 26, 2020 05:02 |
InterFoam - setFields for a non-rectangular 3D domain | Ak_cfd | OpenFOAM Running, Solving & CFD | 24 | July 25, 2020 22:16 |
SetFields runs with no errors but doesnbt change fields | adamsview | OpenFOAM Pre-Processing | 3 | December 12, 2014 22:03 |
question on setFields | fijinx | OpenFOAM Running, Solving & CFD | 1 | February 15, 2010 16:07 |
InterDyMFoam and problem with setFields | chris_sev | OpenFOAM Running, Solving & CFD | 1 | March 23, 2009 22:23 |