CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Extracting surfaces in Paraview to post-process

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2020, 05:09
Default Extracting surfaces in Paraview to post-process
  #1
New Member
 
Join Date: Mar 2018
Posts: 5
Rep Power: 8
OMKAR_MIRJI is on a distinguished road
Hello Everyone,

I am reading flow.vtk file in paraview.
In the mesh file(cgns format) I have given Markers (wall, fairfield etc.) to different surfaces. And I would like to use them for post-processing.
But unfortunately, in the Volume (.vtk) file. They are not explicitly mentioned when opened in Paraview.
Could you help me, is there any way I can extract surfaces to be used for specific post-processing. or is there any way i can import them along with .vtk file.
I tried taking those surfaces in surface.vtk but all the surfaces are connected to each other and i cant isolate a single surface to post-process
I have attached an Image, which could explain problem better.
Attached Images
File Type: jpg Paraview.jpg (65.6 KB, 80 views)
OMKAR_MIRJI is offline   Reply With Quote

Old   September 7, 2020, 06:54
Default
  #2
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14
pcg is on a distinguished road
Try the PARAVIEW_MULTIBLOCK output format (i.e. add that to the list of OUTPUT_FILES).
pcg is offline   Reply With Quote

Old   September 7, 2020, 09:25
Default
  #3
New Member
 
Omkar Mirji
Join Date: Sep 2020
Posts: 3
Rep Power: 6
MIRJI_OMKAR is on a distinguished road
Hi Pedro.

Thanks a lot for suggestion.
I included PARAVIEW_MULTIBLOCK in output file.
It has created a .vtm file and different .vtu files with marker names.
When i tried opening files in paraview. It is giving following error message.
ERROR:

C:\bbd\8fbebceb\build\superbuild\paraview\src\VTK\ IO\XML\vtkXMLUnstructuredDataReader.cxx, line 681
vtkXMLUnstructuredGridReader (000002279FEB5CB0): Cannot read cell connectivity from Cells in piece 0 because the "offsets" array is not monotonically increasing or starts with a value other than 0.

Could you please let me know, is there any other way to read files.

(NOTE: I use PARAVIEW_ASCII to generate flow.vtk, I tried PARAVIEW_MULTIBLOCK_ASCII but it didnt work)
MIRJI_OMKAR is offline   Reply With Quote

Old   September 7, 2020, 16:28
Default
  #4
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14
pcg is on a distinguished road
Ah, if you are on Windows there is an issue with the paraview binary outputs (Problem opening vtu-file in Paraview)
I think we fixed it for the next release (I don't have a Windows machine to be completely sure) you can try using the nightly build binaries https://github.com/su2code/SU2/actions/runs/203927718 until then.
pcg is offline   Reply With Quote

Old   September 8, 2020, 03:45
Default
  #5
New Member
 
Omkar Mirji
Join Date: Sep 2020
Posts: 3
Rep Power: 6
MIRJI_OMKAR is on a distinguished road
Hi Pedro,

Yes. I am using windows machine.
Pardon me, I am new to SU2 and github repository.
In the link that you have provided, there is no download option.
Could you please guide me from where to download code and run it.

I have tried running on v7.0.4 but still, Paraview is not able to read vtu files.

Advanced Thanks for help
MIRJI_OMKAR is offline   Reply With Quote

Old   September 8, 2020, 05:09
Default
  #6
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14
pcg is on a distinguished road
My bad, I only see the download options when I log in to github, I don't know if that is enough or if being a member of SU2 is also required.

If 7.0.4 does not work maybe there are other issues, can you post the config of your case?
pcg is offline   Reply With Quote

Old   September 8, 2020, 05:34
Default
  #7
New Member
 
Omkar Mirji
Join Date: Sep 2020
Posts: 3
Rep Power: 6
MIRJI_OMKAR is on a distinguished road
I was able to download the file after I logged in. Thanks for that.
I ran the config file with nightly version. It generated .vtu file.
But again Paraview reads the same error.

I am attaching .config file for your reference.
Attached Files
File Type: txt onera_tutorial.cfg.txt (9.5 KB, 12 views)
MIRJI_OMKAR is offline   Reply With Quote

Old   September 9, 2020, 16:59
Default
  #8
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14
pcg is on a distinguished road
Ok I'll try to find a Windows machine to test this (we had one report that the problem was solved but maybe not entirely...).

Meanwhile here are your options:
- Use the slice function in Paraview to separate the surfaces.
- Run SU2_SOL multiple times, with different surface names in MARKER_PLOTTING to separate the surfaces.
pcg is offline   Reply With Quote

Old   September 10, 2020, 14:12
Default
  #9
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14
pcg is on a distinguished road
I got my hands on a friend's PC with Windows and I tried dowloading the binaries (no MPI) I mentioned, running the Quickstart case, and opening the vtu file in Paraview 5.8.1 (no MPI).
Everything worked, and the Multiblock file also worked... Is there a chance you ran a different SU2 binary?
pcg is offline   Reply With Quote

Old   March 16, 2021, 13:16
Default
  #10
New Member
 
Brandon Gleeson
Join Date: Apr 2018
Posts: 26
Rep Power: 8
CSMDakota is on a distinguished road
Is anyone aware of other considerations needed to enable PARAVIEW_MULTIBLOCK to function?

I run into this error when adding it to my OUTPUT_FILES list:
Error in "void CConfig::SetConfig_Parsing(char*)":
-------------------------------------------------------------------------
OUTPUT_FILES: invalid option value PARAVIEW_MULTIBLOCK. Check current SU2 options in config_template.cfg.
I'm Running:
v7.0.0 Blackbird on Ubuntu 18.04, build from source

Have tried:
original .cgns grid, also tried it converted to .su2.
It is a single-zone problem, but had tried various settings for MULTIZONE_MESH = YES/NO with NZONES=1

Thanks,
Brandon
CSMDakota is offline   Reply With Quote

Old   March 16, 2021, 18:59
Default
  #11
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14
pcg is on a distinguished road
We are up to version 7.1.1...
pcg is offline   Reply With Quote

Old   March 18, 2021, 11:26
Default
  #12
New Member
 
Brandon Gleeson
Join Date: Apr 2018
Posts: 26
Rep Power: 8
CSMDakota is on a distinguished road
Quote:
Originally Posted by pcg View Post
We are up to version 7.1.1...

Fair enough


Working for me now in 7.1.1.
CSMDakota 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
Problem regarding producing streamlines from surfaces in Ansys CFD post gauthamnarayan Visualization & Post-Processing 0 April 23, 2015 17:07
CFX Post _ extracting a volume region majal CFX 0 April 7, 2015 03:39
paraview installation woes vex OpenFOAM Installation 15 January 30, 2011 08:11
cfx post process help musman CFX 3 May 19, 2009 06:01
post process to get an arbitrary face data oniboy Siemens 2 February 28, 2008 23:12


All times are GMT -4. The time now is 22:52.