|
[Sponsors] |
November 15, 2012, 08:27 |
How to use the X coordinate in OpenFOAM
|
#1 |
Member
Zifei Yin
Join Date: Sep 2012
Location: Shanghai & Ames
Posts: 33
Rep Power: 13 |
I need to use the X coordinate of mesh points to calculate other parameter. How can I read it in source files.
|
|
November 15, 2012, 08:54 |
|
#2 |
Senior Member
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22 |
const volScalarField& xCoord = mesh.C().component(vector::X);
should do the trick. |
|
November 15, 2012, 09:23 |
|
#3 |
Member
Zifei Yin
Join Date: Sep 2012
Location: Shanghai & Ames
Posts: 33
Rep Power: 13 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Comparison of axisymmetric case, Starccm+ and OpenFOAM | linnemann | OpenFOAM Running, Solving & CFD | 12 | June 16, 2011 05:43 |
[mesh manipulation] createPatch / cyclicGgi / OpenFoam 1.5-dev | OFU | OpenFOAM Meshing & Mesh Conversion | 0 | June 16, 2010 04:36 |
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 | linnemann | OpenFOAM Installation | 7 | July 30, 2009 03:14 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 18:07 |
OpenFOAM Training and Workshop Zagreb 2628Jan2006 | hjasak | OpenFOAM | 1 | February 2, 2006 21:07 |