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

how to read in a position file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2011, 05:38
Default how to read in a position file
  #1
Senior Member
 
Jie
Join Date: Jan 2010
Location: Australia
Posts: 134
Rep Power: 16
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

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
tecio compilation errors in latest 1.6.x rsamuel OpenFOAM Bugs 2 June 25, 2021 09:10
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 09:48
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
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 21:51


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