Re: [Yade-users] [Question #683819]: Error during installation: libyade.so
Question #683819 on Yade changed: https://answers.launchpad.net/yade/+question/683819 YUFAN ZHAO gave more information on the question: @Bruno >please try to build again in a new folder and show the output of cmake this time. Thanks very much for your response. I built again into another folder and the info. is shown as below: root@yufan-virtual-machine:/home/yufan/Yade/Building# cmake -DCMAKE_INSTALL_PREFIX=../Installation ../Source -DENABLE_POTENTIAL_BLOCKS=1 -DENABLE_POTENTIAL_PARTICLES=1 -DENABLE_DEFORM=1 -DCHOLMOD_GPU=1 -DENABLE_SPH=1 -DENABLE_LIQMIGRATION=1 -DENABLE_MASK_ARBITRARY=1 -DENABLE_PROFILING=1 -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PythonInterp: /usr/bin/python (found version "2.7.12") -- Try OpenMP C flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Try OpenMP CXX flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Found OpenMP: -fopenmp -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found -- Found Qt4: /usr/bin/qmake (found version "4.8.7") -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- Version is set to 2019.01a -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so -- GTS using gts-config /usr/bin/gts-config -- Using GTS from /usr -- Found GL2PS: /usr/lib/libgl2ps.so -- Found CGAL: /usr/include, /usr/lib/x86_64-linux-gnu/libCGAL.so -- Found NumPy: version "1.11.0" /usr/lib/python2.7/dist-packages/numpy/core/include -- Found Loki: /usr/include -- GCC Version >= 4.8. Adding -ftrack-macro-expansion=0 -- GCC Version >= 4.8. Adding -save-temps -- GCC Version >= 4.9. Adding -fstack-protector-strong -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Boost version: 1.58.0 -- Found the following Boost libraries: -- python -- thread -- filesystem -- iostreams -- regex -- serialization -- system -- date_time -- chrono -- atomic -- Boost_VERSION: 105800 -- Boost_LIB_VERSION: 1_58 -- Boost_INCLUDE_DIRS: /usr/include -- Boost_LIBRARIES: /usr/lib/x86_64-linux-gnu/libboost_python.so/usr/lib/x86_64-linux-gnu/libboost_thread.so/usr/lib/x86_64-linux-gnu/libboost_filesystem.so/usr/lib/x86_64-linux-gnu/libboost_iostreams.so/usr/lib/x86_64-linux-gnu/libboost_regex.so/usr/lib/x86_64-linux-gnu/libboost_serialization.so/usr/lib/x86_64-linux-gnu/libboost_system.so/usr/lib/x86_64-linux-gnu/libboost_date_time.so/usr/lib/x86_64-linux-gnu/libboost_chrono.so/usr/lib/x86_64-linux-gnu/libboost_atomic.so/usr/lib/x86_64-linux-gnu/libpthread.so -- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0") -- Found BZip2: /usr/local/lib/libbz2.a (found version "1.0.6") -- Looking for BZ2_bzCompressInit -- Looking for BZ2_bzCompressInit - found -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.12") -- Found Eigen3, version: 3.2.92 -- Disable vectorization -- The imported target "vtkRenderingPythonTkWidgets" references the file "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake" but not all the files it references. -- The imported target "vtk" references the file "/usr/bin/vtk" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake" but not all the files it references. -- Found VTK -- Found OpenMP -- GTS using gts-config /usr/bin/gts-config -- Using GTS from /usr -- Checking for
Re: [Yade-users] [Question #683819]: Error during installation: libyade.so
Question #683819 on Yade changed: https://answers.launchpad.net/yade/+question/683819 Status: Needs information => Open YUFAN ZHAO gave more information on the question: @Jan Thank you very much. >A solution **could** be to use a newer version of Ubuntu (with no guarantee of success and all the disadvantages of system upgrading). Actually, I tried to install 2019 at first, but I encountered the problem that I described above. Then I turned to a different version (2018.02b) and the same problem occurred. -- 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 Jan Stránský proposed the following answer: > what i want to know is how to detect that wether polyhedra and sphere are contact or not. what is the use case? As it is on Yade forum, I assumed usage in Yade. Yade does: - reject "too far away" bodies by a collider uisng axis aligned boundong boxes - evaluate (determine contact point, normal, ...) potential contact. Yes/No contact is a possible natural outcome. In general case, one way (used currently) is to compute the closest point of the polyhedron surface (to the sphere's center) and test if that point is inside the sphere*. Currently I don't know about any other method (but I did no research on this topic) * plus the case when the sphere is entirely inside the polyhedron 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 #683851]: contact detection between polyhedra and sphere
Question #683851 on Yade changed: https://answers.launchpad.net/yade/+question/683851 A Dinesh posted a new comment: This reference also looks good [1]. See section 2. [1] https://www.sciencedirect.com/science/article/pii/037843719500111J -- 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 => Answered A Dinesh proposed the following answer: Hi Lip, That's what Jan is explaining, I guess. For a sphere-sphere interaction we have the contact force dependent on the amount of overlap. But in the case of polyhedra, one needs to check the amount of volume. And the force is proportional to the overlap volume. See figure 1 of reference [1]. In this figure the author Herrmann describes the interaction between two polygons (It is 2d, so he considers area, in place of volume). I think the same principle goes with sphere and polyhedra interaction. Can Jan conform? 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 #683851]: contact detection between polyhedra and sphere
Question #683851 on Yade changed: https://answers.launchpad.net/yade/+question/683851 Status: Answered => Open lip is still having a problem: Hi, Jan for instance, for two spheres,If the distance between the centers of a sphere is greater than the sum of the radii of two spheres, we can say that the two spheres came into contact. what you say above is something that we already know polyhedra and sphere are contact, what i want to know is how to detect that wether polyhedra and sphere are contact or not. -- 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 #683870]: install yadedaily
Question #683870 on Yade changed: https://answers.launchpad.net/yade/+question/683870 Robert Caulk posted a new comment: Follow progress [1]. [1]https://gitlab.com/yade-dev/trunk/issues/114 -- 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 #683870]: install yadedaily
Question #683870 on Yade changed: https://answers.launchpad.net/yade/+question/683870 Robert Caulk posted a new comment: I think you are doing everything correctly (besides capitalizing sudo and the lack of white space between packages/ and xenial/...). I run into the same error as you, so this may be a server-side problem :-(. I am not sure how to fix it, but I will initiate a developer issue to draw attention to it. -- 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 => Answered Jan Stránský proposed the following answer: > Can you atleast please give references for which Yade implemented the contact detection from? no :-) there is no reference, I just did something very simple to make it work. - on polyhedron, find closes point ("closest") to the sphere's center ("center"). - then follow [1] to compute normal, penetrationDepth, contactPoint. > in general it is too general question :-) you can e.g.: - use the current idea (see above) - use the current idea, somehow enhanced (evaluate differently vertex/edge/face cases) - do the same as polyhedron-polyhedron contact does, i.e. compute overlapping solid and use it for further computations (of contact point, normal direction etc.) - surely something else.. cheers Jan [1] https://github.com/yade/trunk/blob/master/pkg/dem/Polyhedra_Ig2.cpp#L436 -- 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 #683856]: Segmentation fault (core dumped) after erase some bodies
Question #683856 on Yade changed: https://answers.launchpad.net/yade/+question/683856 Status: Open => Answered Jan Stránský proposed the following answer: Hi Leonard, after findBodiesToBeDel, some bodies BodiesToBeDel multiple times (each body may be associated with multiple interactions). Then in findBodiesToBeDel, you erase some bodies, but then you try to erase the same ID (which would be OK), but you try to get the id as "i.id", but "i" was already erased and (probably, did not investigated it more) was deleted in C++, ending in segmentation fault. Try it with set using ids, something like: ### IdsToBeDel = set() def findBodiesToBeDel(): for i in Ids: for j in Ids: if i>=j: continue else: if O.interactions.has(i,j): IdsToBeDel.add(i) IdsToBeDel.add(j) findBodiesToBeDel() def eraseOverlapBodies(): for i in IdsToBeDel: O.bodies.erase(i) eraseOverlapBodies() ### 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