CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   on-the-fly post-processing? (http://www.cfd-online.com/Forums/openfoam-post-processing/82968-fly-post-processing.html)

aljaz December 10, 2010 03:56

on-the-fly post-processing?
 
Hi!

I'm trying to figure out how to visualize the results from OpenFoam while the simulation is still running. I'm using OF 1.7.1 and ParaView 3.8. Perhaps post-processing is not the best term here as what I'd like to see is actually something done simultaneously.
I'd like to see the results for example as contour plots or vector fields or as a plot of a single variable (depends on a case).
I read in OpenFOAM release notes for version 1.7.0 that "Post-processing has been extended particularly to function objects, the on-the-fly post-processing system."
I'd be very glad if somebody can point in which direction I should take a look.

Btw, I've come across a term "in-situ visualization". As I understood, the point is to dump redundant data and keep only visualization results. Am I correct about this or it's the same thing as on-the-fly visualization?

Best regards!

alberto December 11, 2010 02:30

Quote:

Originally Posted by aljaz (Post 286846)
Hi!

I'm trying to figure out how to visualize the results from OpenFoam while the simulation is still running. I'm using OF 1.7.1 and ParaView 3.8. Perhaps post-processing is not the best term here as what I'd like to see is actually something done simultaneously.
I'd like to see the results for example as contour plots or vector fields or as a plot of a single variable (depends on a case).

Open the case in paraFoam. When data are stored, you will be able to load them using the "refresh times" button.

Quote:

I read in OpenFOAM release notes for version 1.7.0 that "Post-processing has been extended particularly to function objects, the on-the-fly post-processing system."
I'd be very glad if somebody can point in which direction I should take a look.
Function objects compute averages, forces, sample data and store them as separate files. You can see various examples in the tutorials.

Best,

aljaz December 13, 2010 01:37

Thank you Alberto. I'm well aware of these options.
If I make myself clearer, is there a way to visualize data "directly" without saving them first?
Regards!

matejfor December 13, 2010 03:10

Well it depends what data you want to visualize.
The only way to visualize the data without saving is to pipe them into the visualization software. I have not done it myself but I would make a version of write to writeOnFly which would send the data to gnuplot, or parafoam maybe through some python interface so you have only window with the results. This would slow down the calculation with the visualization step. Maybe faster would be to write down the data, show them and remove.

But there must be someone more clever in these things than me, I hope.

good luck

matej

braennstroem December 13, 2010 14:18

Hi,

the co-processing feature of paraview is the right approach I assume:

http://www.paraview.org/Wiki/CoProcessing

http://www.kitware.com/blog/home/post/28

With visit it should be possible as well:

http://visitusers.org/index.php?titl...torial-in-situ
http://visitusers.org/index.php?titl...anual_Examples
https://wci.llnl.gov/codes/visit/2.0...VisIt2.0.0.pdf

Best Regards!
Fabian

aljaz December 14, 2010 06:49

Thanks!
At a first glance, I think this is what I've been looking for.
With best regards!

gigilentini8 April 24, 2014 05:05

anyone succeeded in using OF with co-processing?
I think it's a interesting topic with great potential...


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