Re: [Yade-users] [Question #298001]: Input Kn and Ks directly
Question #298001 on Yade changed: https://answers.launchpad.net/yade/+question/298001 Klaus Thoeni proposed the following answer: Hi, you can indeed use FrictViscoMat and the corresponding functors to do this task. Have a closer look at [1] and you will see that the Ip2 functor supports MatchMaker where you can define kn, kRatio and frictAngle. ks is defined by the attribute kRatio, i.e., ks=kn*kRatio. If no MatchMaker are defined the standard implementation of Yade (harmonic average) is used. It's that easy ;-) HTH Klaus [1] https://yade- dem.org/doc/yade.wrapper.html#yade.wrapper.Ip2_FrictViscoMat_FrictViscoMat_FrictViscoPhys -- 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 #298001]: Input Kn and Ks directly
Question #298001 on Yade changed: https://answers.launchpad.net/yade/+question/298001 Status: Open => Answered Jérôme Duriez proposed the following answer: Hello, No, Ip2_FrictMat_FrictMat_MindlinPhys(kn=myValueKn, ks=myValueKs) would not work since Ip2_FrictMat_FrictMat_MindlinPhys does not have such attributes "kn" and "ks", see the doc [1]. In fact, I think none of the IPhysFunctor (see the complete list in [2]) proposes such attributes. What is possible though, is to access directly the kn and ks of interactions, and modify them as you wish for cont in O.interactions: cont.phys.kn = myValueKn # see corresponding attribute [3] cont.phys.ks = myValueKs # see [4] With such method however, future contacts will have properties defined by their materials and the chosen Ip2, and thus most probably distinct from myValueKn / myValueKs. Maybe you could find a workaround using "MatchMaker" (search for it through the doc and previous questions, I am personally not used to it) Jerome [1] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Ip2_FrictMat_FrictMat_MindlinPhys [2] https://yade-dem.org/doc/yade.wrapper.html#iphysfunctor [3] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.NormShearPhys.kn [4] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.NormShearPhys.ks -- 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 #297855]: AttributeError: 'module' object has no attribute 'inGtsSurface'
New question #297855 on Yade: https://answers.launchpad.net/yade/+question/297855 Hi all. I am currently taking some code that I developed on my office PC and using it on a HPC cluster. The code generated a volume of particles from a predicate determined by GTS and works correctly on the office computer, but when I tried to run the script on the HPC cluster, it gives "AttributeError: 'module' object has no attribute 'inGtsSurface'" despite (as far as I'm aware) all of the relevant modules being installed to the HPC, including python, boost, gts, and yade. Here is the relevant code section. from yade import pack,plot,bodiesHandling, qt, utils from math import tan,sin,cos,sqrt internalfrictionangle=28*(pi/180) externalfrictionangle=26*(pi/180) width=.1 rampangle=60*(pi/180) shutterheight=.2 factor=1 radius=.0025 cwidth=width insertradius=.2464 shutterpoint=1.448+insertradius*tan(rampangle/2) ramplength=shutterpoint+shutterheight/(tan(rampangle-internalfrictionangle)) runofflength=1.7 damp=0.015 finish=40 O.materials.append(FrictMat(density=1730,young=65e6,poisson=.2,frictionAngle=internalfrictionangle,label='sand')) #particle generation #base points of wedge v0=gts.Vertex(-.001+((cwidth-width)/2),cos(rampangle)*shutterpoint,-.001+sin(rampangle)*shutterpoint) v1=gts.Vertex(-.001+((cwidth+width)/2),cos(rampangle)*shutterpoint,-.001+sin(rampangle)*shutterpoint) #back top points of wedge v2=gts.Vertex(-.001+((cwidth-width)/2),(cos(rampangle)*ramplength),-.001+(sin(rampangle)*ramplength)) v3=gts.Vertex(-.001+((cwidth+width)/2),(cos(rampangle)*ramplength),-.001+(sin(rampangle)*ramplength)) #front top points of wedge v4=gts.Vertex(-.001+((cwidth-width)/2),(cos(rampangle)*shutterpoint)-(sin(rampangle)*shutterheight),-.001+(sin(rampangle)*shutterpoint)+(cos(rampangle)*shutterheight)) v5=gts.Vertex(-.001+((cwidth+width)/2),(cos(rampangle)*shutterpoint)-(sin(rampangle)*shutterheight),-.001+(sin(rampangle)*shutterpoint)+(cos(rampangle)*shutterheight)) e0=gts.Edge(v0,v1) ... and so on f0=gts.Face(e0,e1,e2) ... and so on surf=gts.Surface() for f in (f0,f1,f2,f3,f4,f5,f6,f7): surf.add(f) #surf.translate(0,0,0) pred=pack.inGtsSurface(surf) sp=pack.randomDensePack(pred,spheresInCell=1000,radius=radius,rRelFuzz=0.25,color=(0,0,1),returnSpherePack=True) sp.toSimulation() The actual error message is below: Running script simulation.py Traceback (most recent call last): File "/cm/shared/apps/yade-2016.06a/bin/yade", line 182, in runScript execfile(script,globals()) File "simulation.py", line 70, in pred=pack.inGtsSurface(surf) AttributeError: 'module' object has no attribute 'inGtsSurface' As far as I can tell this is some sort of problem with the GTS implementation, but I don't know what. Let me know if you can help me with this issue. -- 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 #297115]: Is it possible to use ViscElMat with cohesion?
Question #297115 on Yade changed: https://answers.launchpad.net/yade/+question/297115 paula posted a new comment: Thanks for your help Jérôme. -- 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 #295666]: dense sample/triaxial test
Question #295666 on Yade changed: https://answers.launchpad.net/yade/+question/295666 Status: Open => Expired Launchpad Janitor expired the question: This question was expired because it remained in the 'Open' state without activity for the last 15 days. -- 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 #295814]: MatchTracker for Cohesion
Question #295814 on Yade changed: https://answers.launchpad.net/yade/+question/295814 Status: Open => Expired Launchpad Janitor expired the question: This question was expired because it remained in the 'Open' state without activity for the last 15 days. -- 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 #295951]: yade on kubuntu 16.04
Question #295951 on Yade changed: https://answers.launchpad.net/yade/+question/295951 Status: Answered => Open Klaus Thoeni is still having a problem: Hi James, thanks for confirming. I just filed a bug report. Hopefully we will soon find out what the problem is. Klaus -- 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