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

[OpenFOAM] Read zones and partial results

Register Blogs Community New Posts Updated Threads Search

Like Tree11Likes
  • 4 Post By kandelabr
  • 1 Post By kandelabr
  • 6 Post By artymk4

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2018, 10:27
Default Read zones and partial results
  #1
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
Hello.

In an old version of ParaView on Linux there was a checkbox "Include Zones" (also featured in current user's guide: https://cfd.direct/openfoam/user-gui...#x30-2180006.1) but in newer versions it's been replaced with a "Read zones" checkbox.

I haven't been able to deal with cellZones in newer versions at all - they get read but show variables as (partial). What happened or am I doing something the old way but should update?

Thanks!
kandelabr is offline   Reply With Quote

Old   April 20, 2018, 02:50
Default
  #2
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
For anyone struggling with the same problem, I got that working:
  1. "Zone reader" doesn't work on decomposed cases.
  2. writeFormat in controlDict must be ascii (don't know about compression, I don't use it)
  3. To convert from binary, change controlDict and use foamFormatConvert
  4. Use Extract Block filter in ParaView.

Enjoy and good luck.
louisgag, njdyck, AnnaF and 1 others like this.
kandelabr is offline   Reply With Quote

Old   February 4, 2019, 06:39
Thumbs up
  #3
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 196
Rep Power: 9
kandelabr is on a distinguished road
FYI, the native paraview 5.6 finally does what I want:
  • compressed result files (did not test binary)
  • decomposed cases
  • read zones with a new checkbox "copy data to cell zones"

I can use the native windows PV version with native OF reader just like paraFoam.
artymk4 likes this.
__________________
www.damogranlabs.com
kandelabr is offline   Reply With Quote

Old   May 20, 2019, 11:05
Default
  #4
Member
 
Martin
Join Date: Aug 2018
Posts: 33
Rep Power: 8
artymk4 is on a distinguished road
Quote:
Originally Posted by kandelabr View Post
FYI, the native paraview 5.6 finally does what I want:
  • compressed result files (did not test binary)
  • decomposed cases
  • read zones with a new checkbox "copy data to cell zones"

I can use the native windows PV version with native OF reader just like paraFoam.
I used your instructions for opening foam-extend-4.0 simulation results with native ParaView 5.6.
I need to use native ParaView because if I run command paraFoam, old ParaView 5.4.1 opens up and I have problems with it. I can read zones in 5.4.1 and I can use filter Extract Block and choose cellZones, but all the field data (p, U, T...) is gone. As soon as I tick Read zones, I can't use field data anymore. Like you said, I see fields "p (partial)" instead of p and so on.

I'm want to add a few things to your instructions, maybe it will help someone:
So first you need to create empty file blabla.foam in your case folder. Then run command paraview in Terminal so native ParaView opens. Click Open and select blabla.foam. It is mandatory that you tick internalMesh, Read zones and new option shows up - Copy data to cell zones - tick that too and click Apply. Now you can use filter Extract Block and choose cellZones.
louisgag, njdyck, granzer and 3 others like this.
artymk4 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
Error when calculating the second derivative using the derivative function d2dy2 mona.li Tecplot 0 July 8, 2018 15:11


All times are GMT -4. The time now is 13:18.