[Yade-users] [Question #683870]: install yadedaily
New question #683870 on Yade: https://answers.launchpad.net/yade/+question/683870 Hello, everyone. I'm using the code on the official website to install yadedaily: *** Sudo bash-c'echo "deb http://www.yade-dem.org/packages/xenial/;>/etc/apt/sources.list' Wget-O-http://www.yade-dem.org/packages/yadedev_pub.gpg | sudo apt-key add- Sudo apt-get update Sudo apt-get install yadedaily *** After entering the third line of code, the following problems arise: Hit: 1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic InRelease Hit: 2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates InRelease Hit: 3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security InRelease Hit: 4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-backports InRelease Hit: 5 http://ppa.launchpad.net/notepadq-team/notepadq/ubuntu bionic InRelease Hit: 6 https://download.sublimetext.com apt/stable/InRelease Get: 7 http://www.yade-dem.org/packages xenial/InRelease [2,443 B] Get: 8 http://www.yade-dem.org/packages xenial/Packages [2,187 B] Error: 8 http://www.yade-dem.org/packages xenial/Packages File size does not match (2188!= 2187). Are the mirrors you are using in sync? [IP: 194.254.65.201 80] Hashes of expected file: - Filesize: 2187 [weak] - SHA256:5c25df779ee330ac7a940c9f3ab67bfa0764adb92717998db09561af6257504b - SHA1: eafea4376a9f332d0c3fe3c56877bab7f05aeff6 [weak] - MD5Sum: 9b645a 998d0353d76318606c71044f [weak] Release file created at: Tue, 16 Apr 2019 07:26:04+ Downloaded 2,443 B, 3 seconds (859 B/s) Read the package list now... W: Target Packages (Packages) have been configured multiple times in / etc/apt/sources.list:9 and / etc/apt/sources.list:10 W: Target Translations (zh_CN) have been configured multiple times in / etc/apt/sources.list:9 and / etc/apt/sources.list:10 W: Target Translations (zh) have been configured multiple times in / etc/apt/sources.list:9 and / etc/apt/sources.list:10 W: Target Translations (en) are configured multiple times in / etc/apt/sources.list:9 and / etc/apt/sources.list:10 E: Unable to download http://www.yade-dem.org/packages/xenial/Packages.bz2 file size does not match (2188!= 2187). Are the mirrors you are using in sync? [IP: 194.254.65.201 80] Hashes of expected file: - Filesize: 2187 [weak] - SHA256:5c25df779ee330ac7a940c9f3ab67bfa0764adb92717998db09561af6257504b - SHA1: eafea4376a9f332d0c3fe3c56877bab7f05aeff6 [weak] - MD5Sum: 9b645a 998d0353d76318606c71044f [weak] Release file created at: Tue, 16 Apr 2019 07:26:04+ E: Some index files failed to download. If they are ignored, the old index files will be used instead. W: Target Packages (Packages) have been configured multiple times in / etc/apt/sources.list:9 and / etc/apt/sources.list:10 W: Target Translations (zh_CN) have been configured multiple times in / etc/apt/sources.list:9 and / etc/apt/sources.list:10 W: Target Translations (zh) have been configured multiple times in / etc/apt/sources.list:9 and / etc/apt/sources.list:10 W: Target Translations (en) are configured multiple times in / etc/apt/sources.list:9 and / etc/apt/sources.list:10 ** There was a problem after I entered the last line of command: sudo apt-get install yadedaily: Read the package list now... Analysis of dependency tree for software packages Read status information... complete E: Unable to locate the package yadedaily How should I operate and install Yadedaily properly? -- 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 #683856]: Segmentation fault (core dumped) after erase some bodies
New question #683856 on Yade: https://answers.launchpad.net/yade/+question/683856 Hi, I'd like to delete particles which has connection to other particles, I read some answers and follows the suggestion in [1]. The outcome is unstable, when I use "example one" to generate particles, Segmentation fault (core dumped) occurs. While when I comment "example one" and use "example two" to generate particles, it works well. Here is the MWE: from yade import pack, plot ## example one which leads to Segmentation fault# for i in range(10): O.bodies.append(sphere((0, 0, i), radius=1, color=[1, 1, 1])) O.bodies.append(sphere((5,5,5),radius=1,color=[1,1,1])) example two which works well # # O.bodies.append(sphere((0,0,0),radius=1,color=[1,1,1])) # O.bodies.append(sphere((0,1,0),radius=1,color=[1,1,1])) # O.bodies.append(sphere((0,2,0),radius=1,color=[1,1,1])) # O.bodies.append(sphere((3,0,0),radius=1,color=[1,1,1])) # O.bodies.append(sphere((3,1,1),radius=1,color=[1,1,1])) # O.bodies.append(sphere((5,5,5),radius=1,color=[1,1,1])) O.engines=[ ForceResetter(), InsertionSortCollider([Bo1_Sphere_Aabb()]), InteractionLoop( [Ig2_Sphere_Sphere_ScGeom()], [Ip2_FrictMat_FrictMat_FrictPhys()], [Law2_ScGeom_FrictPhys_CundallStrack()] ), NewtonIntegrator(damping=0.4), ] Ids=[] for i in O.bodies: Ids.append(i.id) O.step() BodiesToBeDel=[] def findBodiesToBeDel(): for i in Ids: for j in Ids: if i>=j: continue else: if O.interactions.has(i,j): BodiesToBeDel.append(O.bodies[i]) BodiesToBeDel.append(O.bodies[j]) findBodiesToBeDel() def eraseOverlapBodies(): for i in BodiesToBeDel: O.bodies.erase(i.id) eraseOverlapBodies() My yade version is 2018.02b on Ubuntu 18.04. Do you know what is the problem? many thanks Leonard [1]https://answers.launchpad.net/yade/+question/211937 -- 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 #683855]: Unbreakable bonds in Tension Test
Question #683855 on Yade changed: https://answers.launchpad.net/yade/+question/683855 Status: Open => Solved Yaniv Fogel confirmed that the question is solved: Thanks Luc Scholtès, 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
[Yade-users] [Question #683855]: Unbreakable bonds in Tension Test
New question #683855 on Yade: https://answers.launchpad.net/yade/+question/683855 Hello everyone, I had the following short conversation with Luc Scholts about the Uniaxial Tension test he performed in [1], and he thought this will also be of an interest to the forum. Original message: I am currently trying to duplicate your tension test from [1]. My only question is about the ubreakable bonds that you apply for particles in the recovery zone. How did you define these bonds? Did you define them as clumped, or did you just enter a bigger number for the tension (and Elastic modulus?) of the particles there? Thanks in advance, Yaniv [1] [1]L. Scholtès and F.-V. Donzé, “A DEM model for soft and hard rocks: Role of grain interlocking on strength,” Journal of the Mechanics and Physics of Solids, vol. 61, no. 2, pp. 352–369, Feb. 2013. Luc's response: I just define higher strength on the bonds located close to the boundaries. Please find attached a script where the procedure is implemented (lines 73 to 85). Cheers Luc His script: # -*- coding: utf-8 -*- # -*- encoding=utf-8 -*- from yade import ymport, plot Simulation of a uniaxial test (compression or tension depending on the sign of the loading rate "rate" defined below) # everything is documented at https://yade-dem.org/doc/index-toctree.html -> use the quick serach bar on the left of the page # SIMULATIONS DEFINED HERE Packing (previously built) PACKING='core_112_04_020.spheres' Simulation Control rate=0.003 # deformation rate (0.003 for tension, -0.03 for compression) iterMax=1 # maximum number of iterations saveVTK=2000 # saving output files for paraview OUT='tensionTest_r0.003' # output files Material microproperties for JCFPM (see https://yade-dem.org/doc/yade.wrapper.html?highlight=jcfpm#yade.wrapper.JCFpmMat) intR=1.2 # allows near neighbour interaction DENS=2500 # could be adapted to match material density: dens_DEM=dens_rock*(V_rock/V_particles)=dens_rock*1/(1-poro_DEM) def sphereMat(): return JCFpmMat(type=1,density=DENS,young=20e9,poisson=0.1,frictionAngle=radians(7),tensileStrength=1e6,cohesion=1e6) Loading of the packing into the simulation (O: Omega: the simulation) O.bodies.append(ymport.text(PACKING,material=sphereMat)) Set up boundary conditions (see https://yade-dem.org/doc/yade.utils.html?highlight=uniaxialtestfeatures#yade.utils.uniaxialTestFeatures) bb=utils.uniaxialTestFeatures() negIds,posIds,longerAxis,crossSectionArea=bb['negIds'],bb['posIds'],bb['axis'],bb['area'] # ENGINES DEFINED HERE O.engines=[ ForceResetter(), InsertionSortCollider([Bo1_Sphere_Aabb(aabbEnlargeFactor=intR,label='Saabb')]), InteractionLoop( [Ig2_Sphere_Sphere_ScGeom(interactionDetectionFactor=intR,label='SSgeom')], [Ip2_JCFpmMat_JCFpmMat_JCFpmPhys(cohesiveTresholdIteration=1,label='interactionPhys')], [Law2_ScGeom_JCFpmPhys_JointedCohesiveFrictionalPM(recordCracks=True,Key=OUT,label='interactionLaw')] ), UniaxialStrainer(strainRate=rate,axis=longerAxis,asymmetry=0,posIds=posIds,negIds=negIds,crossSectionArea=crossSectionArea,blockDisplacements=1,blockRotations=1,setSpeeds=0,stopStrain=0.1,dead=1,label='strainer'), GlobalStiffnessTimeStepper(active=1,timeStepUpdateInterval=10,timestepSafetyCoefficient=0.5, defaultDt=utils.PWaveTimeStep()), NewtonIntegrator(damping=0.4,label='newton'), PyRunner(iterPeriod=int(100),initRun=True,command='recorder()',label='data'), VTKRecorder(iterPeriod=int(saveVTK),initRun=True,fileName=OUT+'-',recorders=['spheres','jcfpm','cracks'],Key=OUT,label='vtk') ] # RECORDER DEFINED HERE def recorder(): yade.plot.addData({'i':O.iter, 'eps':strainer.strain, 'sigma':strainer.avgStress, 'tc':interactionLaw.nbTensCracks, 'sc':interactionLaw.nbShearCracks, 'te':interactionLaw.totalTensCracksE, 'se':interactionLaw.totalShearCracksE, 'unbF':utils.unbalancedForce()}) plot.saveDataTxt(OUT) # if you want to plot during simulation plot.plots={'i':('sigma')} plot.plot() # PREPROCESSING manage interaction detection factor during the first timestep and then set default interaction range ((cf. A DEM model for soft and hard rock, Scholtes & Donze, JMPS 2013)) O.step(); ### initializes the interaction detection factor SSgeom.interactionDetectionFactor=-1. Saabb.aabbEnlargeFactor=-1. # reinforce bonds at boundaries for tensile tests dim=utils.aabbExtrema() if rate>0: layerSize=0.15 for o in O.bodies: if isinstance(o.shape,Sphere): if ( o.state.pos[longerAxis]<(dim[0][longerAxis]+layerSize*(dim[1][longerAxis]-dim[0][longerAxis])) ) or (
Re: [Yade-users] [Question #683851]: contact detection between polyhedra and sphere
Question #683851 on Yade changed: https://answers.launchpad.net/yade/+question/683851 Status: Needs information => Open lip gave more information on the question: in general -- 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 #683708]: Elastic potential energy of polyhedra
Question #683708 on Yade changed: https://answers.launchpad.net/yade/+question/683708 Status: Answered => Solved Vasileios Angelidakis confirmed that the question is solved: Good point, thanks Jan! Regards, Vasileios -- 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 #683851]: contact detection between polyhedra and sphere
Question #683851 on Yade changed: https://answers.launchpad.net/yade/+question/683851 Status: Open => Needs information Jan Stránský requested more information: In general or how it is implemented in 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
[Yade-users] [Question #683851]: contact detection between polyhedra and sphere
New question #683851 on Yade: https://answers.launchpad.net/yade/+question/683851 hello i want to know the principle of contact detection between polyhedra and sphere,can you give me some advice? -- 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 #683819]: Error during installation: libyade.so
Question #683819 on Yade changed: https://answers.launchpad.net/yade/+question/683819 Bruno Chareyre posted a new comment: Hi, please try to build again in a new folder and show the output of cmake this time. Bruno -- 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 #683821]: Can not see existed particles in "show 3D"
Question #683821 on Yade changed: https://answers.launchpad.net/yade/+question/683821 Status: Open => Solved Leonard confirmed that the question is solved: Thanks Jan Stránský, 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 #683821]: Can not see existed particles in "show 3D"
Question #683821 on Yade changed: https://answers.launchpad.net/yade/+question/683821 Leonard posted a new comment: Thanks Jan, I reviewed some good answers and find two ways to solve it: 1. increase wall's stiffness ; 2. reduce O.dt. For this MWE, increasing stiffness could directly work. Thank you again for helping me diagnose the script. cheers Leonard -- 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 #683821]: Can not see existed particles in "show 3D"
Question #683821 on Yade changed: https://answers.launchpad.net/yade/+question/683821 Jan Stránský posted a new comment: > Could you give some advice how to solve this problem? not really, sorry :-) open a new question mentioning the actual problem of "explosion". 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 #683819]: Error during installation: libyade.so
Question #683819 on Yade changed: https://answers.launchpad.net/yade/+question/683819 Status: Open => Needs information Jan Stránský requested more information: > There was no change about the error after typing "make VERBOSE=ON". > > /usr/bin/c++ -fPIC ... the point was that now it is clear that -fPIC was used why you want to build Yade 2018.02b from source? A solution **could** be to use a newer version of Ubuntu (with no guarantee of success and all the disadvantages of system upgraging). 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 #683821]: Can not see existed particles in "show 3D"
Question #683821 on Yade changed: https://answers.launchpad.net/yade/+question/683821 Status: Needs information => Open Leonard gave more information on the question: Hi Jan, Sorry for my unclear explanation before. The initial AABB is: (Vector3(0.5412909461737815,7.493929978427943e-6,0.25167230754637605), Vector3(0.0699463745256682,0.06994859708381397,0.13982812911732453)) The final AABB is: (Vector3(-5975.64011320338,-8044.161847180958,-7929.333516594808), Vector3(6450.074621608338,8773.927665611896,6573.516040778314)) I think you are right that the particles are exploded. Could you give some advice how to solve this problem? Thanks Leonard -- 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 #683238]: Memory usage is too high
Question #683238 on Yade changed: https://answers.launchpad.net/yade/+question/683238 Chu posted a new comment: Thanks for Robert. I compiled newest trunk and rerun my script.It seems work sometimes.Actually,I did not find the condition that memory usage increase,and it still occur sometimes.Fortunately,I can continue my work. -- 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