Collision detection and dense sphere packing problem with compiled yade-daily
Hi,
I already had yade-daily installed on my linux mint 15 and it worked very well.
I compiled yade-daily package on my Ubuntu 13.10 (since I intended to use coupled analysis using PFV method, and yade-daily installable was not prepared due to some reasons).
I wrote a code (something like PFV-oedometer.py example but using randomDensePack command) it worked good on my former version of yade-daily, but when I try to run it on my compiled version of yade-daily, i got strange errors! which I had not faced them before with the same code!:
1) Sometimes the "randomDensePack" works, and sometimes it does not work (no spheres will be generated!) with the same code.
2) In the cases that the "randomDensePack" worked, when I run the code, the collision detection between facets and sphere does not work (see the attached snapshots).
Another thing that makes me even more surprised is that when I try to run the oedometer code example code, it works very well and there is no problem about generating spheres and collision detection!!
What do you think about the source of problem? any thing I missed when compiling?
FYI I've appended below the warnings I got after running my code (In the case of generation of spheres):
(1) WARN /home/ehsan/
(2) /home/ehsan/
(3) warnings.warn('The default behavior will change; specify returnSpherePac
The I used to get the first warning in the yade-daily I had before, but I got also 2 and 3, for the yade I compiled myself.
Thank you in advance
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Anton Gladky
- Solved:
- Last query:
- Last reply:
Revision history for this message
![]() |
#1 |
Hi,
For 1) I also faced the situation some times. randomDensePack() uses some different operations to generate your packing : generate a cloud of spheres not in contact, then perform an isotropic compression to obtain an dense sample... It may happen that the cloud generation is not successfull (e.g. because you tried to put too many non overlapping spheres in a given volume or something like that) => no packing...
Nothing really bad in itself, retest a second time : you observed yourself that sometimes it works ! If you want however to get rid of this feature, consider save a sucessfully generated sample that you could import (with ymport.text) each time you launch your script
For the warnings, they are all related to the way you generate your packing, and are also not really bad from my point of view (once you get your packing, you can consider that all is ok). You will understand 1) if you dive into the details of randomDensePack().
2) and 3) are in fact apparently the same, it is more or less self-explanatory, and, again it depends on the commands you typed to get a packing.
Your problem 2) is more annoying. Maybe you define wrong "contact laws" so that sphere-facets interactions could be handled. We would need your script to give you more info.
Jerome
Revision history for this message
![]() |
#2 |
I guess running same code in two different versions and getting different feedback, is a strange and there should be a problem with my compiled yade-daily.
I compiled yade-daily again on my Ubuntu 13.10 and reported all the responses I got below (sorry if it is too long!):
-------
ehsan@ehsan-
-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- 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
-- 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
-- Found PythonLibs: /usr/lib/
-- Found PythonInterp: /usr/bin/python (found version "2.7.5")
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_
-- Performing Test OpenMP_
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_
-- Performing Test OpenMP_
-- 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.4")
-- The imported target "vtkParseJava" references the file
"/usr/
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/
but not all the files it references.
-- The imported target "vtkWrapJava" references the file
"/usr/
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/
but not all the files it references.
-- The imported target "vtkCommonJava" references the file
"/usr/
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/
but not all the files it references.
-- The imported target "vtkFilteringJava" references the file
"/usr/
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/
but not all the files it references.
-- The imported target "vtkImagingJava" references the file
"/usr/
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/
but not all the files it references.
-- The imported target "vtkGraphicsJava" references the file
"/usr/
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/
but not all the files it references.
-- The imported target "vtkGenericFilt
"/usr/
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/
but not all the files it references.
-- The imported target "vtkIOJava" references the file
"/usr/
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/
but not all the files it references.
-- The imported target "vtkRenderingJava" references the file
"/usr/
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/
but not all the files it references.
-- The imported target "vtkVolumeRende
"/usr/
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/
but not all the files it references.
-- The imported target "vtkHybridJava" references the file
"/usr/
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/
but not all the files it references.
-- The imported target "vtkWidgetsJava" references the file
"/usr/
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/
but not all the files it references.
-- The imported target "vtkParallelJava" references the file
"/usr/
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/
but not all the files it references.
-- The imported target "vtkInfovisJava" references the file
"/usr/
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/
but not all the files it references.
-- The imported target "vtkGeovisJava" references the file
"/usr/
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/
but not all the files it references.
-- The imported target "vtkViewsJava" references the file
"/usr/
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/
but not all the files it references.
-- The imported target "vtkQtChart" references the file
"/usr/
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/
but not all the files it references.
-- The imported target "QVTK" references the file
"/usr/
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/
but not all the files it references.
-- The imported target "vtkChartsJava" references the file
"/usr/
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/
but not all the files it references.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- Version is set to 2013-12-
-- Looking for XOpenDisplay in /usr/lib/
-- Looking for XOpenDisplay in /usr/lib/
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/
-- Found OpenGL: /usr/lib/
-- GTS using gts-config /usr/bin/gts-config
-- Using GTS from /usr
-- Found GL2PS: /usr/lib/
-- Found CGAL: /usr/include/CGAL, /usr/lib/libCGAL.so
-- Found NumPy: version "1.7.1" /usr/lib/
-- Found Loki: /usr/include
-- GCC Version >= 4.8. Adding -ftrack-
-- Boost version: 1.53.0
-- Found the following Boost libraries:
-- python
-- thread
-- date_time
-- filesystem
-- iostreams
-- regex
-- serialization
-- system
-- Boost_VERSION: 105300
-- Boost_LIB_VERSION: 1_53
-- Boost_INCLUDE_DIRS: /usr/include
-- Boost_LIBRARIES: /usr/lib/
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0")
-- Found BZip2: /usr/lib/
-- Looking for BZ2_bzCompressInit in /usr/lib/
-- Looking for BZ2_bzCompressInit in /usr/lib/
-- Found ZLIB: /usr/lib/
-- Found Eigen3
-- Found VTK
-- Found OpenMP
-- GTS using gts-config /usr/bin/gts-config
-- Using GTS from /usr
-- checking for one of the modules 'glib-2.0'
-- Found GLib2: glib-2.0 /usr/include/
-- Looking for include file glib/gregex.h
-- Looking for include file glib/gregex.h - not found
-- Found GTS
-- Found Qt4: /usr/bin/qmake (found version "4.8.4")
-- Found GLUT: /usr/lib/
-- Found QGLViewer: /usr/lib/
-- Found GUI-LIBS
-- GMP libs: /usr/lib/
-- Found GMP: /usr/include/
-- GMP libs: /usr/lib/
-- Found CGAL
-- Found Cholmod: /usr/lib/
-- Found OpenBlas: /usr/lib/
-- Found Metis: /usr/include
-- Found Cholmod
-- Found OpenBlas
-- Found Metis
-- Found GL2PS
Yade will be installed to /home/ehsan/
-- Suffix is set to -2013-12-
-- LIBRARY_OUTPUT_PATH is set to lib/x86_
-- runtimePREFIX is set to /home/ehsan/
-- Found gts: /usr/lib/
-- Use system gts version
-- Found minieigen: /usr/lib/
-- Use system minieigen version
-- Found Tkinter: /usr/lib/
-- =======
-- Yade configured with following features: Eigen3 VTK OpenMP GTS GUI CGAL PFVflow LinSolv GL2PS
-- Disabled features:
-- Optimized build
-- =======
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ehsan/
ehsan@ehsan-
[ 0%] Generating qt4/moc_
[ 1%] Generating qt4/moc_
Scanning dependencies of target _GLViewer
[ 2%] Building CXX object gui/CMakeFiles/
[ 2%] Building CXX object gui/CMakeFiles/
[ 3%] Building CXX object gui/CMakeFiles/
[ 4%] Building CXX object gui/CMakeFiles/
[ 4%] Building CXX object gui/CMakeFiles/
[ 5%] Building CXX object gui/CMakeFiles/
[ 5%] Building CXX object gui/CMakeFiles/
Linking CXX shared library lib/x86_
[ 5%] Built target _GLViewer
Scanning dependencies of target yade
[ 5%] Building CXX object CMakeFiles/
[ 6%] Building CXX object CMakeFiles/
[ 7%] Building CXX object CMakeFiles/
[ 7%] Building CXX object CMakeFiles/
[ 8%] Building CXX object CMakeFiles/
[ 8%] Building CXX object CMakeFiles/
[ 9%] Building CXX object CMakeFiles/
[ 10%] Building CXX object CMakeFiles/
[ 10%] Building CXX object CMakeFiles/
[ 11%] Building CXX object CMakeFiles/
[ 11%] Building CXX object CMakeFiles/
[ 12%] Building CXX object CMakeFiles/
[ 12%] Building CXX object CMakeFiles/
[ 13%] Building CXX object CMakeFiles/
[ 14%] Building CXX object CMakeFiles/
[ 14%] Building CXX object CMakeFiles/
[ 15%] Building CXX object CMakeFiles/
[ 15%] Building CXX object CMakeFiles/
[ 16%] Building CXX object CMakeFiles/
[ 16%] Building CXX object CMakeFiles/
[ 17%] Building CXX object CMakeFiles/
[ 18%] Building CXX object CMakeFiles/
[ 18%] Building CXX object CMakeFiles/
[ 19%] Building CXX object CMakeFiles/
[ 19%] Building CXX object CMakeFiles/
[ 20%] Building CXX object CMakeFiles/
[ 21%] Building CXX object CMakeFiles/
[ 21%] Building CXX object CMakeFiles/
[ 22%] Building CXX object CMakeFiles/
[ 22%] Building CXX object CMakeFiles/
[ 23%] Building CXX object CMakeFiles/
[ 23%] Building CXX object CMakeFiles/
[ 24%] Building CXX object CMakeFiles/
[ 25%] Building CXX object CMakeFiles/
[ 25%] Building CXX object CMakeFiles/
[ 26%] Building CXX object CMakeFiles/
[ 26%] Building CXX object CMakeFiles/
^[O1;5R[ 27%] Building CXX object CMakeFiles/
In file included from /usr/lib/
/usr/lib/
#warning "Using deprecated NumPy API, disable it by #defining NPY_NO_
^
[ 27%] Building CXX object CMakeFiles/
[ 28%] Building CXX object CMakeFiles/
[ 29%] Building CXX object CMakeFiles/
[ 29%] Building CXX object CMakeFiles/
[ 30%] Building CXX object CMakeFiles/
[ 30%] Building CXX object CMakeFiles/
[ 31%] Building CXX object CMakeFiles/
[ 31%] Building CXX object CMakeFiles/
[ 32%] Building CXX object CMakeFiles/
[ 33%] Building CXX object CMakeFiles/
[ 33%] Building CXX object CMakeFiles/
[ 34%] Building CXX object CMakeFiles/
[ 34%] Building CXX object CMakeFiles/
[ 35%] Building CXX object CMakeFiles/
[ 36%] Building CXX object CMakeFiles/
[ 36%] Building CXX object CMakeFiles/
[ 37%] Building CXX object CMakeFiles/
[ 37%] Building CXX object CMakeFiles/
[ 38%] Building CXX object CMakeFiles/
[ 38%] Building CXX object CMakeFiles/
[ 39%] Building CXX object CMakeFiles/
[ 40%] Building CXX object CMakeFiles/
[ 40%] Building CXX object CMakeFiles/
[ 41%] Building CXX object CMakeFiles/
[ 41%] Building CXX object CMakeFiles/
[ 42%] Building CXX object CMakeFiles/
[ 42%] Building CXX object CMakeFiles/
In file included from /usr/include/
/usr/include/
#warning \
^
[ 43%] Building CXX object CMakeFiles/
[ 44%] Building CXX object CMakeFiles/
[ 44%] Building CXX object CMakeFiles/
[ 45%] Building CXX object CMakeFiles/
[ 45%] Building CXX object CMakeFiles/
In file included from /home/ehsan/
/home/ehsan/
/home/ehsan/
cerr << cholmod_
[ 46%] Building CXX object CMakeFiles/
[ 47%] Building CXX object CMakeFiles/
[ 47%] Building CXX object CMakeFiles/
[ 48%] Building CXX object CMakeFiles/
[ 48%] Building CXX object CMakeFiles/
[ 49%] Building CXX object CMakeFiles/
[ 49%] Building CXX object CMakeFiles/
[ 50%] Building CXX object CMakeFiles/
[ 51%] Building CXX object CMakeFiles/
[ 51%] Building CXX object CMakeFiles/
[ 52%] Building CXX object CMakeFiles/
[ 52%] Building CXX object CMakeFiles/
[ 53%] Building CXX object CMakeFiles/
[ 53%] Building CXX object CMakeFiles/
In file included from /home/ehsan/
/home/ehsan/
/home/ehsan/
fscanf(fp, "%*s %*s %f %f %f\n", &n[0], &n[1], &n[2]);
^
/home/ehsan/
fscanf(fp, "%*s %*s");
^
/home/ehsan/
fscanf(fp, "%*s %f %f %f\n", &v[0][0], &v[0][1], &v[0][2]);
^
/home/ehsan/
fscanf(fp, "%*s %f %f %f\n", &v[1][0], &v[1][1], &v[1][2]);
^
/home/ehsan/
fscanf(fp, "%*s %f %f %f\n", &v[2][0], &v[2][1], &v[2][2]);
^
/home/ehsan/
fscanf(fp, "%*s"); // end loop
^
/home/ehsan/
fscanf(fp, "%*s"); // end facet
^
[ 54%] Building CXX object CMakeFiles/
[ 55%] Building CXX object CMakeFiles/
[ 55%] Building CXX object CMakeFiles/
[ 56%] Building CXX object CMakeFiles/
[ 56%] Building CXX object CMakeFiles/
[ 57%] Building CXX object CMakeFiles/
[ 58%] Building CXX object CMakeFiles/
[ 58%] Building CXX object CMakeFiles/
[ 59%] Building CXX object CMakeFiles/
[ 59%] Building CXX object CMakeFiles/
[ 60%] Building CXX object CMakeFiles/
[ 60%] Building CXX object CMakeFiles/
[ 61%] Building CXX object CMakeFiles/
[ 62%] Building CXX object CMakeFiles/
[ 62%] Building CXX object CMakeFiles/
[ 63%] Building CXX object CMakeFiles/
[ 63%] Building CXX object CMakeFiles/
[ 64%] Building CXX object CMakeFiles/
[ 64%] Building CXX object CMakeFiles/
[ 65%] Building CXX object CMakeFiles/
[ 66%] Building CXX object CMakeFiles/
[ 66%] Building CXX object CMakeFiles/
[ 67%] Building CXX object CMakeFiles/
[ 67%] Building CXX object CMakeFiles/
[ 68%] Building CXX object CMakeFiles/
[ 68%] Building CXX object CMakeFiles/
[ 69%] Building CXX object CMakeFiles/
[ 70%] Building CXX object CMakeFiles/
[ 70%] Building CXX object CMakeFiles/
[ 71%] Building CXX object CMakeFiles/
[ 71%] Building CXX object CMakeFiles/
[ 72%] Building CXX object CMakeFiles/
[ 73%] Building CXX object CMakeFiles/
[ 73%] Building CXX object CMakeFiles/
[ 74%] Building CXX object CMakeFiles/
[ 74%] Building CXX object CMakeFiles/
[ 75%] Building CXX object CMakeFiles/
[ 75%] Building CXX object CMakeFiles/
[ 76%] Building CXX object CMakeFiles/
[ 77%] Building CXX object CMakeFiles/
[ 77%] Building CXX object CMakeFiles/
[ 78%] Building CXX object CMakeFiles/
[ 78%] Building CXX object CMakeFiles/
[ 79%] Building CXX object CMakeFiles/
[ 79%] Building CXX object CMakeFiles/
[ 80%] Building CXX object CMakeFiles/
[ 81%] Building CXX object CMakeFiles/
[ 81%] Building CXX object CMakeFiles/
[ 82%] Building CXX object CMakeFiles/
[ 82%] Building CXX object CMakeFiles/
[ 83%] Building CXX object CMakeFiles/
[ 84%] Building CXX object CMakeFiles/
[ 84%] Building CXX object CMakeFiles/
[ 85%] Building CXX object CMakeFiles/
[ 85%] Building CXX object CMakeFiles/
[ 86%] Building CXX object CMakeFiles/
[ 86%] Building CXX object CMakeFiles/
[ 87%] Building CXX object CMakeFiles/
[ 88%] Building CXX object CMakeFiles/
[ 88%] Building CXX object CMakeFiles/
[ 89%] Building CXX object CMakeFiles/
[ 89%] Building CXX object CMakeFiles/
[ 90%] Building CXX object CMakeFiles/
[ 90%] Building CXX object CMakeFiles/
[ 91%] Building CXX object CMakeFiles/
[ 92%] Building CXX object CMakeFiles/
[ 92%] Building CXX object CMakeFiles/
[ 93%] Building CXX object CMakeFiles/
[ 93%] Building CXX object CMakeFiles/
[ 94%] Building CXX object CMakeFiles/
[ 95%] Building CXX object CMakeFiles/
Linking CXX shared library lib/x86_
[ 95%] Built target yade
Scanning dependencies of target boot
[ 95%] Building CXX object CMakeFiles/
Linking CXX shared library lib/x86_
[ 95%] Built target boot
Scanning dependencies of target WeightedAverage2d
[ 95%] Building CXX object py/CMakeFiles/
Linking CXX shared library lib/x86_
[ 95%] Built target WeightedAverage2d
Scanning dependencies of target _customConverters
[ 96%] Building CXX object py/CMakeFiles/
Linking CXX shared library lib/x86_
[ 96%] Built target _customConverters
Scanning dependencies of target _packObb
[ 96%] Building CXX object py/CMakeFiles/
Linking CXX shared library lib/x86_
[ 96%] Built target _packObb
Scanning dependencies of target _packPredicates
[ 97%] Building CXX object py/CMakeFiles/
Linking CXX shared library lib/x86_
[ 97%] Built target _packPredicates
Scanning dependencies of target _packSpheres
[ 98%] Building CXX object py/CMakeFiles/
Linking CXX shared library lib/x86_
[ 98%] Built target _packSpheres
Scanning dependencies of target _polyhedra_utils
[ 98%] Building CXX object py/CMakeFiles/
In file included from /usr/lib/
/usr/lib/
#warning "Using deprecated NumPy API, disable it by #defining NPY_NO_
^
Linking CXX shared library lib/x86_
[ 98%] Built target _polyhedra_utils
Scanning dependencies of target _utils
[ 99%] Building CXX object py/CMakeFiles/
In file included from /usr/lib/
/usr/lib/
#warning "Using deprecated NumPy API, disable it by #defining NPY_NO_
^
Linking CXX shared library lib/x86_
[ 99%] Built target _utils
Scanning dependencies of target wrapper
[100%] Building CXX object py/CMakeFiles/
Linking CXX shared library lib/x86_
[100%] Built target wrapper
-------
Since I am new to linux and yade, I don't understand some warnings. but it seems to be some issues with that.
What can I do to solve my problem? any ideas?
Ehsan
Revision history for this message
![]() |
#3 |
Warnings are nor critical here. PFV-module should work.
Try to uninstall yade-daily from PPA, is it can cause some problem with the compiled
version. See [1].
[1] https:/
Anton
Revision history for this message
![]() |
#4 |
Thanks Anton Gladky, that solved my question.