|
[Sponsors] |
May 23, 2011, 05:38 |
how to read in a position file
|
#1 |
Senior Member
Jie
Join Date: Jan 2010
Location: Australia
Posts: 134
Rep Power: 16 |
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. |
|
|
|
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 |