CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

setFields: possible keywords?

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

LinkBack Thread Tools Display Modes
Old   February 21, 2011, 10:03
Default setFields: possible keywords?
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 15
AlmostSurelyRob will become famous soon enough
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?
AlmostSurelyRob is offline   Reply With Quote

Old   February 21, 2011, 10:29
Senior Member
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 15
Bernhard is on a distinguished road
You should consider funkySetFields:

If you're familiar with GroovyBC you should easily be able to do what you want.
Bernhard is offline   Reply With Quote

Old   February 22, 2011, 04:48
Senior Member
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 15
AlmostSurelyRob will become famous soon enough
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

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

Last edited by AlmostSurelyRob; February 22, 2011 at 09:14.
AlmostSurelyRob is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with setFields: "wrong token type - expected word" svevo OpenFOAM Pre-Processing 10 May 4, 2017 00:18
InterFoam - setFields for a non-rectangular 3D domain Ak_cfd OpenFOAM Running, Solving & CFD 20 August 3, 2015 12:40
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

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