Re: [Yade-users] [Question #686178]: Compilation Issues on Centos 7

2019-11-23 Thread Daniel Kiracofe
Question #686178 on Yade changed:
https://answers.launchpad.net/yade/+question/686178

Status: Open => Solved

Daniel Kiracofe confirmed that the question is solved:
sorry accidentally posted twice.  closing one of them.

-- 
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 #686179]: How to use PSD

2019-11-23 Thread Leonard
New question #686179 on Yade:
https://answers.launchpad.net/yade/+question/686179

Hi,
I'm trying to generate an assembly with PSD like Fig. 9 in [1] or Fig. 1 in 
[2]. Firstly, I set distributeMass = True, then, I pick up several point 
(xi,yi) from Fig. 9 in [1] or Fig. 1 in [2] and make 
psdSizes=[x1,x2,x3,x4],psdCumm=[0,y2,y3,1]. I am not sure if above mentioned 
way is correct, especially in terms of the following issues.

1. Should I set distributeMass = True or False.

2. In TriaxialStressController engine during triaxial test simulation[3], 
internalCompaction is set as True to reach confining pressure by growing 
particles. I wonder if all the particles are scaled up with the same scalar? 
Like the scale up in Fig. 1 in [2]?

3. By the way, I'm very curious about how it is achieved in Fig. 9 in [1], the 
numerical PSD is almostly agreed with experimental PSD, is there no particle 
growing during the isotropic compaction phase?

Thanks a lot.
Leonard

[1]https://link.springer.com/article/10.1007%2Fs10035-016-0687-0
[2]https://link.springer.com/article/10.1007/s11440-017-0593-6
[3]https://github.com/yade/trunk/blob/master/examples/triax-tutorial/script-session2.py

-- 
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 #686178]: Compilation Issues on Centos 7

2019-11-23 Thread Daniel Kiracofe
Question #686178 on Yade changed:
https://answers.launchpad.net/yade/+question/686178

Description changed to:
Hi I'm contemplating using YADE for a research project.  We have a high
performance cluster at my university and I want to run YADE on that.
The cluster uses Centos 7 (it's a little dated I know but that's what
they've got).  Trying to compile the code and getting an issue.  Here is
the error message:

[ 13%] Building CXX object CMakeFiles/yade.dir/pkg/common/ForceEngine.cpp.o
In file included from /usr/include/boost/random/detail/integer_log2.hpp:19:0,
 from /usr/include/boost/random/detail/large_arithmetic.hpp:19,
 from /usr/include/boost/random/detail/const_mod.hpp:23,
 from /usr/include/boost/random/linear_congruential.hpp:30,
 from /root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp:13:
/usr/include/boost/pending/integer_log2.hpp:7:2: error: stray ‘#’ in program
 BOOST_HEADER_DEPRECATED("");
  ^
line-map.c: file "/usr/include/boost/random/detail/large_arithmetic.hpp" left 
but not entered
line-map.c: file "/usr/include/boost/random/detail/large_arithmetic.hpp" left 
but not entered
line-map.c: file "/usr/include/boost/random/detail/large_arithmetic.hpp" left 
but not entered
line-map.c: file "/usr/include/boost/random/detail/const_mod.hpp" left but not 
entered
line-map.c: file "/usr/include/boost/random/detail/const_mod.hpp" left but not 
entered
line-map.c: file "/usr/include/boost/random/detail/const_mod.hpp" left but not 
entered
line-map.c: file "/usr/include/boost/random/linear_congruential.hpp" left but 
not entered
line-map.c: file "/usr/include/boost/random/linear_congruential.hpp" left but 
not entered
line-map.c: file "/usr/include/boost/random/linear_congruential.hpp" left but 
not entered
line-map.c: file "/usr/include/boost/random/linear_congruential.hpp" left but 
not entered
line-map.c: file "/root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp" left 
but not entered
line-map.c: file "/root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp" left 
but not entered
line-map.c: file "/root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp" left 
but not entered
In file included from /usr/include/boost/random/detail/integer_log2.hpp:19:0,
 from /usr/include/boost/random/detail/large_arithmetic.hpp:19,
 from /usr/include/boost/random/detail/const_mod.hpp:23,
 from /usr/include/boost/random/linear_congruential.hpp:30,
 from /root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp:13:
/usr/include/boost/pending/integer_log2.hpp:7:97: note: #pragma message: This 
header is deprecated. Use  instead.
 BOOST_HEADER_DEPRECATED("");

 ^
In file included from /usr/include/boost/random/detail/integer_log2.hpp:19:0,
 from /usr/include/boost/random/detail/large_arithmetic.hpp:19,
 from /usr/include/boost/random/detail/const_mod.hpp:23,
 from /usr/include/boost/random/linear_congruential.hpp:30,
 from /root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp:13:
/usr/include/boost/pending/integer_log2.hpp:7:4: error: expected unqualified-id 
before numeric constant
 BOOST_HEADER_DEPRECATED("");
^
In file included from /usr/include/boost/random/detail/integer_log2.hpp:21:0,
 from /usr/include/boost/random/detail/large_arithmetic.hpp:19,
 from /usr/include/boost/random/detail/const_mod.hpp:23,
 from /usr/include/boost/random/linear_congruential.hpp:30,
 from /root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp:13:
/usr/include/boost/random/detail/disable_warnings.hpp:27:28: error: expected 
declaration before end of line
 #pragma GCC diagnostic push
^
make[2]: *** [CMakeFiles/yade.dir/pkg/common/ForceEngine.cpp.o] Error 1
make[1]: *** [CMakeFiles/yade.dir/all] Error 2
make: *** [all] Error 2


I tried the 2019.01a release as well as a git clone of the most recent trunk 
and both gave the same error.  

Looks like some issue related to boost library. I have installed version
1.69 from the RHEL EPEL 7 release repository (again I know thats a
little dated, but its the most recent one available for Centos 7...
would like to avoid compiling boost myself if I have to). GCC version is
4.8.5

For what it's worth, the cmake configuration is here:
-- Found OpenMP_C: -fopenmp  
-- Found OpenMP_CXX: -fopenmp  
-- Found unsuitable Qt version "" from NOTFOUND
-- Version is set to 2019.01a
-- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY 
OPENGL_INCLUDE_DIR) 
-- GSL using pkgconfig
-- WARNING: you are using the obsolete 'PKGCONFIG' macro, use FindPkgConfig
-- PKGCONFIG() indicates that gts is not installed (install the package which 
contains gts.pc if you want to support this feature)
FindGTS.cmake: gts-config/pkg-config 

[Yade-users] [Question #686177]: Compilation Issues on Centos 7

2019-11-23 Thread Daniel Kiracofe
New question #686177 on Yade:
https://answers.launchpad.net/yade/+question/686177

Hi I'm contemplating using YADE for a research project.  We have a high 
performance cluster at my university and I want to run YADE on that.  The 
cluster uses Centos 7 (it's a little dated I know but that's what they've got). 
 Trying to compile the code and getting an issue.  Here is the error message:

[ 13%] Building CXX object CMakeFiles/yade.dir/pkg/common/ForceEngine.cpp.o
In file included from /usr/include/boost/random/detail/integer_log2.hpp:19:0,
 from /usr/include/boost/random/detail/large_arithmetic.hpp:19,
 from /usr/include/boost/random/detail/const_mod.hpp:23,
 from /usr/include/boost/random/linear_congruential.hpp:30,
 from /root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp:13:
/usr/include/boost/pending/integer_log2.hpp:7:2: error: stray ‘#’ in program
 BOOST_HEADER_DEPRECATED("");
  ^
line-map.c: file "/usr/include/boost/random/detail/large_arithmetic.hpp" left 
but not entered
line-map.c: file "/usr/include/boost/random/detail/large_arithmetic.hpp" left 
but not entered
line-map.c: file "/usr/include/boost/random/detail/large_arithmetic.hpp" left 
but not entered
line-map.c: file "/usr/include/boost/random/detail/const_mod.hpp" left but not 
entered
line-map.c: file "/usr/include/boost/random/detail/const_mod.hpp" left but not 
entered
line-map.c: file "/usr/include/boost/random/detail/const_mod.hpp" left but not 
entered
line-map.c: file "/usr/include/boost/random/linear_congruential.hpp" left but 
not entered
line-map.c: file "/usr/include/boost/random/linear_congruential.hpp" left but 
not entered
line-map.c: file "/usr/include/boost/random/linear_congruential.hpp" left but 
not entered
line-map.c: file "/usr/include/boost/random/linear_congruential.hpp" left but 
not entered
line-map.c: file "/root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp" left 
but not entered
line-map.c: file "/root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp" left 
but not entered
line-map.c: file "/root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp" left 
but not entered
In file included from /usr/include/boost/random/detail/integer_log2.hpp:19:0,
 from /usr/include/boost/random/detail/large_arithmetic.hpp:19,
 from /usr/include/boost/random/detail/const_mod.hpp:23,
 from /usr/include/boost/random/linear_congruential.hpp:30,
 from /root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp:13:
/usr/include/boost/pending/integer_log2.hpp:7:97: note: #pragma message: This 
header is deprecated. Use  instead.
 BOOST_HEADER_DEPRECATED("");

 ^
In file included from /usr/include/boost/random/detail/integer_log2.hpp:19:0,
 from /usr/include/boost/random/detail/large_arithmetic.hpp:19,
 from /usr/include/boost/random/detail/const_mod.hpp:23,
 from /usr/include/boost/random/linear_congruential.hpp:30,
 from /root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp:13:
/usr/include/boost/pending/integer_log2.hpp:7:4: error: expected unqualified-id 
before numeric constant
 BOOST_HEADER_DEPRECATED("");
^
In file included from /usr/include/boost/random/detail/integer_log2.hpp:21:0,
 from /usr/include/boost/random/detail/large_arithmetic.hpp:19,
 from /usr/include/boost/random/detail/const_mod.hpp:23,
 from /usr/include/boost/random/linear_congruential.hpp:30,
 from /root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp:13:
/usr/include/boost/random/detail/disable_warnings.hpp:27:28: error: expected 
declaration before end of line
 #pragma GCC diagnostic push
^
make[2]: *** [CMakeFiles/yade.dir/pkg/common/ForceEngine.cpp.o] Error 1
make[1]: *** [CMakeFiles/yade.dir/all] Error 2
make: *** [all] Error 2


I tried the 2019.01a release as well as a git clone of the most recent trunk 
and both gave the same error.  

Looks like some issue related to boost library. I have installed version 1.69 
from the RHEL EPEL 7 release library (again I know thats a little dated, but 
its the most recent one available for Centos 7... would like to avoid compiling 
boost myself if I have to). GCC version is 4.8.5

For what it's worth, the cmake configuration is here:
-- Found OpenMP_C: -fopenmp  
-- Found OpenMP_CXX: -fopenmp  
-- Found unsuitable Qt version "" from NOTFOUND
-- Version is set to 2019.01a
-- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY 
OPENGL_INCLUDE_DIR) 
-- GSL using pkgconfig
-- WARNING: you are using the obsolete 'PKGCONFIG' macro, use FindPkgConfig
-- PKGCONFIG() indicates that gts is not installed (install the package which 
contains gts.pc if you want to support this feature)
FindGTS.cmake: gts-config/pkg-config gts not found. Please se

[Yade-users] [Question #686178]: Compilation Issues on Centos 7

2019-11-23 Thread Daniel Kiracofe
New question #686178 on Yade:
https://answers.launchpad.net/yade/+question/686178

Hi I'm contemplating using YADE for a research project.  We have a high 
performance cluster at my university and I want to run YADE on that.  The 
cluster uses Centos 7 (it's a little dated I know but that's what they've got). 
 Trying to compile the code and getting an issue.  Here is the error message:

[ 13%] Building CXX object CMakeFiles/yade.dir/pkg/common/ForceEngine.cpp.o
In file included from /usr/include/boost/random/detail/integer_log2.hpp:19:0,
 from /usr/include/boost/random/detail/large_arithmetic.hpp:19,
 from /usr/include/boost/random/detail/const_mod.hpp:23,
 from /usr/include/boost/random/linear_congruential.hpp:30,
 from /root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp:13:
/usr/include/boost/pending/integer_log2.hpp:7:2: error: stray ‘#’ in program
 BOOST_HEADER_DEPRECATED("");
  ^
line-map.c: file "/usr/include/boost/random/detail/large_arithmetic.hpp" left 
but not entered
line-map.c: file "/usr/include/boost/random/detail/large_arithmetic.hpp" left 
but not entered
line-map.c: file "/usr/include/boost/random/detail/large_arithmetic.hpp" left 
but not entered
line-map.c: file "/usr/include/boost/random/detail/const_mod.hpp" left but not 
entered
line-map.c: file "/usr/include/boost/random/detail/const_mod.hpp" left but not 
entered
line-map.c: file "/usr/include/boost/random/detail/const_mod.hpp" left but not 
entered
line-map.c: file "/usr/include/boost/random/linear_congruential.hpp" left but 
not entered
line-map.c: file "/usr/include/boost/random/linear_congruential.hpp" left but 
not entered
line-map.c: file "/usr/include/boost/random/linear_congruential.hpp" left but 
not entered
line-map.c: file "/usr/include/boost/random/linear_congruential.hpp" left but 
not entered
line-map.c: file "/root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp" left 
but not entered
line-map.c: file "/root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp" left 
but not entered
line-map.c: file "/root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp" left 
but not entered
In file included from /usr/include/boost/random/detail/integer_log2.hpp:19:0,
 from /usr/include/boost/random/detail/large_arithmetic.hpp:19,
 from /usr/include/boost/random/detail/const_mod.hpp:23,
 from /usr/include/boost/random/linear_congruential.hpp:30,
 from /root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp:13:
/usr/include/boost/pending/integer_log2.hpp:7:97: note: #pragma message: This 
header is deprecated. Use  instead.
 BOOST_HEADER_DEPRECATED("");

 ^
In file included from /usr/include/boost/random/detail/integer_log2.hpp:19:0,
 from /usr/include/boost/random/detail/large_arithmetic.hpp:19,
 from /usr/include/boost/random/detail/const_mod.hpp:23,
 from /usr/include/boost/random/linear_congruential.hpp:30,
 from /root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp:13:
/usr/include/boost/pending/integer_log2.hpp:7:4: error: expected unqualified-id 
before numeric constant
 BOOST_HEADER_DEPRECATED("");
^
In file included from /usr/include/boost/random/detail/integer_log2.hpp:21:0,
 from /usr/include/boost/random/detail/large_arithmetic.hpp:19,
 from /usr/include/boost/random/detail/const_mod.hpp:23,
 from /usr/include/boost/random/linear_congruential.hpp:30,
 from /root/yade_2019.01a/trunk/pkg/common/ForceEngine.cpp:13:
/usr/include/boost/random/detail/disable_warnings.hpp:27:28: error: expected 
declaration before end of line
 #pragma GCC diagnostic push
^
make[2]: *** [CMakeFiles/yade.dir/pkg/common/ForceEngine.cpp.o] Error 1
make[1]: *** [CMakeFiles/yade.dir/all] Error 2
make: *** [all] Error 2


I tried the 2019.01a release as well as a git clone of the most recent trunk 
and both gave the same error.  

Looks like some issue related to boost library. I have installed version 1.69 
from the RHEL EPEL 7 release library (again I know thats a little dated, but 
its the most recent one available for Centos 7... would like to avoid compiling 
boost myself if I have to). GCC version is 4.8.5

For what it's worth, the cmake configuration is here:
-- Found OpenMP_C: -fopenmp  
-- Found OpenMP_CXX: -fopenmp  
-- Found unsuitable Qt version "" from NOTFOUND
-- Version is set to 2019.01a
-- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY 
OPENGL_INCLUDE_DIR) 
-- GSL using pkgconfig
-- WARNING: you are using the obsolete 'PKGCONFIG' macro, use FindPkgConfig
-- PKGCONFIG() indicates that gts is not installed (install the package which 
contains gts.pc if you want to support this feature)
FindGTS.cmake: gts-config/pkg-config gts not found. Please se

Re: [Yade-users] [Question #686131]: flow.nCells() != "cell number" recorded by flow.saveVtk()

2019-11-23 Thread Robert Caulk
Question #686131 on Yade changed:
https://answers.launchpad.net/yade/+question/686131

Status: Open => Answered

Robert Caulk proposed the following answer:
Thanks for the clarification.

> how many finite cells are produced by the triangulation, 383 or 242?

242 withoutBoundaries (default). Try using
flow.saveVTK(withBoundaries=True), the numbers should match.

>the particle ids comprising the cell id=0 are 38, 41, 37, 39. Am I
wrong?

Yes, you are wrong :-) Those are not the particle IDs. Those are
redirected IDs for paraview since it needs zero based vertex IDs [1]

[1]https://gitlab.com/yade-
dev/trunk/blob/master/lib/triangulation/FlowBoundingSphere.ipp#L1690

-- 
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