plot the stress and strain
Hi
my problem is that I can't plot the stress and strein curve of my script.
I need to know how can I write appropriate code to export and plot stress and strien of my problem.
my script:
readParamsFromT
from yade.params.table import *
from yade import polyhedra_
polyMat = PolyhedraMat(
O.materials.
t=polyhedra_
t.state.pos = (1,1,6)
t.state.vel = (0, 0, -20)
O.bodies.append(t)
O.bodies.
O.materials.
partCloud = pack.SpherePack()
#Specify the property of the particle cloud wanted
O.bodies.
#send to simulation assigning the material
partCloud.
O.engines=[
ForceResetter(),
InsertionSor
InteractionLoop(
[
[
[
),
NewtonIntegr
# call the checkUnbalanced function (defined below) every 2 seconds
PyRunner(
]
def checkUnbalanced():
if unbalancedForce
O.pause()
plot.
O.dt=.5*
O.trackEnergy=True
O.saveTmp()
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 Mehrad for more information if necessary.