seeking help in VTKRecorder
Hi folks!
I am trying to run a simulation with Geogrid and Balls. It is running fine but I want to visualize Geogrid and Balls separately.
How can I achieve this?
I am using Ubuntu 22.04.2 LTS and Yade 2022.01a.
my code is attached:
from builtins import range
from yade import pack, geom, plot, export
from yade.gridpfacet import *
rate=-0.5 #1.66e-4
compFricDegree=30
finalFricDegree = 40
stabilityThreshold = 0.1
young = 5e6
mn, mx = Vector3(0, 0, 0), Vector3(0.9, 0.6, 0.6)
O.engines = [
Bo1_Facet_Aabb(), Bo1_Wall_Aabb()
]),
[ Ig2_Sphere_
Ig2_
[Ip2_
[Law2_
Law2_
),
PyRunner(
# VTKRecorder(
]
def addPlotData():
plot.addData(
unbalanced=
i=O.iter
)
plot.plots = {
}
plot.plot()
O.materials.
O.materials.
O.materials.
L = 0.608 #length [m]
l = 0.304 #width [m]
nbL = 16+1 #number of nodes for the length [#]
nbl = 8+1 #number of nodes for the width [#]
r = 0.008/2 # L / 100. #radius
color = [255. / 255., 102. / 255., 0. / 255.]
nodesIds = []
for i in range(0, nbL):
for j in range(0, nbl):
nodesIds.
#Create connection between the nodes
for i in range(0, len(nodesIds)):
for j in range(i + 1, len(nodesIds)):
dist = (O.bodies[
if (dist <= (L/nbL)*1.05):
O.bodies.
O.bodies.
sp = pack.SpherePack()
sp.makeCloud((0, 0, 0), (0.9, 0.2, 0.6), rMean=.05, rRelFuzz=.3)
sp.makeCloud((0, 0.4, 0), (0.9, 0.6, 0.6), rMean=.05, rRelFuzz=.3)
O.bodies.
O.run()
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: