[Yade-users] [Question #695458]: Saving the Fsheer whole value
New question #695458 on Yade: https://answers.launchpad.net/yade/+question/695458 Hi, In the description of Contact model in the Yade documentation there is info that the force Ft is changed when is bigger than Fn - in which file is it? I'm looking for it and I can't find it. I'm considering to save somehow the value of this Ft - Fn for analyze. All the best Pawel -- 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 #678056]: three spheres with roling
Question #678056 on Yade changed: https://answers.launchpad.net/yade/+question/678056 Status: Answered => Solved Pawel confirmed that the question is solved: Hi Bruno Thank you for the answer. I don't use the newest Yade - but it seems that the bug is still there. Best Pawel -- 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 #678056]: three spheres with roling
Question #678056 on Yade changed: https://answers.launchpad.net/yade/+question/678056 Status: Answered => Open Pawel is still having a problem: Hi Bruno Please simply comment this line - it is my C++ function. The problem is that when the middle sphere is moving the upper should roll - but it is not doing it. Best Pawel -- 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 #678056]: three spheres with roling
New question #678056 on Yade: https://answers.launchpad.net/yade/+question/678056 I have very simple test 3 spheres and one in middle is moving - question what is wrong and there are no rolling? # basic simulation showing sphere falling ball gravity, # bouncing against another sphere representing the support os.environ['OMP_NUM_THREADS']='8' import math import random # DATA COMPONENTS promien_k = (3/(4*math.pi))**(1./3) young_k = 1e9 poisson_k = 0.25 density_k = 1 vObnizenia = -0.5*promien_k frictAngle = atan(0.6) #O.materials.append(FrictMat(young=young_k, poisson=poisson_k, density=density_k, frictionAngle=atan(0.3), label='kula')) O.materials.append(CohFrictMat(young=young_k, poisson=poisson_k, density=density_k, frictionAngle=frictAngle,normalCohesion=0, shearCohesion=0, momentRotationLaw=False, label='kula')) O.bodies.append([ utils.sphere(center=(0,0,0),radius=promien_k,fixed=True,material='kula') ],) O.bodies.append([ utils.sphere(center=(0.5*promien_k,0,1.95*promien_k),radius=promien_k,fixed=False,material='kula') ],) O.bodies.append([ utils.sphere(center=(-0.*promien_k,0,3.90*promien_k),radius=promien_k,fixed=False,material='kula') ],) O.bodies[1].state.blockedDOFs='zx' O.bodies[2].state.blockedDOFs='zx' O.dt=utils.PWaveTimeStep() # nazwaPliku = "wyniki/kule" nazwaPlikuIter = "wyniki/Kule_iter_30z" ### Parametry zapisu c++ print("DT do zapisu") step = O.dt PiterSave = 10 #ile zapisow w pliku PtimeSr = 3*step PtimeStart = 0. #start zapisu PdeltaTime = 0.005 #1000*step #skok miedzy zapisami TimeStartAll=100 DeltaTimeAll=1 # FUNCTIONAL COMPONENTS # simulation loop -- see presentation for the explanation O.engines=[ VppSaveInteractions(fileName=nazwaPlikuIter, iterSave= PiterSave, timeSr = PtimeSr, timeStart = PtimeStart, deltaTime= PdeltaTime,timeStartAll = TimeStartAll,deltaTimeAll = DeltaTimeAll ), ForceResetter(), PyRunner(command='O.forces.addMove(1,(vObnizenia*O.dt,0,0))',iterPeriod=1), InsertionSortCollider([Bo1_Sphere_Aabb(aabbEnlargeFactor=1),Bo1_Wall_Aabb(),Bo1_Facet_Aabb()]), InteractionLoop( [Ig2_Sphere_Sphere_ScGeom6D(interactionDetectionFactor=1.3), Ig2_Wall_Sphere_ScGeom(),Ig2_Facet_Sphere_ScGeom6D()], [Ip2_FrictMat_FrictMat_FrictPhys(), Ip2_CohFrictMat_CohFrictMat_CohFrictPhys(setCohesionNow=True,setCohesionOnNewContacts=True), ], [Law2_ScGeom_FrictPhys_CundallStrack(), ] ), # apply gravity force to particles GravityEngine(gravity=(0,0,-9.81)), # damping: numerical dissipation of energy NewtonIntegrator(damping=0.2) ] # set timestep to a fraction of the critical timestep # the fraction is very small, so that the simulation is not too fast # and the motion can be observed # save the simulation, so that it can be reloaded later, for experimentation O.saveTmp() Gl1_Sphere.stripes=True Gl1_Sphere.quality=1 yade.qt.Controller(), yade.qt.View(); -- 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 #677876]: FrictPhys disable in contact
Question #677876 on Yade changed: https://answers.launchpad.net/yade/+question/677876 Pawel posted a new comment: Hi Jan, Thank you very much for your answer. Is there any possibility to eliminate that micro-bouncing? All the best Pawel -- 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 #677876]: FrictPhys disable in contact
Question #677876 on Yade changed: https://answers.launchpad.net/yade/+question/677876 Status: Needs information => Open Pawel gave more information on the question: Hi Jan, thank you for your message in c++ i have function VppSaveInteractions with code FOREACH(const shared_ptr& I, *scene->interactions){ if(I) { const shared_ptr& b1 = Body::byId(I->getId1(),scene); const shared_ptr& b2 = Body::byId(I->getId2(),scene); State* st1 = static_cast(b1->state.get()); State* st2 = static_cast(b2->state.get()); FrictPhys* physFP = dynamic_cast(I->phys.get()); cout << "phys "<< physFP; } It is only a part of longer code but here i need to gest phys becouse I want to save normal and shear force from connection. the pointer physe is 0 here is the python script # basic simulation showing sphere falling ball gravity, # bouncing against another sphere representing the support os.environ['OMP_NUM_THREADS']='8' import math import random # DATA COMPONENTS promien_k = 0.0002 promien_f = 0.00015/2 young_k = 1e9 poisson_k = 0.25 density_k = 1040 frictAngle = atan(0.6) O.materials.append(FrictMat(young=young_k, poisson=poisson_k, density=density_k, frictionAngle=atan(0.3), label='kula')) O.bodies.append([ utils.sphere(center=(0,0,0),radius=promien_k,fixed=True,material='kula') ],) O.bodies.append([ utils.sphere(center=(0.2*promien_k,0,2*promien_k),radius=promien_k,fixed=False,material='kula') ],) O.dt=utils.PWaveTimeStep() # nazwaPliku = "wyniki/kule" nazwaPlikuIter = "wyniki/Kule_iter_30z" ### Parametry zapisu c++ print("DT do zapisu") step = O.dt PiterSave = 10 #ile zapisow w pliku PtimeSr = 3*step PtimeStart = 0. #start zapisu PdeltaTime = 0.005 #1000*step #skok miedzy zapisami TimeStartAll=100 DeltaTimeAll=1 # FUNCTIONAL COMPONENTS # simulation loop -- see presentation for the explanation O.engines=[ VppSaveInteractions(fileName=nazwaPlikuIter, iterSave= PiterSave, timeSr = PtimeSr, timeStart = PtimeStart, deltaTime= PdeltaTime,timeStartAll = TimeStartAll,deltaTimeAll = DeltaTimeAll ), ForceResetter(), InsertionSortCollider([Bo1_Sphere_Aabb(aabbEnlargeFactor=1),Bo1_Wall_Aabb(),Bo1_Facet_Aabb()]), InteractionLoop( [Ig2_Sphere_Sphere_ScGeom6D(interactionDetectionFactor=1.3), Ig2_Wall_Sphere_ScGeom(),Ig2_Facet_Sphere_ScGeom6D()], [Ip2_FrictMat_FrictMat_FrictPhys(), Ip2_CohFrictMat_CohFrictMat_CohFrictPhys(setCohesionNow=True,setCohesionOnNewContacts=True), ], [Law2_ScGeom_FrictPhys_CundallStrack(), ] ), # apply gravity force to particles GravityEngine(gravity=(0,0,-9.81)), # damping: numerical dissipation of energy NewtonIntegrator(damping=0.2) ] # set timestep to a fraction of the critical timestep # the fraction is very small, so that the simulation is not too fast # and the motion can be observed # save the simulation, so that it can be reloaded later, for experimentation O.saveTmp() Gl1_Sphere.stripes=True Gl1_Sphere.quality=1 yade.qt.Controller(), yade.qt.View(); -- 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 #677876]: FrictPhys disable in contact
New question #677876 on Yade: https://answers.launchpad.net/yade/+question/677876 Hi everyone, I have very simple simulation. At the beginning there are two spheres, with material: O.materials.append(FrictMat(young=young_k, poisson=poisson_k, density=density_k, frictionAngle=atan(0.3),)) and positions: O.bodies.append([ utils.sphere(center=(0,0,0),radius=5,fixed=True,material=kula[0]) ],) O.bodies.append([ utils.sphere(center=(0.2*5,0,2*5),radius=promien_k,fixed=False,material=kula[0]) ],) In loop: InteractionLoop( [Ig2_Sphere_Sphere_ScGeom6D(interactionDetectionFactor=1.3) ], [Ip2_FrictMat_FrictMat_FrictPhys(), Ip2_CohFrictMat_CohFrictMat_CohFrictPhys(setCohesionNow=True,setCohesionOnNewContacts=True) ], [Law2_ScGeom_FrictPhys_CundallStrack(), ] ), # apply gravity force to particles GravityEngine(gravity=(0,0,-9.81)), # damping: numerical dissipation of energy NewtonIntegrator(damping=0.2) ] The upper sphere is rotating over the first one - so the simulation is working. I'm trying to write short program in C with detection of interaction. Two spheres are in interaction but the interaction all of the time is not real - i get 0 in I->isReal() I can't figure out how to get this to work FrictPhys* physFP = dynamic_cast(I->phys.get()); tmp = physFP->shearForce; tmp - is vector -- 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 #669193]: Yong Modulus rescale
New question #669193 on Yade: https://answers.launchpad.net/yade/+question/669193 Hi everyone, I tried to simulate a one dimension excitation of material built of spheres. I have a problem with young modulus rescale because I wanted to use spheres with a diameter bigger than the width of material. I tried to rescale Young module with this equation: E = Ef * w /(2 r) where E - is Young Module; Ef - is the young module from the experiment, w - width of material and r is the radius of spheres. When I check the results of one dimension excitation the results from experiments (sigma/ epsilon) and from yade are not thesame (like there is some multiplication in Young Module) I use in Engine: [Ig2_Sphere_Sphere_ScGeom6D(interactionDetectionFactor=1.3), Ig2_Wall_Sphere_ScGeom(),Ig2_Facet_Sphere_ScGeom6D()], [Ip2_FrictMat_FrictMat_FrictPhys(), Ip2_CohFrictMat_CohFrictMat_CohFrictPhys(setCohesionNow=False,setCohesionOnNewContacts=False), Ip2_CohFrictMat_CohFrictMat_CohFrictPhys(setCohesionNow=True,setCohesionOnNewContacts=False), ], Pawel -- 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 #294845]: Multicore Yade
New question #294845 on Yade: https://answers.launchpad.net/yade/+question/294845 When I start yade-1.07.0 -j4 --performance four cores are working, but when I start my script it works only on one thread. # FUNCTIONAL COMPONENTS # simulation loop -- see presentation for the explanation O.engines=[ PyRunner(command='SaveData()',virtPeriod=1./1000), ForceResetter(), VppNeighbours(), VppPressureForce(), PyRunner(command='ChangeMask()',iterPeriod=1), PyRunner(command='ChangePos()',iterPeriod=1), PyRunner(command='ChangePosFoil()',iterPeriod=1), PyRunner(command='PreChangePos()',iterPeriod=1), PyRunner(command='PressureOn()',iterPeriod=1), PyRunner(command='PressureTimeOn()',iterPeriod=1), InsertionSortCollider([Bo1_Sphere_Aabb(aabbEnlargeFactor=1),Bo1_Wall_Aabb(),Bo1_Facet_Aabb()]), InteractionLoop( [Ig2_Sphere_Sphere_ScGeom6D(interactionDetectionFactor=1.2), Ig2_Wall_Sphere_ScGeom(),Ig2_Facet_Sphere_ScGeom6D()], [Ip2_FrictMat_FrictMat_FrictPhys(), Ip2_CohFrictMat_CohFrictMat_CohFrictPhys(setCohesionNow=False,setCohesionOnNewContacts=False), VppIp2_VppCohFrictMat_VppCohFrictMat_CohFrictPhys(setCohesionNow=True,setCohesionOnNewContacts=False), VppIp2_CohFrictMat_VppCohFrictMat_CohFrictPhys(setCohesionNow=False,setCohesionOnNewContacts=False)#, #VppPressure_VppCohFrictMat_VppCohFrictMat() ], [Law2_ScGeom_FrictPhys_CundallStrack(), VppLaw2_ScGeom6D_CohFrictPhys_CohesionMoment( useIncrementalForm=False, #useIncrementalForm is turned on as we want plasticity on the contact moments always_use_moment_law=True, #if we want "rolling" friction even if the contact is not cohesive (or cohesion is broken), we will have to turn this true somewhere shearBreaksCohesion = False, label='cohesiveLaw')] ), # apply gravity force to particles GravityEngine(gravity=(0,0,-9.81)), # damping: numerical dissipation of energy NewtonIntegrator(damping=0.2) ] # set timestep to a fraction of the critical timestep # the fraction is very small, so that the simulation is not too fast # and the motion can be observed O.dt=utils.PWaveTimeStep() # save the simulation, so that it can be reloaded later, for experimentation O.saveTmp() yade.qt.Controller(), yade.qt.View(); -- 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 #294822]: img_rc.py not found
Question #294822 on Yade changed: https://answers.launchpad.net/yade/+question/294822 Pawel gave more information on the question: And I trie to compile Yade 1.14.0. I found thet option USE_QT5 is default switched to off. -- 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 #294822]: img_rc.py not found
Question #294822 on Yade changed: https://answers.launchpad.net/yade/+question/294822 Status: Answered => Open Pawel is still having a problem: OK how can I change to qt4? if there is any option while compile from the sources? I installed two packages but the error is still there. -- 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 #294822]: img_rc.py not found
New question #294822 on Yade: https://answers.launchpad.net/yade/+question/294822 When executing the command after compilation make install on debian i have an error CMake Error at gui/cmake_install.cmake:88 (file): file INSTALL cannot find "/home/pawel/Desktop/yade_vpp/build/img_rc.py". Call Stack (most recent call first): cmake_install.cmake:194 (include) Makefile:66: recipe for target 'install' failed Packages python-pyqt5 or pyqt5-dev-tools are installed root@debian:/home/pawel/Desktop/yade_vpp/build# dpkg -s python-pyqt5 Package: python-pyqt5 Status: install ok installed Priority: optional Section: python Installed-Size: 13335 Maintainer: Debian Python Modules Team Architecture: amd64 Source: pyqt5 Version: 5.3.2+dfsg-3 Depends: python (>= 2.7), python (<< 2.8), libc6 (>= 2.14), libqt5core5a (>= 5.3.0), libqt5dbus5 (>= 5.0.2), libqt5designer5 (>= 5.0.2), libqt5gui5 (>= 5.3.0), libqt5help5 (>= 5.3.0), libqt5network5 (>= 5.3.0), libqt5printsupport5 (>= 5.3.0), libqt5test5 (>= 5.0.2), libqt5widgets5 (>= 5.3.0), libstdc++6 (>= 4.1.1), qtbase-abi-5-3-2, sip-api-11.1 Suggests: python-pyqt5-dbg Description: Python bindings for Qt5 PyQt5 exposes the Qt5 API to Python. This package contains the following modules: * QtCore * QtDBus * QtDesigner * QtGui * QtHelp * QtNetwork * QtPrintSupport * QtTest * QtWidgets Homepage: http://www.riverbankcomputing.co.uk/software/pyqt/ root@debian:/home/pawel/Desktop/yade_vpp/build# dpkg -s pyqt5-dev-tools Package: pyqt5-dev-tools Status: install ok installed Priority: optional Section: python Installed-Size: 273 Maintainer: Debian Python Modules Team Architecture: amd64 Source: pyqt5 Version: 5.3.2+dfsg-3 Depends: python3, python3-pyqt5 (= 5.3.2+dfsg-3), libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libqt5core5a (>= 5.0.2), libqt5xml5 (>= 5.1.0), libstdc++6 (>= 4.1.1) Description: Development tools for PyQt5 This package contains various support tools for PyQt5 developers: * a user interface compiler (pyuic5) * a resource file generator (pyrcc5) * a translation string finder (pylupdate5) Homepage: http://www.riverbankcomputing.co.uk/software/pyqt/ I need yade from sources. My system root@debian:/home/pawel/Desktop/yade_vpp/build# cat /etc/debian_version 8.4 -- 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 #265275]: Inheritance of State Class - add variables
Question #265275 on Yade changed: https://answers.launchpad.net/yade/+question/265275 Status: Answered => Open Pawel is still having a problem: Hi Thank you for your answers. I created a class named MyState as: class MyState: public State{ public: YADE_CLASS_BASE_DOC_ATTRS(MyState,State,"MyState of a body.", ((bool,isSet,false,,"my isSet")) ); REGISTER_CLASS_INDEX(MYState,State); }; REGISTER_SERIALIZABLE(MyState); Next i made changes to utils.py by add a new MySphere def MYsphere(center,radius,dynamic=None,fixed=False,wire=False,color=None,highlight=False,material=-1,mask=1): b=Body() b.state = MYState() b.shape=Sphere(radius=radius,color=color if color else randomColor(),wire=wire,highlight=highlight) V=(4./3)*math.pi*radius**3 geomInert=(2./5.)*V*radius**2 _commonBodySetup(b,V,Vector3(geomInert,geomInert,geomInert),material,pos=center,dynamic=dynamic,fixed=fixed) b.aspherical=False b.mask=mask return b And there is an error ;( Traceback (most recent call last): File "./install/bin/yade-1.09.0", line 178, in runScript execfile(script,globals()) File "myscript.py", line 87, in O.bodies.append([utils.MYsphere(k*Vz,r,material=green[0],color=green[1])]) .. NameError: global name 'MYState' is not defined All c++ code compiles without errors. 2015-04-15 23:16 GMT+02:00 Bruno Chareyre < question265...@answers.launchpad.net>: > Your question #265275 on Yade changed: > https://answers.launchpad.net/yade/+question/265275 > > Bruno Chareyre proposed the following answer: > Hi, > You can use conventional C++ inheritance and add the new variables with > the YADE_CLASS macro: > > class MyState: State > { >YADE_CLASS(... > ((int, myNewVariable,...)) > } > > A python code generating a body with this new State would read: > > b=Body() > b.state=MyState() > > -- > 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/265275/+confirm?answer_id=1 > > 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/265275 > > You received this question notification because you asked the question. > -- *Paweł Chodkiewicz* *Instytut Podstaw Budowy Maszyn* *Wydział Samochodów i Maszyn Roboczych* Politechnika Warszawska ul. Narbutta 84 02-524 Warszawa *tel. 603 303 134* *pa...@chodkiewicz.com.pl * You received this question notification because you are a member of yade-users, which 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 #265275]: Inheritance of State Class - add variables
New question #265275 on Yade: https://answers.launchpad.net/yade/+question/265275 Hi, How can I create a class that inheritate State Class and adds some variables taht I can use them when creating body objects also in c classes and python? -- You received this question notification because you are a member of yade-users, which 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