Re: [Yade-users] [Question #703319]: How to get Kdevelop to work properly
Question #703319 on Yade changed: https://answers.launchpad.net/yade/+question/703319 Status: Open => Solved Wang Yu confirmed that the question is solved: Thank you very much. VSCODE is very easy to use -- 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 #703319]: How to get Kdevelop to work properly
Question #703319 on Yade changed: https://answers.launchpad.net/yade/+question/703319 Status: Answered => Open Wang Yu is still having a problem: Hi, Robert Actually I have seen that you mentioned VSCode in your answer to this question [1]. I'd love to use VSCode for code writing and debugging. In fact, I already use VSCode in Windows, but just to read code. I don't know how to use VSCode in Ubuntu to debug Yade. Can you give me some guidance? Thanks a lot Yu [1]https://answers.launchpad.net/yade/+question/702251 -- 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 #703319]: How to get Kdevelop to work properly
Question #703319 on Yade changed: https://answers.launchpad.net/yade/+question/703319 Status: Answered => Open Wang Yu is still having a problem: Hi, Manfred I'm sorry I didn't express clearly. I was using Ubuntu 18.04 in the past, I guessed whether kdevelop would adapt better in the old version, so I used the 16.04. But as you said, I just installed Kdevelop 5.5.0 in Ubuntu 20.04 with the 'sudo apt-get install kdevelop' command. When I try to import the yade-trunk project, I still get error: in the GUI- Failed to configure project 'trunk' (error message: Configuration failed.). As a result, KDevelop's code understanding will likely be broken. To fix this issue, please ensure that the project's CMakeLists.txt files are correct, and KDevelop is configured to use the correct CMake version and settings. Then right-click the project item in the projects tool view and click 'Reload'. in the terminal kdevplatform.serialization: "The data-repository at /home/wangyu/.cache/kdevduchain/kdevelop-{e496a164-0d03-4699-b26d-27806e8f4ae2} has to be cleared." Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Yaru/16x16/legacy/" Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Yaru/22x22/legacy/" Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Yaru/24x24/legacy/" Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Yaru/32x32/legacy/" Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Yaru/48x48/legacy/" Invalid Context= "Apps" line for icon theme: "/usr/share/icons/Yaru/256x256@2x/apps/" Invalid Context= "Mimetypes" line for icon theme: "/usr/share/icons/Yaru/256x256@2x/mimetypes/" Invalid Context= "Mimetypes" line for icon theme: "/usr/share/icons/Yaru/scalable/mimetypes/" Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Adwaita/8x8/legacy/" Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Adwaita/16x16/legacy/" Invalid Context= "UI" line for icon theme: "/usr/share/icons/Adwaita/16x16/ui/" Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Adwaita/22x22/legacy/" Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Adwaita/24x24/legacy/" Invalid Context= "UI" line for icon theme: "/usr/share/icons/Adwaita/24x24/ui/" Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Adwaita/32x32/legacy/" Invalid Context= "UI" line for icon theme: "/usr/share/icons/Adwaita/32x32/ui/" Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Adwaita/48x48/legacy/" Invalid Context= "UI" line for icon theme: "/usr/share/icons/Adwaita/48x48/ui/" Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Adwaita/64x64/legacy/" Invalid Context= "UI" line for icon theme: "/usr/share/icons/Adwaita/64x64/ui/" Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Adwaita/96x96/legacy/" Invalid Context= "UI" line for icon theme: "/usr/share/icons/Adwaita/96x96/ui/" Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Adwaita/256x256/legacy/" Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Adwaita/512x512/legacy/" Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Adwaita/scalable/legacy/" Invalid Context= "UI" line for icon theme: "/usr/share/icons/Adwaita/scalable/ui/" Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication. Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) kdevplatform.util: Path::init: invalid/unsupported Path encountered: http://clang-tidy qrc:/qml/Develop.qml:139:21: QML Heading: Binding loop detected for property "font.pointSize" qrc:/qml/area_code.qml:87:9: QML Heading: Binding loop detected for property "font.pointSize" qrc:/qml/area_code.qml:63:9: QML Heading: Binding loop detected for property "font.pointSize" qrc:/qml/storage.js:24: TypeError: Cannot call method 'openDatabaseSync' of undefined qrc:/qml/storage.js:24: TypeError: Cannot call method 'openDatabaseSync' of undefined Couldn't start kuiserver from org.kde.kuiserver.service: QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name org.kde.kuiserver was not provided by any .service files") kdevelop.plugins.git: couldn'
[Yade-users] [Question #703319]: How to get Kdevelop to work properly
New question #703319 on Yade: https://answers.launchpad.net/yade/+question/703319 Hello, As mentioned in my previous question, I am going to use Kdevelop to write and debug my own constitutive model. In fact I already have an understanding of the basic framework of yade, but the Kdevelop I installed according to the tutorial does not work properly. I've been using yade in Ubuntu 18.06 for the past two years. Whether I follow the ‘’sudo apt-get install kdevelop” command or directly download the packaged kdevelop.AppImage file on the official website, errors will occur. The code in the project I imported cannot find the existing library, and the terminal reports errors of "failed to parse translation unit" (although kdevelop will report a lot of errors, but I guess many can be ignored). I tried a lot but couldn't solve it, so I guess it might be a version or dependency library issue. I installed ubuntu16.04 in vmware, and executed ''sudo apt-get install kdevelop' and things seemed to get better. The code can find its library, but the classes in some code files don't seem to be defined correctly (the code is absolutely correct, but Kdevelop doesn't seem to treat it as a class), so that their mutual references are still unrecognized. Eventually I still want to be able to debug yade in Ubuntu 18.06. Can someone explain why? Do I have to install Kdevelop from source for it to work? Thanks, Yu -- 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 #703157]: How to Include Rolling Resistance Based on Capillary and Lubrication Laws
New question #703157 on Yade: https://answers.launchpad.net/yade/+question/703157 Hello, I attempt to use both Lubrication law and Capillary law in my simulation. In addition, I also want to include rolling resistance in the model, which does not exist in the Law2_ScGeom_ImplicitLubricationPhys(). Can someone help me how to achieve this? Thanks, Yu -- 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 #703157]: How to Include Rolling Resistance Based on Capillary and Lubrication Laws
Question #703157 on Yade changed: https://answers.launchpad.net/yade/+question/703157 Description changed to: Hello, I attempt to use both Lubrication law and Capillary law in my simulation. In addition, I also want to include rolling resistance in the model, which does not exist in the Law2_ScGeom_ImplicitLubricationPhys(). Can someone help me how to achieve this? From my understanding, maybe modifying the source code of Law2_ScGeom_ImplicitLubricationPhys() is a possible way? Or is there an easier way? such as combining with other Laws? Thanks, Yu -- 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 #702554]: Can I use Capillary and Lubrication Laws at the same time?
Question #702554 on Yade changed: https://answers.launchpad.net/yade/+question/702554 Status: Answered => Open Wang Yu is still having a problem: Hello Jérôme, Thanks a lot for your answer, it helped me a lot as I haven't really used Law2_ScGeom_CapillaryPhys_Capillarity(). From what I understand now, Law2_ScGeom_ImplicitLubricationPhys() is a lawFunctor, so can it not be used with another Law (eg Law2_ScGeom6D_CohFrictPhys_CohesionMoment())? Actually I want to not only involve Lubrication and Capillarity in the model, but also include rolling resistance in the model, which does not exist in the Law2_ScGeom_ImplicitLubricationPhys(). Can someone help me how to achieve this? Best regards Yu -- 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 #702554]: Can I use Capillary and Lubrication Laws at the same time?
New question #702554 on Yade: https://answers.launchpad.net/yade/+question/702554 Hello, I want to use both Lubrication law and Capillary law in my simulation. Do I just have to add [Law2_ScGeom_CapillaryPhys_Capillarity(capillaryPressure = 10), Law2_ScGeom_ImplicitLubricationPhys()] to the engine? Does this work in code? Thanks, Yu -- 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 #702313]: Half-filling angles in Law2_ScGeom_CapillaryPhys_Capillarity
Question #702313 on Yade changed: https://answers.launchpad.net/yade/+question/702313 Status: Answered => Solved Wang Yu confirmed that the question is solved: Thanks Jérôme Duriez, 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 #691573]: How to creat 2D random dense pack in a disc-shape plane?
Question #691573 on Yade changed: https://answers.launchpad.net/yade/+question/691573 Status: Answered => Solved Wang Yu 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 #692945]: How many threads should be selected to achieve the best speed?
Question #692945 on Yade changed: https://answers.launchpad.net/yade/+question/692945 Status: Answered => Open Wang Yu is still having a problem: Thanks Jan, I have just tried some simulations. I use different "-j" and "--cores"parameters and found that : When I use "-j 20" the speed is fastest. But whether it's '--cores=20' or '--cores=10' or whatever number, the computing speed remains mediocre, show little acceleration. I want to know why it's different from doc's description, why the speeds are different with -J and --cores? Also, as you said, why isn't speed the best when using the maximum number of threads?I hope you can give me a brief explanation. Best regards Wangyu -- 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 #692945]: How many threads should be selected to achieve the best speed?
New question #692945 on Yade: https://answers.launchpad.net/yade/+question/692945 Hello I am confused about OpenMP threads in Yade 1. In my understanding, the number of cores and threads are different, with two threads per core, but the doc notes that -j and --cores seem to be equivalent? Shouldn't -j be double --cores? 2. I also found something in https://answers.launchpad.net/yade/+question/681609, for example, my cpu is i9 10900, 10-cores and 20-threads. So, what number should I use in "-j" "--cores" "OMP_NUM_THREADS" respectively?? Thank you for your help, Wangyu -- 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 #692106]: Output of force chain in Periodic simulation looks very strange
Question #692106 on Yade changed: https://answers.launchpad.net/yade/+question/692106 Status: Needs information => Open Wang Yu gave more information on the question: I intended to put my MWE last time but actually I am using the FEMxDEM framework by NingGuo and this forum doesn't allow me to upload .gz file. So I made a similar situation using the origin RVEpacking in the /examples/FEMxDEM. My own RVE after running FEMxDEM framework is much worse(obvious) than this. from __future__ import print_function from yade import pack from yade import export O.materials.append(FrictMat(young=6.e8,poisson=.8,frictionAngle=.0)) sp = pack.SpherePack() size = .24 sp.makeCloud(minCorner=(0,0,.05),maxCorner=(size,size,.05),rMean=.005,rRelFuzz=.4,num=400,periodic=True,seed=1) sp.toSimulation() O.cell.hSize = Matrix3(size,0,0, 0,size,0, 0,0,.1) print(len(O.bodies)) for p in O.bodies: p.state.blockedDOFs = 'zXY' p.state.mass = 2650 * 0.1 * pi * p.shape.radius**2 # 0.1 = thickness of cylindrical particle inertia = 0.5 * p.state.mass * p.shape.radius**2 p.state.inertia = (.5*inertia,.5*inertia,inertia) O.dt = utils.PWaveTimeStep() print(O.dt) O.engines = [ ForceResetter(), InsertionSortCollider([Bo1_Sphere_Aabb()]), InteractionLoop( [Ig2_Sphere_Sphere_ScGeom()], [Ip2_FrictMat_FrictMat_FrictPhys()], [Law2_ScGeom_FrictPhys_CundallStrack()] ), PeriTriaxController( dynCell=True, goal=(-1.e5,-1.e5,0), stressMask=3, relStressTol=.001, maxUnbalanced=.001, maxStrainRate=(.5,.5,.0), doneHook='term()', label='biax' ), NewtonIntegrator(damping=.1) ] def term(): O.engines = O.engines[:3]+O.engines[4:] print(getStress()) print(O.cell.hSize) setContactFriction(0.5) O.cell.trsf=Matrix3.Identity O.cell.velGrad=Matrix3.Zero for p in O.bodies: p.state.vel = Vector3.Zero p.state.angVel = Vector3.Zero p.state.refPos = p.state.pos p.state.refOri = p.state.ori O.save('0.yade.gz') O.pause() O.run();O.wait() below is output part### vtk1 = export.VTKExporter('./tmp/force_chain') vtk1.exportInteractions(what=dict(forceN='i.phys.normalForce.norm()')) vtk2 = VTKRecorder(fileName='./tmp/particles',recorders=['spheres']) vtk2() -- 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 #692106]: Output of force chain in Periodic simulation looks very strange
New question #692106 on Yade: https://answers.launchpad.net/yade/+question/692106 Hello! I use "export.VTKExporter.exportInteractions(what=dict(forceN='i.phys.normalForce.norm()'))" to export force chain and "VTKRecorder" to export spheres' information like positions. But I found that the force chain and the particles do not match perfectly when I observed them in paraview. In detail, some of the force chain seems to fly out of the periodic cell. For example, particles positions on the left/up side of the cell show no force chain(there should have been). On the right/down side of the cell, the force chain(should appear on the left/up) appear out of the cell. I don't know if I made myself clear. I guess the problem can be solved by using "cell.wrap" properly but I don't know how. Looking forward to your help. 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 #691986]: Import txt format to YADE
Question #691986 on Yade changed: https://answers.launchpad.net/yade/+question/691986 Wang Yu proposed the following answer: Hello, In my recent simulation I used ymport.textExt('xxx.txt',format='x_y_z_r_attrs',attrs=attrs) to import particles information successfully. To do that, your 'file.txt' should follow the format(x_y_z_r_attrs). For more detailed information you can read the 'ymport' section of the documentation. I hope that helps. -- 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 #691644]: BrokenPipeError when use multiprocessing pool in FEM╳DEM
New question #691644 on Yade: https://answers.launchpad.net/yade/+question/691644 Dear all, In the FEM╳DEM simulation(/examples/FEM╳DEM/triaxialRough.py), I met "BrokenPipeError: [Errno 32] Broken pipe" when use multiprocessing pool in python(due to a mass of RVE packings). My domain of simulation is 3D. I found that the multiprocessing pool work successful when my RVE packing is small enough, but when I use an RVE of more than 1000 particles(mean radius=0.005), the error code will appear (BrokenPipeError: [Errno 32] Broken pipe)and the simulation would stop. With my poor understanding of multiprocessing library, I guess this is probably due to too many particles leading to too much data. In addition, I use cohesive particle model in RVEpacking. Could anyone help me with this problem? Thank you for attention -- 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 #691573]: How to creat 2D random dense pack in a disc-shape plane?
New question #691573 on Yade: https://answers.launchpad.net/yade/+question/691573 I want to creat a 2D random dense pack in a disc-shape plane, and I've tried the randomdensepack function using the inCylinder Predicate. I tried to set the thickness of the cylinder to zero but the randomdensepack isn't for 2D. The Cylinder volume can't be zero. I've thought about to use Makecloud and PeriTriaxController. It works in 2D if minCorner[k]=maxCorner[k] for one coordinate. But it seems to apply only in a parallelepiped not a cylinder. So, what should I do? Please give me some advice or examples. Thank you! -- 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 #691398]: Why are there two boxes‘ illustration in the documentation
Question #691398 on Yade changed: https://answers.launchpad.net/yade/+question/691398 Status: Answered => Solved Wang Yu confirmed that the question is solved: Thanks Jérôme Duriez, 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 #691398]: Why are there two boxes‘ illustration in the documentation
New question #691398 on Yade: https://answers.launchpad.net/yade/+question/691398 Hello everyone, I‘ ve found there are two illustrations of box(In Yade wrapper class reference below the Shape class and in Yade Utils module respectively ) What's the difference between the two boxes? I only found one in the source file utils.py in Folder 'trunk/py'. Maybe it's just my lack of understanding of the structure of 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
Re: [Yade-users] [Question #690742]: How does the interaction.erase function work in the agglomerate examples?
Question #690742 on Yade changed: https://answers.launchpad.net/yade/+question/690742 Wang Yu posted a new comment: Thanks for your reply It's that mean my understanding of "O.interactions.erase break the interaction for a moment, and the cohesive part of interaction can not be rebuilt because of the cohesiveThresholdIter of CpmMat" is right? And I will open an new question about "How to creat some agglomerates:the interaction between partcles within an agglomerate is different from interaction between agglomerates by their different arguments or absolutely different Ip2 and Law2 functors" after a while. Hope to communicate with you again Thank you again! At 2020-05-16 21:20:50, "Jan Stránský" wrote: >Your question #690742 on Yade changed: >https://answers.launchpad.net/yade/+question/690742 > >Status: Open => Answered > >Jan Stránský proposed the following answer: >The idea is to let Yade connect automatically all "close" particles with >cohesive bonds (using 'factor', aabbEnlargeFactor and >interactionDetectionFactor). >It connects particles within a grain, which is OK. >But it also connect close particles form different grains. These interactions >are deleted by O.interactions.erase > >"the special property of CpmMat" is >Ip2_CpmMat_CpmMat_CpmPhys.cohesiveThresholdIter, which tells Yade to >consider new interactions ad s non-cohesive if O.iter > this value. > >cheers >Jan > >-- >If this answers your question, please go to the following page to let us >know that it is solved: >https://answers.launchpad.net/yade/+question/690742/+confirm?answer_id=3 > >If you still need help, you can reply to this email or go to the >following page to enter your feedback: >https://answers.launchpad.net/yade/+question/690742 > >You received this question notification because you asked the 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 #690742]: How does the interaction.erase function work in the agglomerate examples?
Question #690742 on Yade changed: https://answers.launchpad.net/yade/+question/690742 Status: Answered => Solved Wang Yu 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 #690742]: How does the interaction.erase function work in the agglomerate examples?
Question #690742 on Yade changed: https://answers.launchpad.net/yade/+question/690742 Wang Yu 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 #690742]: How does the interaction.erase function work in the agglomerate examples?
Question #690742 on Yade changed: https://answers.launchpad.net/yade/+question/690742 Wang Yu gave more information on the question: Thanks a lot Jan! Maybe I have some misunderstanding with O.interactions.erase. If deleting existing interaction has no particular effect on future interactions,so what's the purpose of this function? I found that partcles within an agglomerate are bonded tightly (their interaction may have some "cohesive" property). If the new interactions(partcles between different agglomerates) are created according to the same functors(Ig2, Ip2 and Law2 for CpmMat spheres), why aren't there the same cohesive properties (there are no bond between partcles from two agglomerates)? According to my guess(may be wrong),O.interactions.erase break the interaction for a moment, and the bond part of interaction (like cohesive) can not be rebuilt because of the special property of CpmMat. Am I right? In fact, I want to creat some agglomerates: A-type-interaction between partcles within an agglomerate is different from B-type-interaction between agglomerates. Is there any example or advise for my question? PS:With my current ideas,I think out of two approaches: 1. A-type-interaction and B-type-interaction use the same Ip2 and Law2 functors but with different arguments(about stiffness or cohesive property) 2. Two types of interactions use different Ip2 and Law2 functors. Do these approaches accessible in Yade? Thanks Wang At 2020-05-16 04:41:00, "Jan Stránský" wrote: >Your question #690742 on Yade changed: >https://answers.launchpad.net/yade/+question/690742 > >Status: Open => Answered > >Jan Stránský proposed the following answer: >Hello, > >> I am new to Yade > >welcome :-) > >> what IPhys and Law would be used in these pairs of partcles in the >following simulation by default or any manual definition when they are >deleted already? > >deleting existing interaction has no particular effect on future interactions. >New interactions are simply created according to particles' materials and Ig2, >Ip2 and Law2 functors [1]. > >> I have found that there really exist interaction between a pair of >bodies (their interaction have been deleted before),but I don't >understand how to define the interaction attribute > >Please be more specific what is "interaction attribute". The creation is >governed by particles' materials and Ig2, Ip2 and Law2 functors. >You can then access the interaction and do other modifications if needed. > >cheers >Jan > >[1] https://yade-dem.org/doc/user.html#functors-choice > >-- >If this answers your question, please go to the following page to let us >know that it is solved: >https://answers.launchpad.net/yade/+question/690742/+confirm?answer_id=0 > >If you still need help, you can reply to this email or go to the >following page to enter your feedback: >https://answers.launchpad.net/yade/+question/690742 > >You received this question notification because you asked the 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 #690742]: How does the interaction.erase function work in the agglomerate examples?
Question #690742 on Yade changed: https://answers.launchpad.net/yade/+question/690742 Status: Answered => Open Wang Yu is still having a problem: Thanks a lot Jan! Maybe I have some misunderstanding with O.interactions.erase. If deleting existing interaction has no particular effect on future interactions,so what's the purpose of this function? I found that partcles within an agglomerate are bonded tightly (their interaction may have some "cohesive" property). If the new interactions(partcles between different agglomerates) are created according to the same functors(Ig2, Ip2 and Law2 for CpmMat spheres), why aren't there the same cohesive properties (there are no bond between partcles from two agglomerates)? According to my guess(may be wrong),O.interactions.erase break the interaction for a moment, and the bond part of interaction (like cohesive) can not be rebuilt because of the special property of CpmMat. Am I right? In fact, I want to creat some agglomerates: A-type-interaction between partcles within an agglomerate is different from B-type-interaction between agglomerates. Is there any example or advise for my question? Thanks Wang -- 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 #690742]: How does the interaction.erase function work in the agglomerate examples?
New question #690742 on Yade: https://answers.launchpad.net/yade/+question/690742 Hello everyone, I am new to Yade. I have run the script simulation.py in agglomerate examples in the trunk version https://github.com/yade/trunk/tree/master/examples/agglomerate It use O.interactions.erase(i.id1,i.id2) (line 52) to delete specified interactions that has been created using Ip2_CpmMat_CpmMat_CpmPhys(cohesiveThresholdIter=1) IPhys and Law2_ScGeom_CpmPhys_Cpm() Lawfunctor. So,what IPhys and Law would be used in these pairs of partcles in the following simulation by default or any manual definition when they are deleted already? I have found that there really exist interaction between a pair of bodies (their interaction have been deleted before),but I don't understand how to define the interaction attribute -- 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