problem with periodic-triax.py
Hi, all
I have some change with the script periodic-triax.py. I have three problem with the changed script shown as follow:
Q1: At first, I create "dense" packing by setting friction to zero initially, "O.materials[
Q2: In "InsertionSortC
Q3: If I set O.cell.
-------my changed script for periodic-triax.py
# coding: utf-8
# 2009 © Václav Šmilauer <email address hidden>
#"Test and demonstrate use of PeriTriaxContro
from yade import *
from yade import pack,qt,plot
O.periodic=True
hSize=0.1
O.cell.
0 ,hSize, 0,
0, 0, hSize)
young=5e6
poisson=0.5
compFricDegree = 2
O.materials.
sp=pack.
radius=5e-3
rRelFuzz=0
num=sp.
#min,max,
O.bodies.
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
#PeriTriaxCont
#using cell inertia
PeriTriaxContr
NewtonIntegrat
]
O.dt=0.
def addPlotData():
plot.addData(
sxx=-
sd=-triax.
exx=-
ev=-1*
# save all available energy data
Etot=
)
# enable energy tracking in the code
O.trackEnergy=True
# define another plot
plot.plots=
' i':('ezz'),
'ezz':('ev',),
' ezz':('sd')
}
# show the plot
plot.plot()
#O.run();
qt.View()
phase=0
def triaxDone():
global phase
if phase==0:
print 'Here we are: stress'
print 'Now εz will go from 0 to .2 while σx and σy will be kept the same.'
O.engines=
#make the current size as the initial size to calculate strain
O.cell.
triax.
triax.
# allow faster deformation along x,y to better maintain stresses
phase+=1
elif phase==1:
print 'Here we are: stress'
print 'Done, pausing now.'
O.pause()
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Bruno Chareyre
- Solved:
- Last query:
- Last reply: