CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] Cannot track LAgrangian particles (https://www.cfd-online.com/Forums/paraview/142258-cannot-track-lagrangian-particles.html)

Eranho September 26, 2014 06:19

Cannot track LAgrangian particles
 
Hello

I have a problem to visualize Lagrangian particles at aachenBomb tutorial. The case executes correctly and I can see temperature and pressure field etc. When I run the 'foamToVTK' it makes the VTK directory.

But when I open the Paraview and open the files at VTK directory according this tutorial (page 8):
http://www.tfd.chalmers.se/~hani/kur...ered_NL_HN.pdf

and when I try to create glyphs for claud and press 'apply', the Paraview crashes down every time. Is this a known problem or do I do something wrong?

I'm using OpenFOAM 2.1.1 and Paraview 3.12.0

Thanks, Eranho

wyldckat September 28, 2014 14:40

Greetings Eranho,

I've done a really quick test just now and I had no problems by following these steps:
  1. Used Ubuntu 12.04 and OpenFOAM 2.1.1.
  2. Used a clean copy of the original tutorial "lagrangian/sprayFoam/aachenBomb".
  3. Ran:
    Code:

    blockMesh
    sprayFoam

    foamToVTK
    paraview

    Honestly I only allows the solver to only run up to the time 5e-05.
  4. When ParaView finally opened up, I opened the file "VTK/lagrangian/sprayCloud/sprayCloud_24.vtk" in it.
  5. Then applied the Glyph filter, but with these settings:
    • Glyph type: Sphere
    • Scale Mode: Off
    • Mask Points: unchecked
    • Random mode: unchecked
You might also want to check the values that were read from the VTK file, namely by using the "Spreadsheet View" in ParaView: http://www.itk.org/Wiki/ParaView/Use...readsheet_View - it's possible that some values are of type NaN (Not-a-Number). Which would explain why it crashes.


Best regards,
Bruno

Eranho September 28, 2014 23:53

Thanks Bruno,

I got the post-processing to work by doing following procedure (found from the forum):

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 and others > 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"

I will try with the VTK as you described later. Thank you very much :), Erkki


All times are GMT -4. The time now is 12:27.