Visualize the 2D particle pack as 2D circles in Paraview
Hello everyone,
I have built a dense pack with spheres in the xy plane (blockedDOFs="zXY) with the following code:
#######
from __future__ import print_function
from yade import pack
O.materials.
sp = pack.SpherePack()
size = .24
sp.makeCloud(
sp.toSimulation()
O.cell.hSize = Matrix3(size,0,0, 0,size,0, 0,0,.1)
print(len(
for p in O.bodies:
p.state.
p.state.mass = 2650 * 0.1 * pi * p.shape.radius**2 # 0.1 = thickness of cylindrical particle
inertia = 0.5 * p.state.mass * p.shape.radius**2
p.state.inertia = (.5*inertia,
O.dt = utils.PWaveTime
print(O.dt)
O.engines = [
ForceResetter(),
InsertionSor
InteractionLoop(
[
[
[
),
PeriTriaxCon
dynCell=True,
goal=
stressMask=3,
relStress
maxUnbala
maxStrain
doneHook=
label='biax'
),
NewtonIntegr
]
def term():
O.engines = O.engines[
print(
print(
setContactFr
O.cell.
O.cell.
for p in O.bodies:
p.state.vel = Vector3.Zero
p.
p.
p.
O.save(
O.pause()
O.run();O.wait()
#######
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, it still appears as a 3D sphere in Paraview.
I also tried the '2D Glyph' filter in Paraview, but it still didn't work.
Does anyone know how to do this? Many thanks for any advises or solutions.
Kind regards
Yipeng
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Stránský
- Solved:
- Last query:
- Last reply: