How to generate stress in PARAVIEW when the boulder dropped on the grains, and why my amount of grains model in PARAVIEW is not as much as in YADE simulation?
Dear all,
I have some doubts:
1. Based on my script (attachment on below), why I cannot run "readParamsFrom
Traceback (most recent call last):
File "<string>", line 3, in <module>
NameError: name 'readParamsFrom
What should I do?
2. How to generate stress in PARAVIEW when the boulder dropped on the grains? I don't know how to make on script using vtkExporter..please help me..
3. Why is my amount of grains model in PARAVIEW not as much as in YADE simulation? if you could run my script, I already applied Glyph method to see the particles/grains, but it is not as much as I want like in YADE.
###SCRIPT###
##Sphere Cylinder pack
readParamsFromT
from yade.params.table import *
from yade import export
from yade import pack, plot
from pylab import rand #for sand color
O.bodies.
##Define material of the grains
O.bodies[
O.bodies[
O.materials.
sp=pack.
sp.makeCloud(
sp.toSimulation
##Make a floor
O.bodies.
##Engines and Constitutive Law
O.engines=
InsertionSort
InteractionLo
[Ip2_
[Law2_
NewtonIntegr
PyRunner(
PyRunner(
O.dt=.8*
def checkUnbalanced():
if O.iter<1000:return # at the very start, unbalanced force can be low as there is only few contacts, but it does not mean the packing is stable
if unbalancedForce
O.bodies.
O.bodies[
O.materials.
global boulder # without this line, the BOULDER variable would only exist inside this function
boulder=
boulder.
O.engines=
checker.
def unloadBoulder():
# if the force on boulder exceeds maximum load, start unloading
if abs(O.forces.
boulder.
checker.
def stopUnloading():
if abs(O.forces.
O.run()
def addPlotData():
b=O.bodies[-1]
plot.
plot.plots=
plot.plot()
def doExport():
vtkExporter = export.
vtkExporter.
vtkExporter.
vtkExporter.
vtkExporter.
vtkExporter.
vtkExporter.
vtkExporter.
yade.qt.
O.saveTmp()
#######
Thank you in advance!
Cheers!!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Defri
- Solved:
- Last query:
- Last reply: