|
[Sponsors] |
[OpenFOAM] Visualization with ParaView (in general) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 8, 2010, 13:28 |
Visualization with ParaView (in general)
|
#1 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
Hello World.
My questions is not directly related to OpenFOAM, but to the usage of ParaView in CFD-Simulations in general. What I want to know is how I can learn to visualize data with ParaView. OpenFOAM uses the VTK-format? Is this applicabel to any kind of data? I'm working with a selfmade CFD-code from a small company and they want to visualize their data with ParaView. Have nice day. S.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
|
January 25, 2010, 08:17 |
|
#2 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
Hello, me again.
I had a quick look into the VTK. Seems like there are well defined file formats for the creation of VTK-files, which can be read from inside ParaView. How does the conversion from the OpenFOAM data structure to the VTK format work? This should be foamToVTK? Just for basic understandung: This tool reads the data from OpenFOAM and writes it to the specific VTK-file-format? Just to make sure: This is the only way of dealing with this? If yes, then I know what to do: Write a code, which converts the data from our selfmade CFD-code into the VTK-file-format! Have a nice day.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
|
January 26, 2010, 03:33 |
|
#3 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
I would personally suggest writing Ensight format (ASCII and/or C binary) for your output instead. IMO this has several distinct advantages over using VTK files.
|
||
January 26, 2010, 05:13 |
|
#4 | |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
Quote:
I will have a look into the Ensight format. As a matter of fact our code is using cubic cells exclusively, so basically I'm not in need of polyhedral cell support. As I have mentioned this is the first step towards visualization. Later our case contain of up to 2 million cells. In this case writing VTK-files and reading them into ParaView may not the right approach for obvious memory reasons. I have read something about "pipeline" visualization. What is this? If the user wants to have a specific field visualization, ParaView communitcates via VTK with the data from our simulation?! So there doesn't have to be a new (gigabyte) file of VTK-data?
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
||
January 29, 2010, 10:05 |
|
#5 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
So, simple question again: How does OpenFOAM and Paraview communicate?
Are there temporary VTK files or is there a 'direct' communication? I'm still not sure ...
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
|
January 29, 2010, 10:39 |
|
#6 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
Code:
applications/utilities/postProcessing/graphics/PV3FoamReader/ This would, of course, be yet another means of solving your problem. Write a reader module to handle your in-house data format. |
||
January 31, 2010, 06:42 |
|
#7 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
Thank you olesen.
vtkPV3FoamReader.h looks like the only file worth looking at... That can't be all?!
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!" |
|
February 1, 2010, 03:24 |
|
#8 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Nope. IMO you need to look at and study all of them. The PV3FoamReader directory has the paraview server-manager plugin (this is where you'd have found the vtkPV3FoamReader.h header). The vtkPV3Foam directory contains the ''real" work - the transformation from OpenFOAM structures and data types into VTK.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Paraview client/server does not work with ParaView 5.0.1 | snak | ParaView | 0 | October 17, 2016 11:22 |
[General] Paraview Binary and OSPray plugin | Prapanchnair | ParaView | 0 | May 27, 2016 07:26 |
[General] welding sim visualization problems in Paraview | Aorus | ParaView | 0 | December 25, 2009 15:39 |
[General] PARAVIEW Grid visualization | simone Marras | ParaView | 2 | January 23, 2007 09:05 |