Re: [Yade-users] [Question #404070]: about adding an new InsertionSortCollider
Question #404070 on Yade changed: https://answers.launchpad.net/yade/+question/404070 Anton Gladky proposed the following answer: If you just added files and did not "touch CMakeLists.txt" the file list for compilation is not regenerated. Anton -- 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 #404070]: about adding an new InsertionSortCollider
Question #404070 on Yade changed: https://answers.launchpad.net/yade/+question/404070 Haohui Xin posted a new comment: Yes, the created file is compiled. I did not change the "CmakeList.txt". The introduction said it will detect the cpp file in the pkg automatically. 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 #404070]: about adding an new InsertionSortCollider
Question #404070 on Yade changed: https://answers.launchpad.net/yade/+question/404070 Anton Gladky proposed the following answer: Hi, did you see that the newly created files were compiled? To be sure, you should "touch CMakeLists.txt" to regenerate the list of cpp-files and run compilation process again. Best regards Anton -- 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 #404019]: Burger's model
Question #404019 on Yade changed: https://answers.launchpad.net/yade/+question/404019 Status: Answered => Solved Luis Barbosa confirmed that the question is solved: Ok, Jan. Thank you! Regards, Luis -- 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 #403846]: JCF Contac Law
Question #403846 on Yade changed: https://answers.launchpad.net/yade/+question/403846 Status: Answered => Solved Luis Barbosa confirmed that the question is solved: Dear Jérôme, Thank you for the answer. After the comments of Luc and yours, I totally agree with this observation. Thank you for helping me to mature this concept. Regards, Luis -- 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 #404019]: Burger's model
Question #404019 on Yade changed: https://answers.launchpad.net/yade/+question/404019 Status: Open => Answered Jan Stránský proposed the following answer: yes, + you need the source code of Burger's model :-) or you can make Behzad add those files to trunk version and wait a few days for yadedaily.. Jan Dne 15. 11. 2016 23:47 napsal uživatel "Luis Barbosa" < question404...@answers.launchpad.net>: > Question #404019 on Yade changed: > https://answers.launchpad.net/yade/+question/404019 > > Status: Answered => Open > > Luis Barbosa is still having a problem: > Thank you Jan, > > I've made contact. > > If is not in the trunk version, does it mean that to run the code is > necessary download and install the YADE source code? > > Thank you, > Luis > > -- > 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 > -- 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] Yade installation questions
Hi David, 2016-11-15 15:45 GMT+01:00 Baker D.J.: > I have just finished installing Yade from source on our RedHat 6.3 cluster. > That is, to be more precise, I installed Yade with the GUI component > switched off. The build was eventually successful and I was then able to run > both “yade –check” and “yade –test” without any issues. On the other hand > when I tested a script provided by the user I noticed that my Yade could not > find the Gl1_Sphere attribute/command. Is that because I build Yade with > GUI=OFF? Pay attention, if you switched off the GUI, the user-script should not contain any GUI-related code. > I then attempted to build the GUI version. The build (make) process > completed successfully, however I found that “make install” failed looking > for a file called “img_rc.py”. I cannot find any trace of this file in the img_rc.py is generated in gui/CMakeLists.txt. during the configuration step of the build. It would be good to read the output from CMake on this stage. > Yale source distribution, and so I have no idea how to progress the GUI > build. In this respect I have installed qt v4, however not PyQt4 – is the > latter package required? For GUI-enabled builds - yes, you need it and for build time and for runtime. Cheers, Anton ___ 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 #404019]: Burger's model
Question #404019 on Yade changed: https://answers.launchpad.net/yade/+question/404019 Status: Answered => Open Luis Barbosa is still having a problem: Thank you Jan, I've made contact. If is not in the trunk version, does it mean that to run the code is necessary download and install the YADE source code? Thank you, Luis -- 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] Yade installation questions
Dear David, Please use launchpad questions next time, instead of plain emails (*). On 11/15/2016 03:45 PM, Baker D.J. wrote: Gl1_Sphere attribute/command. Is that because I build Yade with GUI=OFF? Yes. "Gl" refers to openGL, hence graphical environment. It should be removed on users side. Obviously, manipulating 3D view is not an option in a script for cluster production. I then attempted to build the GUI version. The build (make) process completed successfully, however I found that “make install” failed looking for a file called “img_rc.py”. I cannot find any trace of this file in the Yale source distribution, and so I have no idea how to progress the GUI build. In this respect I have installed qt v4, however not PyQt4 – is the latter package required? I can't help for this one personally, sorry. Regards Bruno ___ 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] Yade installation questions
Hello and welcome, For questions and answers about YADE use, we're using a launchpad website [*], could you please re-ask your question there ? The "yade-users" mailing list is rather for general announcements. Thanks ! PS: in the meantime, yes I think that "Gl1_Sphere" is related to GUI, and I also think that PyQt4 (or PyQt5) is a required package, see https://yade-dem.org/doc/installation.html#prerequisites. [*] https://yade-dem.org/doc/user.html#getting-help -- Jerome Duriez, Research Associate University of Calgary, Dpt of Civil Engineering +1 403 220 7367 From: Yade-userson behalf of Baker D.J. Sent: November 15, 2016 7:45 AM To: yade-users@lists.launchpad.net Subject: [Yade-users] Yade installation questions Hello, I have a couple of Yade installation related questions, please. I have just finished installing Yade from source on our RedHat 6.3 cluster. That is, to be more precise, I installed Yade with the GUI component switched off. The build was eventually successful and I was then able to run both "yade -check" and "yade -test" without any issues. On the other hand when I tested a script provided by the user I noticed that my Yade could not find the Gl1_Sphere attribute/command. Is that because I build Yade with GUI=OFF? I then attempted to build the GUI version. The build (make) process completed successfully, however I found that "make install" failed looking for a file called "img_rc.py". I cannot find any trace of this file in the Yale source distribution, and so I have no idea how to progress the GUI build. In this respect I have installed qt v4, however not PyQt4 - is the latter package required? I am new to Yade and so I would appreciate any relevant advice from the community, please. Best regards, David ___ 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 #404070]: about adding an new InsertionSortCollider
Question #404070 on Yade changed: https://answers.launchpad.net/yade/+question/404070 Haohui Xin posted a new comment: Hello, Thanks. The latest error is as following. It could cmakem make and make install. But it appeared problems when I run it. Traceback (most recent call last): File "./yade-2016-10-31.git-1b22b1a", line 129, in import yade File "/home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10-31.git-1b22b1a/py/yade/__init__.py", line 67, in import system RuntimeError: extension class wrapper for base class HeatCollider has not been created yet Firstly, I define a new engine. #pragma once #include class HeatEngine: public Engine { public : virtual ~HeatEngine() {}; YADE_CLASS_BASE_DOC(HeatEngine,Engine,"Engine that used for heat simulation."); }; REGISTER_SERIALIZABLE(HeatEngine); Second, I define a new collider #pragma once #include #include #include #include class HeatCollider: public HeatEngine { public: static int avoidSelfInteractionMask; /*! Probe the Bound on a bodies presense. Returns list of body ids with which there is potential overlap. */ virtual vector probeBoundingVolume(const Bound&){throw;} static bool mayCollide(const Body*, const Body*); virtual void invalidatePersistentData(){} // ctor with functors for the integrated BoundDispatcher virtual void pyHandleCustomCtorArgs(boost::python::tuple& t, boost::python::dict& d); int get_avoidSelfInteractionMask(){return avoidSelfInteractionMask;} void set_avoidSelfInteractionMask(const int ){avoidSelfInteractionMask = v;} YADE_CLASS_BASE_DOC_ATTRS_CTOR_PY(HeatCollider,HeatEngine,"Abstract class for finding spatial collisions between bodies. \n\n.. admonition:: Special constructor\n\n\tDerived HeatColliders (unless they override ``pyHandleCustomCtorArgs``) can be given list of :yref:`BoundFunctors ` which is used to initialize the internal :yref:`boundDispatcher ` instance.", ((shared_ptr,boundDispatcher,new BoundDispatcher,Attr::readonly,":yref:`BoundDispatcher` object that is used for creating :yref:`bounds ` on HeatCollider's request as necessary.")), /*ctor*/, .add_property("avoidSelfInteractionMask",::get_avoidSelfInteractionMask,::set_avoidSelfInteractionMask,"This mask is used to avoid the interactions inside a group of particles. To do so, the particles must have the same mask and this mask have to be compatible with this one.") ); DECLARE_LOGGER; }; REGISTER_SERIALIZABLE(HeatCollider); #include YADE_PLUGIN((HeatCollider)); int HeatCollider::avoidSelfInteractionMask = 0 ; bool HeatCollider::mayCollide(const Body* b1, const Body* b2){ return // might be called with deleted bodies, i.e. NULL pointers (b1!=NULL && b2!=NULL) && // only collide if at least one particle is standalone or they belong to different clumps (b1->isStandalone() || b2->isStandalone() || b1->clumpId!=b2->clumpId #ifdef YADE_SPH // If SPH-mode enabled, we do not skip interactions between clump-members // to get the correct calculation of density b->rho || true #endif ) && // do not collide clumps, since they are just containers, never interact !b1->isClump() && !b2->isClump() && // masks must have at least 1 bit in common b1->maskCompatible(b2->groupMask) && // avoid contact between particles having the same mask compatible with the avoidSelfInteractionMask. !( (b1->groupMask == b2->groupMask) && b1->maskCompatible(avoidSelfInteractionMask) ) ; } void HeatCollider::pyHandleCustomCtorArgs(boost::python::tuple& t, boost::python::dict& d){ if(boost::python::len(t)==0) return; // nothing to do if(boost::python::len(t)!=1) throw invalid_argument(("HeatCollider optionally takes exactly one list of BoundFunctor's as non-keyword argument for constructor ("+boost::lexical_cast(boost::python::len(t))+" non-keyword ards given instead)").c_str()); typedef std::vectorvecBound; vecBound vb=boost::python::extract(t[0])(); FOREACH(shared_ptr bf, vb) this->boundDispatcher->add(bf); t=boost::python::tuple(); // empty the args } define an new sort methods /* * Copyright (C) 2008 by Sergei Dorofeenko * * s...@users.berlios.de * ** * This program is free software; it is licensed
Re: [Yade-users] [Question #404070]: about adding an new InsertionSortCollider
Question #404070 on Yade changed: https://answers.launchpad.net/yade/+question/404070 Status: Open => Answered Jan Stránský proposed the following answer: Hello, would it be possible for you to share the code of the new classes such that we can test it? Thanks Jan Dne 15. 11. 2016 1:53 dop. napsal uživatel "Haohui Xin" < question404...@answers.launchpad.net>: > Question #404070 on Yade changed: > https://answers.launchpad.net/yade/+question/404070 > > Haohui Xin gave more information on the question: > ~/yade/build$ make install > [ 0%] Automatic moc for target boot > [ 0%] Built target boot_automoc > [ 1%] Automatic moc for target yade > [ 1%] Built target yade_automoc > [ 1%] Automatic moc for target _GLViewer > [ 1%] Built target _GLViewer_automoc > [ 5%] Built target _GLViewer > [ 84%] Built target yade > [ 85%] Built target boot > [ 86%] Automatic moc for target _polyhedra_utils > [ 86%] Built target _polyhedra_utils_automoc > [ 87%] Built target _polyhedra_utils > [ 88%] Automatic moc for target _packSpheres > [ 88%] Built target _packSpheres_automoc > [ 89%] Built target _packSpheres > [ 90%] Automatic moc for target _packPredicates > [ 90%] Built target _packPredicates_automoc > [ 91%] Built target _packPredicates > [ 91%] Automatic moc for target wrapper > [ 91%] Built target wrapper_automoc > [ 93%] Built target wrapper > [ 93%] Automatic moc for target _packObb > [ 93%] Built target _packObb_automoc > [ 95%] Built target _packObb > [ 95%] Automatic moc for target WeightedAverage2d > [ 95%] Built target WeightedAverage2d_automoc > [ 96%] Built target WeightedAverage2d > [ 97%] Automatic moc for target _utils > [ 97%] Built target _utils_automoc > [ 98%] Built target _utils > [ 98%] Automatic moc for target _customConverters > [ 98%] Built target _customConverters_automoc > [100%] Built target _customConverters > Install the project... > -- Install configuration: "" > -- Installing: /home/xhh/yade/install/bin/yade-2016-10-31.git-1b22b1a- > batch > -- Installing: /home/xhh/yade/install/bin/yade-2016-10-31.git-1b22b1a > -- Installing: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/config.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/__init__.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/checkLiquidMigration.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/checkWirePM.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/checkTestNormalInelasticity.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/checkTestTriax.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/checkGravity.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/checkList.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/checkWeight.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/checkCapillaryModels.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/checkClumpHopper.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/checkViscElPM.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/checkViscElEng.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/DEM-PFV-check.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/checkTestDummy.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/checkViscElPM2.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/checkPolyhedraCrush.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/checkSaveLoadClumps.py > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/data/WallStressesCheckTest > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/data/checkTestTriax.spheres > -- Up-to-date: /home/xhh/yade/install/lib/x86_64-linux-gnu/yade-2016-10- > 31.git-1b22b1a/py/yade/tests/checks/data/100spheres > -- Up-to-date: /home/xhh/yade/install/share/doc/yade-2016-10-31.git- > 1b22b1a/img/yade-logo-note.png > -- Installing:
[Yade-users] Yade installation questions
Hello, I have a couple of Yade installation related questions, please. I have just finished installing Yade from source on our RedHat 6.3 cluster. That is, to be more precise, I installed Yade with the GUI component switched off. The build was eventually successful and I was then able to run both "yade -check" and "yade -test" without any issues. On the other hand when I tested a script provided by the user I noticed that my Yade could not find the Gl1_Sphere attribute/command. Is that because I build Yade with GUI=OFF? I then attempted to build the GUI version. The build (make) process completed successfully, however I found that "make install" failed looking for a file called "img_rc.py". I cannot find any trace of this file in the Yale source distribution, and so I have no idea how to progress the GUI build. In this respect I have installed qt v4, however not PyQt4 - is the latter package required? I am new to Yade and so I would appreciate any relevant advice from the community, please. Best regards, David ___ 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