Tensile test
Hi friends, I am trying a tensile test on a cylindrical sample of spheres. The sample is confined inside a cylindrical boundary using the facetCylinder. I intend to make the last (top)-most particles (at open-end) as a plate which then moves with a certain velocity and pulls the entire sample (body of spheres). The current script is as follows:
from yade import pack,plot
pred=pack.
sp=pack.
O.bodies.append(sp) #add spheres to the body
yade.qt.
facets = geom.facetCylin
O.bodies.
global plate # name a new geometry "plate" for the application of load
plate=O.bodies [-1] # the last of the particles act as the plate
plate.state.
O.engines=
O.dt=0.
def addPlotData(): #define the plot data function
Fz=O.
Dz=plate.
plot.addData(
plot.plots=
plot.plot() #output plot
O.run()
My questions are:
(1) Is there a better alternative to performing the test with the above mentioned scenario?
(2) While running the script I received the error that "Fz" is not defined. I guess that could be something to do with the line plate=O.bodies [-1]. Have been looking for the right method. Any clues?
Thanks....
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 Swapnil for more information if necessary.