|
[Sponsors] |
July 29, 2014, 06:39 |
CellIDs to create post-processed fields
|
#1 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 15 |
Hi All,
Not sure how to phrase this question, but here goes: Am currently testing out solidParticleFoam and I see that the positions file also gives the cell number in which the particle is present at that step. Now I want to use these cell numbers and assign a value (say 1.0) and create a new variable. So basically if I have 10 cells in my domain, and 3 cell numbers "1","4" and "6" (corresponding to where the particles were at a particular time step) then I want to create this variable "dummy" such that it is something like this: .... internalField nonuniform List<scalar> 10 (0 1 0 0 1 0 1 0 0 0); ..... Here are my questions: 1. Is the assumption that I have made for the continuous numbering of cells valid? Whenever I do a foamToVTK conversion to view the particles, one of the lines in the log file that I see is that there are "additional cells". How do I account for these additional cells while numbering? Or does OF/ParaView treat particles entirely differently and I don't need to put in the additional cells? 2. I have noticed that whenever I have a refinement region, if I follow the above procedure, the values don't show up in ParaView. Rather there is a distinct discontinuity when there is a refinement region. I hope I haven't made it too complicated. Any suggestions please do let me know! Thanks! Regards, Antimony |
|
August 26, 2014, 22:08 |
|
#2 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 15 |
Hi All,
In case anyone is still looking for a way to do this, I used the "labelsToCell" option for "setFields" as a temporary fix for the issue. Regards, Antimony |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Meshing a Sphere | Ajay | FLUENT | 10 | September 3, 2016 14:18 |
Array of fields | r2d2 | OpenFOAM Running, Solving & CFD | 11 | January 30, 2008 12:40 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 11:55 |
how to create chart in CFX post? | Oscar | CFX | 3 | June 29, 2005 09:15 |
Can't see the point, streamline and line in Post | Atit | CFX | 0 | October 28, 2004 14:53 |