CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

decomposing and visualisation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2010, 10:39
Default decomposing and visualisation
  #1
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20
bastil is on a distinguished road
Dear all,

I have a case where I want to ensure that the faces linked to four patches are one the same cpu. I think:

Code:
preservePatches (patch1 patch2 patch3 patch4);
in decomposePar should do the trick.I guess this this makes all four patches to be completely one the same cpu.

I tried to postprocess this by looking into the meshes in processor* using pvFoam from the external Paraview-Reader. If I do so I can not realize that all patches are on the same cpu but even one single patch is separated onto different CPUs. Is this a problem of pvFoam or a wrong distribution?
I remember checking it that way worked but I am not sure if it was paraFoam or pvFoam. How could I check the distribution?
I also ran the mixerGGI-Tutorial decomposed on 4CPUs and this has a "globalFaceZones" keyword which should make two zones be present on all four CPUs but my postprocessing does not show this, too.
bastil is offline   Reply With Quote

Old   September 8, 2010, 20:33
Default
  #2
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
I am not sure if I understand your problem correctly so I hope the following makes sense:
- Try reading the suspicious processor subdirectory individually (create e.g. processor0.foam under "processor0" subdirectory and open it) and compare the visualization with the whole case
- If the patch face distributions don't match there may be a bug in the reader
- Give me more details, at least the version of the reader, how you checked the processor distribution (there are several ways to do this) and a screenshot or two comprehensively demonstrating your problem

Takuya

Last edited by 7islands; September 8, 2010 at 20:36. Reason: added the reader version as a required info
7islands is offline   Reply With Quote

Old   September 9, 2010, 03:11
Default
  #3
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20
bastil is on a distinguished road
Quote:
Originally Posted by 7islands View Post
- Try reading the suspicious processor subdirectory individually (create e.g. processor0.foam under "processor0" subdirectory and open it) and compare the visualization with the whole case
That's exactly what I am doing. I see that setting "preserveFaceZones" and "globalFaceZones" in decompseParDict of mixerGGI (1.5-dev) does not make any of the meshes in processor0...processor3 looking different from what I get when decomposing without any option. The "preserved" or "global" faces are distributed over CPUs and not present on all the CPUs.

Quote:
- how you checked the processor distribution (there are several ways to do this)
That is my main question: How can I check processor distribuition. I tried to do it with the visual method mentioned above but all three decomposition methods (with preserveFaceZones, with globalFaceZones, and without anything) look the same. The output (numer of cells,...) reported by decomposePar also looks the same. However as soon as I try to run the tutorial it only works if the mesh was decomposed with "globalFaceZones" turned on - so there must be a difference in the distribution.

Regards Bastian
bastil is offline   Reply With Quote

Old   September 9, 2010, 04:26
Default
  #4
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Quote:
Originally Posted by bastil View Post
That's exactly what I am doing. I see that setting "preserveFaceZones" and "globalFaceZones" in decompseParDict of mixerGGI (1.5-dev) does not make any of the meshes in processor0...processor3 looking different from what I get when decomposing without any option. The "preserved" or "global" faces are distributed over CPUs and not present on all the CPUs.
Ok it's now a bit clearer to me. If I read processor0 ... processor3 of the decomposed mixerGgi with the Read Zones option turned on I can see the circular outsideZone and insideZone present in all processor*. Maybe you forgot to turn the option on? For example processor0 should look like this
mixerGgiProcessor0.png
where the circular surface is the global face zones.

Quote:
Originally Posted by bastil View Post
That is my main question: How can I check processor distribuition.
The easiest and most convenient way I can think of is to read the whole case with the Decomposed Case (Multiblock) mode which is available only in the SVN version of the reader and colorize with vtkCompositeIndex or run Filters->Extract Block or Filters->Block Scalars or whatnot.

Takuya
7islands is offline   Reply With Quote

Old   September 9, 2010, 04:46
Default
  #5
Senior Member
 
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20
bastil is on a distinguished road
Quote:
Originally Posted by 7islands View Post
Maybe you forgot to turn the option on?
My 100 Points go to Takuya - thanks that's it. However, I don't really understand why these faces are only included in the "faceZones" but not in the faces of each processor itself...?

Quote:
The easiest and most convenient way I can think of is to read the whole case with the Decomposed Case (Multiblock) mode which is available only in the SVN version of the reader and colorize with vtkCompositeIndex or run Filters->Extract Block or Filters->Block Scalars or whatnot.
Thanks once more.
bastil is offline   Reply With Quote

Old   September 9, 2010, 05:50
Default
  #6
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Quote:
Originally Posted by bastil View Post
However, I don't really understand why these faces are only included in the "faceZones" but not in the faces of each processor itself...?
Right, faces that do not belong to cells are ignored for several reasons (they may confuse downstream filters and sometimes users, they have no vol-fields to assign field values, etc). There once was a feature request to add an option to specifically display faces and face-fields but I'm too lazy to work on it

T
7islands is offline   Reply With Quote

Old   September 9, 2010, 15:16
Default
  #7
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
Takuya,
I noticed your reference to my message I would like to re-iterate my request for face-field display (particularly for face fluxes, like phi). I'd like to be able to Glyph them based on magnitude / direction, preferably. Does this indeed require a lot of reader re-write?
I could do the lagrangian post-process as a work-around, I suppose, but I'd like to avoid reading-in VTK's at each time-step
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   September 9, 2010, 20:40
Default
  #8
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
No I don't think so, full two or three days (and one or two extra full days for testing) should be enough. It's matters of the priority of the feature request and time which I can spare for this project.

Looking at your website you seem to be a skilled developer so if you do this by yourself I'd be more than happy to accept your contribution

T
7islands is offline   Reply With Quote

Old   September 10, 2010, 11:25
Default
  #9
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
Takuya,
I might be able to take a look. Could you point me to the relevant part of the source, so that I can get started? Should I be working on the current SVN stuff with Paraview-3.8.0?
It also looks like there's some confusion about the compatibility of the reader with different Paraview releases. I've been using 3.6.1 till now, and later releases of Paraview seem to be unsupported (?) when used with the reader, etc... A little background might be nice. As a minor fix, I would suggest that your SVN repository also be categorized based on Paraview release revision.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   September 12, 2010, 17:38
Default surfaceFields support
  #10
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
Nevermind... Figured it out.

For those interested, the reader with surfaceField support is given in this thread:
http://www.cfd-online.com/Forums/ope...tml#post274905
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 03:02.