|
[Sponsors] |
Finding Coordinates of individual cell in U.internalField() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 5, 2009, 15:29 |
Finding Coordinates of individual cell in U.internalField()
|
#1 |
New Member
Bill Rosemurgy
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 20
Rep Power: 17 |
Hi,
I'm working on a procedure that requires looping through every cell in the U.internalField() and performing some operations. At each cell center I need to find the (x,y,z) location which I initially thought was going to be a trivial task (and it still may be), but I'm pretty stuck right now. As far as I can tell, all of the spatial information is contained in mesh.C(), my problem is how do I index correctly into mesh.C() so that I get the correct (x,y,z) for the current cell in U.internalField()? I'm using a loop like the one below, and when I use "i" to index into U.internalField() and mesh.C() I don't think that I'm getting what I want. Does the i-th entry of U.internalField() correlate directly to the i-th entry of mesh.C()? forAll(U,i) { } Thanks! |
|
November 5, 2009, 17:34 |
|
#2 |
New Member
Bill Rosemurgy
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 20
Rep Power: 17 |
Please disregard my previous post.
It turns out that the i-th cell in U.internalField() does directly correspond to the i-th value in mesh.C(). |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FvMatrix coefficients | shrina | OpenFOAM Running, Solving & CFD | 10 | October 3, 2013 15:38 |
Reporting pressure at individual cell faces | Shank | FLUENT | 0 | September 11, 2007 13:24 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |
?? How to get cell center coordinates? | erica | FLUENT | 0 | May 11, 2005 23:02 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |