Why is my pyrunner command not being called?
I want to use pyrunner's command to control the loading and unloading process, but it doesn't work.
So I was wondering maybe there's something wrong with the engine code, so I add the "print ('hello')", and it did work. But the pyrunner command still doesn't work. I do not know what is going wrong.
Here is my code, could you please help me to check about it?
Many thanks for your help.
#######
from yade import pack
# The following 5 lines will be used later for batch execution
nRead=readParam
num_spheres=1000,# number of spheres
compFricDegree = 30, # contact friction during the confining phase
key='_
unknownOk=True
)
from yade.params import table
num_spheres=
key=table.key
targetPorosity = 0.43 #the porosity we want for the packing
compFricDegree = table.compFricD
finalFricDegree = 30 # contact friction during the deviatoric loading
rate=-0.02 # loading rate (strain rate)
damp=0.2 # damping coefficient
stabilityThresh
young=5e6 # contact stiffness
mn,mx=Vector3(
## create materials for spheres and plates
O.materials.
O.materials.
## create walls around the packing
walls=aabbWalls
wallIds=
## use a SpherePack object to generate a random loose particles packing
sp=pack.
sp.makeCloud(
sp.toSimulation
triax=TriaxialS
maxMultiplier=
finalMaxMultip
thickness = 0,
internalCompac
stressMask = 1,
goal1=-2e5,
goal2=rate,
)
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
GlobalStiffnes
triax,
TriaxialStateR
NewtonIntegrat
PyRunner(
]
triax.stressMask = 1
triax.goal1=-2e5
triax.goal2=rate
print('hello')
def triaxload():
if abs(O.triax.
triax.stressMask = 1
triax.goal1=-3e5
triax.goal2=rate
triaxload.
def triaxunload():
if abs(triax.
triax.stressMask = 1
triax.goal1=-1e5
triax.goal2=rate
from yade import plot
O.engines=
def history():
plot.addData(
s11=-
s22=-
i=O.iter)
plot.plots={'e11': ('s11',),'e22': ('s22',)}
O.saveTmp()
plot.plot()
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Xifan Li
- Solved:
- Last query:
- Last reply: