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

OpenFoam 2.0 hopper case visualization with Paraview

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By pius
  • 1 Post By amscosta

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 28, 2011, 12:06
Default OpenFoam 2.0 hopper case visualization with Paraview
  #1
Member
 
Alexandre M S Costa
Join Date: Apr 2009
Posts: 31
Rep Power: 17
amscosta is on a distinguished road
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 ?
amscosta is offline   Reply With Quote

Old   August 29, 2011, 04:07
Default
  #2
New Member
 
Hyung Min Kim
Join Date: Mar 2011
Posts: 5
Rep Power: 15
pius is on a distinguished road
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
czhao86 and wbywbywby6 like this.
pius is offline   Reply With Quote

Old   August 29, 2011, 04:14
Default
  #3
New Member
 
Hyung Min Kim
Join Date: Mar 2011
Posts: 5
Rep Power: 15
pius is on a distinguished road
I will post the animation file soon

Last edited by pius; August 29, 2011 at 04:40.
pius is offline   Reply With Quote

Old   August 30, 2011, 15:37
Default
  #4
New Member
 
Astrid Mahrla
Join Date: May 2010
Location: Munich, Germany
Posts: 22
Rep Power: 17
AMahrla is on a distinguished road
You could have a look at the OpenFOAM-wiki entry "Tutorials for particle based methods". Chapter 2 is about PostProcessing..

Best,

Astrid
AMahrla is offline   Reply With Quote

Old   September 1, 2011, 09:31
Question
  #5
Member
 
Alexandre M S Costa
Join Date: Apr 2009
Posts: 31
Rep Power: 17
amscosta is on a distinguished road
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.
SimonStar likes this.
amscosta is offline   Reply With Quote

Old   September 1, 2011, 11:28
Default
  #6
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Hi,

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

Pei
phsieh2005 is offline   Reply With Quote

Old   September 8, 2011, 10:17
Default
  #7
Member
 
Alexandre M S Costa
Join Date: Apr 2009
Posts: 31
Rep Power: 17
amscosta is on a distinguished road
No success deleting the 0 file.
Any other clue ?
amscosta is offline   Reply With Quote

Old   September 8, 2011, 11:56
Default
  #8
New Member
 
Claudio Wolfer
Join Date: Aug 2011
Posts: 9
Rep Power: 15
wWieWalter is on a distinguished road
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
wWieWalter is offline   Reply With Quote

Old   September 14, 2011, 11:04
Default
  #9
Member
 
Alexandre M S Costa
Join Date: Apr 2009
Posts: 31
Rep Power: 17
amscosta is on a distinguished road
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
amscosta is offline   Reply With Quote

Old   September 14, 2011, 11:13
Default
  #10
New Member
 
Claudio Wolfer
Join Date: Aug 2011
Posts: 9
Rep Power: 15
wWieWalter is on a distinguished road
Hi

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

wWW
wWieWalter is offline   Reply With Quote

Old   September 14, 2011, 18:33
Question
  #11
Member
 
Alexandre M S Costa
Join Date: Apr 2009
Posts: 31
Rep Power: 17
amscosta is on a distinguished road
Hi,
Yes, i just typed rm -r 0 under the case directory.
amscosta is offline   Reply With Quote

Old   September 15, 2011, 03:44
Default
  #12
New Member
 
Claudio Wolfer
Join Date: Aug 2011
Posts: 9
Rep Power: 15
wWieWalter is on a distinguished road
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?
wWieWalter is offline   Reply With Quote

Reply

Tags
hopper, lagrangian visualization


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
Building a custom solver on OpenFOAM 2.0 wschosta OpenFOAM Programming & Development 1 July 8, 2011 16:07
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 07:25
[OpenFOAM] Visualization with ParaView (in general) sega ParaView 7 February 1, 2010 03:24
Velocity vector data in OpenFOAM and ParaView mismatch tekky OpenFOAM 9 December 21, 2009 12:26
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 13:24


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