Re: [Yade-users] [Question #669006]: Pyrunner(command) problem for Triaxial simulation

2018-05-15 Thread De zhang
Question #669006 on Yade changed:
https://answers.launchpad.net/yade/+question/669006

Status: Open => Solved

De zhang confirmed that the question is solved:
@Robert, @Jan Stránský, Thanks! I have found the problem and comprehend the 
using of PyRunner and O.engines+.
Thank you for your help~
Best Regards!
De Zhang

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #669006]: Pyrunner(command) problem for Triaxial simulation

2018-05-14 Thread De zhang
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.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #669006]: Pyrunner(command) problem for Triaxial simulation

2018-05-14 Thread De zhang
Question #669006 on Yade changed:
https://answers.launchpad.net/yade/+question/669006

De zhang gave more information on the question:
The code in last step of   TraiStep():


O.engines=O.engines+[PyRunner(command='Confining()',iterPeriod=1)]+[PyRunner(command='AxialLoading()',iterPeriod=1)]+[PyRunner(command='addPlotData()',iterPeriod=1)]


I want to do confining control and loading at the same time, but it seems to be 
another situation with loadingplate disappeared and confining stress dose  not 
refresh when procedure come to the last StepNum.
I am confused about the use of  '.command=''' or 
O.engines+PyRunner(command='...').
Please help me~ Thanks

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #669006]: Pyrunner(command) problem for Triaxial simulation

2018-05-14 Thread De zhang
Question #669006 on Yade changed:
https://answers.launchpad.net/yade/+question/669006

De zhang posted a new comment:
Dear RCaulk,
Thank you for your reply~
You are right that I was trying to make a cubical simulation of triaxial 
test. Howerver,  My purpose is to work on nonsphere assembly, so the 
TriaxialStressController may not work as it can only deal with the contact of 
sphere.
   I found that problem of 'command=''' or 
O.engines+PyRunner(command='...') will cause other situations, I am doubt that 
wether my code of using '.command=' and 'PyRunner' were right?

Best regards,

De Zhang

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #669006]: Pyrunner(command) problem for Triaxial simulation

2018-05-14 Thread Robert Caulk
Question #669006 on Yade changed:
https://answers.launchpad.net/yade/+question/669006

Robert Caulk posted a new comment:
Hello De zhang,

I admit, I only skimmed through your code. You appear to be controlling
the triaxial stresses of a cubical specimen manually through python. Am
I right?

Is there a reason you are not using the thoroughly tested and efficient
TriaxialStressController [1]?

Cheers,

Robert

https://github.com/yade/trunk/blob/master/examples/triax-tutorial
/script-session1.py

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #669006]: Pyrunner(command) problem for Triaxial simulation

2018-05-14 Thread De zhang
Question #669006 on Yade changed:
https://answers.launchpad.net/yade/+question/669006

De zhang gave more information on the question:
Hi,
I am confused about the implemtation of 'checker.command=''' and
in the subroutine the 'O.engines=O.engines+PyRunner(command='...')', Anyone can 
help me ,Thanks~

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #669006]: Pyrunner(command) problem for Triaxial simulation

2018-05-14 Thread De zhang
Question #669006 on Yade changed:
https://answers.launchpad.net/yade/+question/669006

De zhang gave more information on the question:
Hi,
 The last StepNum, ' 
O.engines=O.engines+[PyRunner(command=...)+PyRunner(command=...)] 'seem to 
start a new simulation that confining wall stress was nun, and loading plate 
disappeared! I don't know why?

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #669006]: Pyrunner(command) problem for Triaxial simulation

2018-05-14 Thread De zhang
Question #669006 on Yade changed:
https://answers.launchpad.net/yade/+question/669006

De zhang posted a new comment:
Hi, 
The program has another problem that after StepNum 3 , the loading plate 
disappeared, and it ran to StepNum5 , the subroutine 'Confining()' seem to be 
no work.
Anyone can help me to solve this problem?

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp