CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

setFields: possible keywords?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2011, 09:03
Default setFields: possible keywords?
  #1
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22
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, 09:29
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
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.
Bernhard is offline   Reply With Quote

Old   February 22, 2011, 03:48
Default
  #3
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22
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

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

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

Reply


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 Off
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 11 September 26, 2020 04:02
InterFoam - setFields for a non-rectangular 3D domain Ak_cfd OpenFOAM Running, Solving & CFD 24 July 25, 2020 21:16
SetFields runs with no errors but doesnbt change fields adamsview OpenFOAM Pre-Processing 3 December 12, 2014 21:03
question on setFields fijinx OpenFOAM Running, Solving & CFD 1 February 15, 2010 15:07
InterDyMFoam and problem with setFields chris_sev OpenFOAM Running, Solving & CFD 1 March 23, 2009 21:23


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