CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] cellZone not shown in paraView mesh list

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AtoHM

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2023, 19:50
Question cellZone not shown in paraView mesh list
  #1
New Member
 
Join Date: Aug 2022
Posts: 19
Rep Power: 4
shizuka is on a distinguished road
Hi,

I am trying to simulate a porous media following this Youtube tutorial: https://youtu.be/gAkiUMN6bqM.


I ran the same tutorial case: porousBlockage.


According to the Youtuber, I can filter the cellZone representing the porous media which is defined in the file topoSet:

However, I can't find it in my ParaView... but the topoSet did work, here's the log:


The topoSetDict I compared, is the same. Was the porous media successfully implemented in my case? or did I do something wrong?


Thank you for your help!
shizuka is offline   Reply With Quote

Old   February 21, 2023, 19:52
Default
  #2
New Member
 
Join Date: Aug 2022
Posts: 19
Rep Power: 4
shizuka is on a distinguished road
The OP cannot be too long, here's the log of topoSet:


Code:
    object      topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
    // porousBlockage
    {
        name    porousBlockageCellSet;
        type    cellSet;
        action  new;
        source  boxToCell;
        box     (-0.5 -0.5 -1) (0.5 0.5 1);
    }
    {
        name    porousBlockage;
        type    cellZoneSet;
        action  new;
        source  setToCellZone;
        set     porousBlockageCellSet;
    }
);
shizuka is offline   Reply With Quote

Old   February 21, 2023, 19:54
Default
  #3
New Member
 
Join Date: Aug 2022
Posts: 19
Rep Power: 4
shizuka is on a distinguished road
Two screenshots that I couldn't attach in OP:



shizuka is offline   Reply With Quote

Old   February 21, 2023, 19:56
Default
  #4
New Member
 
Join Date: Aug 2022
Posts: 19
Rep Power: 4
shizuka is on a distinguished road
The above images are not readable, sorry. I attach them here.
Attached Images
File Type: jpg InkedScreenshot.jpg (129.3 KB, 78 views)
File Type: jpg 1.jpg (84.0 KB, 44 views)
shizuka is offline   Reply With Quote

Old   March 1, 2023, 08:32
Default
  #5
Senior Member
 
M
Join Date: Dec 2017
Posts: 698
Rep Power: 12
AtoHM is on a distinguished road
As you can see in the screen capture, he/she @youtube used PV 5.6 and ticked a field "Include Zones". This is easier to miss in newer versions: under the Mesh Regions, Cell, Point Arrays and Lagrangian Arrays there is the same checkbox now reading "Read zones". Have you toggled it on in your case?
AtoHM is offline   Reply With Quote

Old   March 1, 2023, 11:56
Default
  #6
New Member
 
Join Date: Aug 2022
Posts: 19
Rep Power: 4
shizuka is on a distinguished road
Hi AtoHM,


Thank you for your suggestion. I googled a lot for this issue... Yes, I've tried that, tick the option "Read zones" and one extra option will appear: "Copy to cells". I tried both. Sadly, the only difference is the results then become "partial"...
shizuka is offline   Reply With Quote

Old   March 2, 2023, 03:24
Default
  #7
Senior Member
 
M
Join Date: Dec 2017
Posts: 698
Rep Power: 12
AtoHM is on a distinguished road
Ok, I maybe should have suggested that earlier too:
Check if it was created successfully. In your constant/polyMesh folder should be located new files when topoSet worked. The cellSet should be written in constant/polyMesh/sets/. If this folder does not exist, topoSet probably failed. Then you need to look at the output of topoSet. It is always recommended to let the utilities write log files to check in case something does not work.


Good luck!
AtoHM is offline   Reply With Quote

Old   March 2, 2023, 06:01
Default
  #8
New Member
 
Join Date: Aug 2022
Posts: 19
Rep Power: 4
shizuka is on a distinguished road
Hi AtoHM,


Thank you. Yes, I have the logs for meshblock, toposet, and foam.


In the log file the sets are properly set up:


Code:
Create time

Create polyMesh for time = 0

Reading topoSetDict

Time = 0
    mesh not changed.
Created cellSet porousBlockageCellSet
    Applying source boxToCell
    Adding cells with centre within boxes 1((-1.5 -1.5 -1) (-0.5 1.5 1))
    cellSet porousBlockageCellSet now size 192
Created cellZoneSet porousBlockage
    Applying source setToCellZone
    Adding all cells from cellSet porousBlockageCellSet ...
    cellZoneSet porousBlockage now size 192

End
Thank you for the reminder, I checked. Yes, there is also a folder "sets" nested in the folder constant/polyMesh.



May I ask do you use a newer version of paraView? Are you able to see cellZones (if you have such implementations)? Thanks!

Last edited by shizuka; March 2, 2023 at 06:03. Reason: corresponding code for the example in the question
shizuka is offline   Reply With Quote

Old   March 2, 2023, 06:53
Default
  #9
Senior Member
 
M
Join Date: Dec 2017
Posts: 698
Rep Power: 12
AtoHM is on a distinguished road
Hi shizuka,


I have checked it in one of my cases and indead, I cannot see the zones where they are displayed in PV 5.6. I actually use 5.4 alot still, and there I can create a "ExtractBlock" filter on the .foam-Node which gives me the option to show the zones.


Does this work for you? Otherwise, there is a possibility to export these to VTK and then it is easily shown in Paraview.
AtoHM is offline   Reply With Quote

Old   March 2, 2023, 16:12
Default
  #10
New Member
 
Join Date: Aug 2022
Posts: 19
Rep Power: 4
shizuka is on a distinguished road
Hi AtoHM,


Thank you very much for so many suggestions


Do you mean the tab which is highlighted in green in the attached figure?


Then unfortunately it doesn't work. I guess VTK should work. Anyway, I am rest assured that I didn't do something stupid in openfoam. And the filter "Extract Block" looks very handy in making plots!


Thank you!
Attached Images
File Type: jpg Screenshot 2023-03-02 210550.jpg (119.9 KB, 54 views)
shizuka is offline   Reply With Quote

Old   March 6, 2023, 08:41
Default
  #11
Senior Member
 
M
Join Date: Dec 2017
Posts: 698
Rep Power: 12
AtoHM is on a distinguished road
I try to help and am sorry, it does not appear to work so far. This is exactly where I can see them using cellSet and cellZoneSet conversion as you used as well.
As I mentioned, another option is vtk conversion, you may try:
Code:
foamToVtk -cellSet porousBlockageCellSet

It should create a folder "VTK" in the case and you should be able to drag&drop the vtk file into Paraview.
shizuka likes this.
AtoHM is offline   Reply With Quote

Old   March 6, 2023, 09:08
Default
  #12
New Member
 
Join Date: Aug 2022
Posts: 19
Rep Power: 4
shizuka is on a distinguished road
Hi AtoHM,


I appreciate a lot of your kindness and willing to help, and hopefully this post can be also helpful to future readers who also get confused in finding the cellzones.


Besides, I wonder if you have any experience in simulating porous media in 2D? I have another unsolved problem in this post:


simulating 2D porous media but the results is dependent on z-dimension


Would you mind having a look at it? Thank you very much for your time and help in advance!
shizuka 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 19:16.