← Back to team overview

yade-users team mailing list archive

Re: [Question #707217]: Visualize the 2D particle pack as 2D circles in Paraview

 

Question #707217 on Yade changed:
https://answers.launchpad.net/yade/+question/707217

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

> the following code

plsease always try to make your code MWE [1].
To export and visualize particles, you do not need PeriTriaxController etc.

True MWE:
###
O.bodies.append([
    sphere((0,0,0),1),
    sphere((3,4,0),3),
])
O.engines = [
    VTKRecorder(fileName="test",iterPeriod=1),
]
O.step()
###

Now I want to export the particle information and

> ... visualize it as a real 2D circle inside the Paraview.
> However, if I use ‘VTKRecorder’ to store and export the data

please provide actual code, there is no VTKRecorder in your code
(provide MWE [1])

> it still appears as a 3D sphere in Paraview.

By defualt, I see points (Paraview 5.10.0)
But anyway, Paraview is powerful to stick with spheres only..

> I also tried the '2D Glyph' filter in Paraview, but it still didn't
work.

Please be more specific.
Circle 2D Glyph should do exactly what you are asking..

Cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.