yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #17306
Re: [Question #669006]: Pyrunner(command) problem for Triaxial simulation
Question #669006 on Yade changed:
https://answers.launchpad.net/yade/+question/669006
De zhang gave more information on the question:
Hi,
I simplfy my procedure problems as following:
############
#generation of assembly
O.engines=[...
...
PyRunner=(command='TraiStep()',iterPeriod=1,label='checker'),
]
def TraiStep():
if StepNum == 1:
PyRunner(command='WallStressGet()',iterPeriod=1)
#checker.command='WallStressGet()' #get the wall stress
....
elif StepNum == 2:
PyRunner(command='WallStressGet()',iterPeriod=1)
#checker.command='WallStressGet()' #get the wall stress
elif StepNum == 3:
...
elif StepNum == 4:
StepNum=StepNum+1
elif StepNum == 5:
...
O.engines=O.engines+[PyRunner(command='Confining()',iterPeriod=1)]+[PyRunner(command='AxialLoading()',iterPeriod=1)]+[PyRunner(command='addPlotData()',iterPeriod=1)]
def WallStressGet():
...
def Confining():
...
def AxialLoading():
...
def addPlotData():
...
########################################
Through my try, I found that after O.engines instance # PyRunner=(command='TraiStep()') # the O.engines in StepNum 5 run for resetting?
How to solve this problem?
--
You received this question notification because your team yade-users is
an answer contact for Yade.