CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   OpenFoam 2.0 hopper case visualization with Paraview (http://www.cfd-online.com/Forums/openfoam/91043-openfoam-2-0-hopper-case-visualization-paraview.html)

amscosta July 28, 2011 11:06

OpenFoam 2.0 hopper case visualization with Paraview
 
Dear All,
How can I visualize the data generated from the lagrangian/hopper case simulation
with paraview 3.10 ?
Any clue is very welcome.
Thanks.
Alex
P.S. Could anybody share the procedure for viewing the discrete element modelling
hopper picture showed in the openfoam.com site ?

pius August 29, 2011 03:07

you can make the animation file of the tutorial example of hopper by uisng the paraview.
After getting the simulation results by running the program.
Generating the VTK files using foamToVTK command.
Open the VTK file uisng paraview as following procedure
Run paraview
open the files at the directory of " icoUncoupledKinematicParcelFoam -> hopper -> hopperEmptying -> VTK -> lagrangian-kinematicCloud "

At the paraview, insert the filter Glyph with the sphere type, scalar mode and 0.1 of radius.

and save the animation at the "file" manu

good luck

pius

pius August 29, 2011 03:14

I will post the animation file soon

AMahrla August 30, 2011 14:37

You could have a look at the OpenFOAM-wiki entry "Tutorials for particle based methods". Chapter 2 is about PostProcessing..

Best,

Astrid

amscosta September 1, 2011 08:31

Hi,
Thanks for the reply and the links.
I just followed the foamtoVTK and all I get is a pile
of spheres "frozen", no matter how I pressed the play
button.
:confused:

phsieh2005 September 1, 2011 10:28

Hi,

Try deleting the 0 file in the converted VTK (especially in the lagarangian folder), then start paraview again.

Pei

amscosta September 8, 2011 09:17

No success deleting the 0 file.
Any other clue ?

wWieWalter September 8, 2011 10:56

Hi amscosta

I do the following tasks after the solver has finished:
1) rm -r 0
2) paraFoam
3) in ParaView press apply
4) in mesh parts select kinematicCloud - lagrangian
5) in lagrangian fields U andothers > apply
6) menu filters > alphabetical > extractBlock
7) select lagrangian (black cross) > apply
8) glyph > glyph type sphere > radius 0.? > theta resolution 24 > scale mode off > apply
9) choose display color

Now you shoud see your particles. I play with the Radius as long as it seems to fit the real radius. I don't know how to apply the geometrical radius in ParaView.

I hope this instruction helps you.
wWW

amscosta September 14, 2011 10:04

Hi Claudio,
Those are the available itens in the Mesh Parts :
frontAndBack - patch
inlet - patch
internaMesh
outlet - patch
walls - patch

Unfortunatelly there is no "kinematicCloud - lagrangian" available
The lagrangian Fiels is also empty

Anyone with clues please jump in.
Alex

wWieWalter September 14, 2011 10:13

Hi

Are you shure you deleted directory 0 (zero) before typing paraFoam?

wWW

amscosta September 14, 2011 17:33

Hi,
Yes, i just typed rm -r 0 under the case directory. :confused:

wWieWalter September 15, 2011 02:44

Good morning,

I guess that in the hopper-directory you typed ./Allrun. After run has finished you changed to > hopperEmptying and deleted 0-directory. When you open an other time directory you should see a > lagrangian and a > uniform directory and some files called > kinematicClaudUCoeff, kinematicCloudUTrans, mu, phi, rho, U. Within the > lagrangian and uniform directories you should see again a > lagrangian directory (with some content).
If you do not see that stuff your computations failed. In my installation of OF2.0.1 this tutorial runs very well. So if it does not work for you, try to rerun the case after reinstalling the tutorial.

ParaView runs good with other cases?


All times are GMT -4. The time now is 01:15.