Re: [Yade-users] [Question #647852]: Using openmp in a python script.
Question #647852 on Yade changed: https://answers.launchpad.net/yade/+question/647852 Status: Open => Answered Gary Pekmezi proposed the following answer: Deepak, I think you will need to load a multiprocessing library first, then you can loop through Yade objects using a multiprocessing pool [1] instead of the single-threaded sequential for loop you are currently using. For example, instead of: for b in O.bodies: pvel.append(b.state.vel); prot.append(b.state.angVel) you would do something like (please note it's just a sample, I haven't tested it): import multiprocessing as mp def appVel(i): pvel[i] = (O.bodies)[i].state.vel prot[i] = (O.bodies)[i].state.angVel if __name__=="__main__": numBods = len(O.bodies) pvel = mp.Array('d',range(numBods)) prot = mp.Array('d',range(numBods)) p=mp.Pool(numThreads) p.map(appVel,range(0,numBods)) [1] https://docs.python.org/2/library/multiprocessing.html -- 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 #650560]: micro parameters of Frictional material
Question #650560 on Yade changed: https://answers.launchpad.net/yade/+question/650560 Seti confirmed that the question is solved: Thanks Klaus Thoeni, that solved my question. -- 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 #650560]: micro parameters of Frictional material
Question #650560 on Yade changed: https://answers.launchpad.net/yade/+question/650560 Status: Answered => Solved Seti confirmed that the question is solved: Awesome. 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 #651196]: how much time is needed to run one triaxial model using yade? because I wonder it makes me wait large amount of minutes. and my ubuntu 15.01 shutdowns when I run y
Question #651196 on Yade changed: https://answers.launchpad.net/yade/+question/651196 Status: Open => Answered Jan Stránský proposed the following answer: Hello, > ubuntu 15.01 did you mean Ubuntu 15.10? If yes, why do you use this version? > how much time is needed to run one triaxial model using yade? it depends on mny factors - number of particles - stop conditions - material parameters of particles - power of used computer - ... it may be milliseconds, but it also could be days or weeks.. or theoretically any arbitrary time :-) > My ubuntu shutdown when I run yade models please give more information. Yade itself cannot directly make the computer shutdown. There are some indirect scenarios, e.g. because of CPU usage the temperature exceeds some limit and the computer is shutdown, but without more info it is mere guessing. cheers Jan -- 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 #650549]: triaxial test code
Question #650549 on Yade changed: https://answers.launchpad.net/yade/+question/650549 Jan Stránský posted a new comment: Hello, please read [1] again. Afterwards, read it once more with special focus on points 2, 3 and 6. Then try to give a more detailed info (as already asked in the previous answer). Otherwise there is almost zero chance to give you any reasonable advice. cheers Jan [1] https://yade-dem.org/wiki/Howtoask -- 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
[Yade-users] [Question #651196]: how much time is needed to run one triaxial model using yade? because I wonder it makes me wait large amount of minutes. and my ubuntu 15.01 shutdowns when I run yade
New question #651196 on Yade: https://answers.launchpad.net/yade/+question/651196 My ubuntu shutdown when I run yade models -- 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 #650549]: triaxial test code
Question #650549 on Yade changed: https://answers.launchpad.net/yade/+question/650549 Status: Answered => Open sisay atumo is still having a problem: Yade 2016 I installed it directly from internet with the command 'sudo apt install yade. -- 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