Difference between revisions of "FAQ/Postprocessing"

From OpenFOAMWiki
< FAQ
(removed line break near the initial FAQ description)
(Postprocessing of Lagrangian particles: fixed a few typos, added link to tutorial page and emphasized that we must unselect volume fields ;))
Line 7: Line 7:
 
[[faqdescription::Working with the results]]
 
[[faqdescription::Working with the results]]
 
=== Postprocessing of Lagrangian particles ===
 
=== Postprocessing of Lagrangian particles ===
 +
 +
The following subsections describe the basics on how to post-process by [[#Using foamToVTK|Using foamToVTK]] and by [[#Using paraFoam|Using paraFoam]].
 +
 +
Beyond this, have a look into the tutorial page [[HowTo_Post-process_results_for_particle_based_methods|HowTo Post-process results for particle based methods]].
  
 
==== Using foamToVTK ====
 
==== Using foamToVTK ====
  
This is not yet possible to direcly post-process Lagrangian particles (including droplets) with paraFoam, according to [http://openfoam.cfd-online.com/cgi-bin/forum/show.cgi?1/853 this thread]. However, you can work around this limitation by using [[foamToVTK]] and Paraview's existing ability to handle point data.
+
With the latest OpenFOAM and ParaView versions, it's possible to post-process Lagrangian data directly in ParaView. However, if for some reason you cannot open the OpenFOAM case directly in ParaView, the workaround is to use [[foamToVTK]] and ParaView's existing ability to handle point data.
Follow these steps:
+
 
# Run the foamToVTK post-processing utility. As with all OpenFOAM programs, it requires at a minimum, the root and case paths.
+
Follow these steps:
# Read in your Eulerian data, if you wish
+
# Run the [[foamToVTK]] post-processing utility. As with all OpenFOAM programs, it requires at a minimum, the root and case paths.
# Read the Lagrangian data separately and 'Glyph' it.  Glyphs are how Paraview represents point data.  Usually, the sphere glyph is the most appropriate.   
+
# Read in your Eulerian data, if you wish.
 +
# Read the Lagrangian data separately and 'Glyph' it.  Glyphs are how ParaView represents point data.  Usually, the sphere glyph is the most appropriate.   
  
 
The glyphs used to represent particles can be colored and sized to reflect the data associated with the particle.  If you cannot see your particles, check that indeed you have represented them as glyphs and that the size scaling you have chosen is adequately large.
 
The glyphs used to represent particles can be colored and sized to reflect the data associated with the particle.  If you cannot see your particles, check that indeed you have represented them as glyphs and that the size scaling you have chosen is adequately large.
Line 20: Line 25:
 
==== Using paraFoam ====
 
==== Using paraFoam ====
  
First you execute paraFoam as usual but you select only in the data to be load the fields and the mesh of the continuous phase.
+
First you execute [[paraFoam]] as usual but you select only in the data to be load the fields and the mesh of the continuous phase.
 +
 
 +
Then you click on the ''Open'' button (or ''File -> Open'' in the menu). You select the ''case.OpenFOAM'' file created by [[paraFoam]]. So you can load again the data of the case. But this time, you select
 +
# In ''Mesh Parts'' the lagrangian clouds (be sure that only ''lagrangian'' geometries are selected),
 +
# In ''Volume Fields'' <u>unselect everything</u>.
 +
# In ''Lagragian Fields'' select the fields you are interested in.
  
Then you click on the ''Open'' button (or ''File -> Open'' in the menu). You select the ''case.OpenFOAM'' file created by paraFoam. So you can load again the data of the case. But this time, you select
 
# in ''Mesh Parts'' the lagrangian clouds (be sure that only ''lagrangian'' geometries are selected),
 
# in ''Volume Fields'' unselect everything
 
# in ''Lagragian Fields'' select the fields you are interested in.
 
 
Then click on the ''Apply'' button.
 
Then click on the ''Apply'' button.
  
 
To visualize the particle, use the ''Glyph'' filter (cf. end of previous paragraph).
 
To visualize the particle, use the ''Glyph'' filter (cf. end of previous paragraph).
  
Remark : Test with OpenFOAM-1.6 and ParaView 3.6.1
+
Remark: Should work as of OpenFOAM-1.6 and ParaView 3.6.1.
  
 
=== Postprocessing of simulations on multiple mesh-regions ===
 
=== Postprocessing of simulations on multiple mesh-regions ===

Revision as of 10:02, 15 June 2014


1 FAQ Section 6: Postprocessing

Working with the results

1.1 Postprocessing of Lagrangian particles

The following subsections describe the basics on how to post-process by Using foamToVTK and by Using paraFoam.

Beyond this, have a look into the tutorial page HowTo Post-process results for particle based methods.

1.1.1 Using foamToVTK

With the latest OpenFOAM and ParaView versions, it's possible to post-process Lagrangian data directly in ParaView. However, if for some reason you cannot open the OpenFOAM case directly in ParaView, the workaround is to use foamToVTK and ParaView's existing ability to handle point data.

Follow these steps:

  1. Run the foamToVTK post-processing utility. As with all OpenFOAM programs, it requires at a minimum, the root and case paths.
  2. Read in your Eulerian data, if you wish.
  3. Read the Lagrangian data separately and 'Glyph' it. Glyphs are how ParaView represents point data. Usually, the sphere glyph is the most appropriate.

The glyphs used to represent particles can be colored and sized to reflect the data associated with the particle. If you cannot see your particles, check that indeed you have represented them as glyphs and that the size scaling you have chosen is adequately large.

1.1.2 Using paraFoam

First you execute paraFoam as usual but you select only in the data to be load the fields and the mesh of the continuous phase.

Then you click on the Open button (or File -> Open in the menu). You select the case.OpenFOAM file created by paraFoam. So you can load again the data of the case. But this time, you select

  1. In Mesh Parts the lagrangian clouds (be sure that only lagrangian geometries are selected),
  2. In Volume Fields unselect everything.
  3. In Lagragian Fields select the fields you are interested in.

Then click on the Apply button.

To visualize the particle, use the Glyph filter (cf. end of previous paragraph).

Remark: Should work as of OpenFOAM-1.6 and ParaView 3.6.1.

1.2 Postprocessing of simulations on multiple mesh-regions

Two possibilites to do this are described on How To Postprocess Multiple Regions

1.3 Post-processing multiphase results

OpenFOAM handles multiphase simulations with multiphase flow solver through using a single field that represents the phase present at a certain cell, face or vertex. The field is usually named alpha or alpha1. For more information on how to analyse this field, see this page: How to post-process multiphase results

Facts about "FAQ/Postprocessing"RDF feed
FaqdescriptionWorking with the results +
FaqnamePostprocessing +
Faqnumber6 +