Grids visualization in ParaView
Hello everyone,
I want to simulate something similar to this vid: https:/
but pulling the grid upward.
Since I'm new with grids in Yade, I'm playing with the examples given in the documentation. I'm using a machine with no graphical interface, so to explore the scene I have to use VTKs and Paraview. The fact is that I get the spheres/nodes visualized correctly, but not the GridConnections.
Are the connecting cylinders there and it's just a visualization problem, or is something missing in the code?
Here's the code I used (taken by the documentation, I just added the VTKExporter):
-------
# encoding: utf-8
from yade import pack,geom,export
from yade.gridpfacet import *
from pylab import *
# qt.View()
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
NewtonIntegrat
PyRunner(
PyRunner(
]
O.materials.
### Parameters ###
L=0.1 #length [m]
n=10 #number of nodes for the length [#]
r=L/100. #radius
color=[
### Create all nodes first
nodeIds=[]
for i in range(0,n):
nodeIds.append( O.bodies.append( gridNode(
### Create connections between the nodes
connectionIds=[]
for i,j in zip(nodeIds[
connectionIds
### Set a fixed node
O.bodies[
O.dt=1e-06
### VTK Exporter
vtke=export.
vtke.exportFace
vtke.exportSphe
O.stopAtIter=
O.run()
-------
Thanks in advance.
Best regards,
Alessandro
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Alessandro Balzarotti for more information if necessary.