CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

how to read in a position file

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

LinkBack Thread Tools Display Modes
Old   May 23, 2011, 04:38
Default how to read in a position file
Senior Member
Join Date: Jan 2010
Location: Australia
Posts: 123
Rep Power: 9
jiejie is on a distinguished road
Hi guys

I am trying to ask openFoam to read in a position file using the "lookup" like the following:

position position [0 1 0 0 0 0 0] (x1 y1 z1 x2 y2 z2 x3 y3 z3 ...)

the above is defined in the dictionary file.

if it is just one particular position

position position [0 1 0 0 0 0 0] (x1 y1 z1)

Then I can use

position_(dimensionedVector(particleProperties_.lo okup("position")).value()),

my problem is I am not too sure how to define this position variable in the code as it is a nx3 matrix, which means I can not use vector or tensor for the type.

I am think using vectorField but could not find much from the UserGuide.

Does anyone have an idea about this?

Thanks a lot.
jiejie 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
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 09:48
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
tecio compilation errors in latest 1.6.x rsamuel OpenFOAM Bugs 1 December 22, 2009 04:34
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 20:51

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