CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

CellIDs to create post-processed fields

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 29, 2014, 06:39
Default CellIDs to create post-processed fields
Senior Member
Join Date: Aug 2013
Posts: 324
Rep Power: 7
Antimony is on a distinguished road
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>
(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!



Antimony is offline   Reply With Quote

Old   August 26, 2014, 22:08
Senior Member
Join Date: Aug 2013
Posts: 324
Rep Power: 7
Antimony is on a distinguished road
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.


Antimony is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

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 13:40
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12: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

All times are GMT -4. The time now is 10:26.