Re: [Yade-users] [Question #680867]: libQGLViewer problems while running yade
Question #680867 on Yade changed: https://answers.launchpad.net/yade/+question/680867 Janek Kozicki requested more information: Also: Can you find where metis.h is on your system. It's a part of libmetis-dev package. I think i have to update CmakeLists.txt file to fix this -- 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 #680867]: libQGLViewer problems while running yade
Question #680867 on Yade changed: https://answers.launchpad.net/yade/+question/680867 Janek Kozicki proposed the following answer: Is there also an #include error? On 17 May 2019, 11:17 +0200, Anton Vereshchagin , wrote: > Question #680867 on Yade changed: > https://answers.launchpad.net/yade/+question/680867 > > Anton Vereshchagin posted a new comment: > I pulled the latest version. Some things changed in configuration of > CMake. > > 1) On my system I have python versions 2.7, 3.6 and 3.7. But mostly for > the system I use 3.6. Cmake searches for all versions and chooses 3.7. > So I had to modify a little CMakeLists.txt for a proper python version > 3.6 > > 2) The compilation stops with error for all constants METIS_VER_MAJOR, > METIS_VER_MINOR, METIS_VER_SUBMINOR like > > In function «boost::python::list metisVer()»: > trunk/py/_libVersions.cpp:206:31: error: no declaration «METIS_VER_MAJOR» > ret.append( py::make_tuple( METIS_VER_MAJOR , METIS_VER_MINOR , > METIS_VER_SUBMINOR)); > ^~~ > > So I cannot continue. > > 3) Concerning libQGLViewer i will try to recompile Qt library maybe > it'll change anything > > > By the way, thank you for a good piece of software. > > -- > 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] [Question #680907]: Yade Class not find in a user defined python class
Question #680907 on Yade changed: https://answers.launchpad.net/yade/+question/680907 gaoxuesong gave more information on the question: The line i used to create symbolic link is, ln -s /usr/bin/yade yadeimport.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
[Yade-users] [Question #680907]: Yade Class not find in a user defined python class
New question #680907 on Yade: https://answers.launchpad.net/yade/+question/680907 I want to write a data-post class for the result from yade. In my class i used the Sphere class. But when i invoke my class in yade console, the Sphere class is not recognised. I have looked up the information about Importing Yade in other Python applications. It says as following, $ cd /path/where/you/want/yadeimport $ ln -s /path/to/yade/executable/yade-trunk yadeimport.py But when i do the second step, the error comes as "operation is not supported". Here is my code, for my class file named “yadedatapost.py” import numpy as np import os from yadeimport import * class yadeDataPost: def __init__(self): pass def erase_outbox_sphere(self): for eb in O.bodies: if isinstance(eb.shape, Sphere): O.bodies.erase(eb.id) Then i start yade from terminal, input the following code, import sys sys.path.append('/mnt/hgfs/virpc/backup') from yadedatapost import yadeDataPost dp1 = yadeDataPost() dp1.erase_outbox_sphere() The error comes, No Sphere defined. I know the critical step of creating a symbolic link is missing. 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
[Yade-users] [Question #680904]: simulation problem between sphere and polyhedra
New question #680904 on Yade: https://answers.launchpad.net/yade/+question/680904 hello i was simulating the contact between sphere and polyhedra, but there is a problem:when the particle When particles come into contact with the boundary which formed by polyhedra with fixed position, it It bounces up and then fly away,moreover, the polyhedra paticle just get though the boundary, and finally only a few sphere left in the contain form by polyhedron boundary. below is my code: from yade import polyhedra_utils,pack,plot,utils import random #m = PolyhedraMat(young=1e10,poisson=.05) n = FrictMat(young=1e9,poisson=.2) O.materials.append(n) #the boundary of particle flow v1=((0,0,0),(0,3.2,0),(0,0,6),(0,3.2,6),(-0.1,0,0),(-0.1,3.2,0),(-0.1,0,6),(-0.1,3.2,6)) v2=((0,0,0),(0,0,6),(18,0,0),(18,0,6),(0,0.1,0),(0,0.1,6),(18,0.1,0),(18,0.1,6)) v3=((0,3.1,0),(0,3.1,6),(18,3.1,0),(18,3.1,6),(0,3.2,0),(0,3.2,6),(18,3.2,0),(18,3.2,6)) v4=((0,0,0),(0,3.2,0),(18,3.2,0),(18,0,0),(0,0,-0.1),(0,3.2,-0.1),(18,3.2,-0.1),(18,0,-0.1)) v5=((3,0.1,0),(3,3.1,0),(3,0.1,6),(3,3.1,6),(3.1,0.1,0),(3.1,3.1,0),(3.1,0.1,6),(3.1,3.1,6)) b1 = polyhedra_utils.polyhedra(material=n,v=v1,fixed=True) # you can set wire at b2 = polyhedra_utils.polyhedra(material=n,v=v2,fixed=True) b3 = polyhedra_utils.polyhedra(material=n,v=v3,fixed=True) b4 = polyhedra_utils.polyhedra(material=n,v=v4,fixed=True) wall = polyhedra_utils.polyhedra(material=n,v=v5,fixed=True) b2.shape.wire=True O.bodies.append((b1,b2,b3,b4,wall)) #polyhedra_utils.fillBox((0,0,0),(10,10,20),m,seed=1) #sphere particles mixed with polyhedra sp=pack.SpherePack() sp.makeCloud((0,0,10),(3,3,30),psdSizes=[0.1,0.5,0.8],psdCumm=(0.5,0.8,1),seed=1) for center,radius in sp: if radius >= 0.3: t = polyhedra_utils.polyhedra(n,(radius,radius,radius)) t.state.pos = center # sets polyhedron position according to sphere position O.bodies.append(t) else: t = sphere(center,radius,material=n) O.bodies.append(t) #simulation O.engines = [ ForceResetter(), InsertionSortCollider([Bo1_Polyhedra_Aabb(),Bo1_Sphere_Aabb()]), InteractionLoop( [Ig2_Polyhedra_Polyhedra_ScGeom(), Ig2_Sphere_Polyhedra_ScGeom(), Ig2_Sphere_Sphere_ScGeom()], [Ip2_FrictMat_FrictMat_FrictPhys()], [Law2_ScGeom_FrictPhys_CundallStrack()] # contact law -- apply forces ), # GravityEngine(gravity=(0,0,-9.81)), NewtonIntegrator(damping=0.5, gravity=(0, 0, -9.81)), PyRunner(command='checkUnbalanced()', realPeriod=3, label='checker') ] O.dt=5e-5 O.trackEnergy=True def checkUnbalanced(): if unbalancedForce()<.05: O.pause() def addPlotData(): # each item is given a names, by which it can be the unsed in plot.plots # the **O.energy converts dictionary-like O.energy to plot.addData arguments plot.addData(i=O.iter,unbalanced=unbalancedForce(),**O.energy) # define how to plot data: 'i' (step number) on the x-axis, unbalanced force # on the left y-axis, all energies on the right y-axis # (O.energy.keys is function which will be called to get all defined energies) # None separates left and right y-axis plot.plots={'i':('unbalanced',None,O.energy.keys)} # show the plot on the screen, and update while the simulation runs plot.plot() O.saveTmp() i would appreciate if if you can help me -- 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 #680892]: O.engines[].dead=True
Question #680892 on Yade changed: https://answers.launchpad.net/yade/+question/680892 Status: Answered => Solved Francesco confirmed that the question is solved: Thank you Robert! Your idea looks to be good. I used this option for the translation of other bodies and it actually works. I'll do what you suggested me. Cheers, Francesco -- 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 #680895]: contact problem of different particle shape
Question #680895 on Yade changed: https://answers.launchpad.net/yade/+question/680895 Status: Answered => Open lip is still having a problem: thank for your advice, it do helped me in some way. now that the polyhedraMats is a FricMat, then what should i do to define the law between between ScGeom and polyhedraMat -- 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 #680898]: strain in PeriTriaxController
Question #680898 on Yade changed: https://answers.launchpad.net/yade/+question/680898 Status: Open => Solved zhou qian confirmed that the question is solved: sorry I think it's a ridiculous question. because in the 0.001 example, the cell was stabilized 3 times while in 0.003 condition it was stabilized only 1 time and the error accumulated. -- 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 #680898]: strain in PeriTriaxController
New question #680898 on Yade: https://answers.launchpad.net/yade/+question/680898 Hi: I use the peritriaxcontroller. My init cell size is 1.6e-3*vector3, containing about1000 spheres. dt is about 2.e-6. my goal is first step: (1.e-5,1.e-5,1.e-5),mask=7, second step: (1.e-5,1.e-5,currentstrain-0.003),mask=3 however, if I set the goal: first step: (1.e-5,1.e-5,1.e-5),mask=7, 2th-4th step: (1.e-5,1.e-5,currentstrain-0.001),mask=3 The final goal is the same, and I checked PeriIsoCompressor.cpp, I think the strain rate is also the same (except the last step), but the stress is different. Changing strain 0.001, and the stress(z axis) is more stable and relatively smaller than 0.003. Why the result is different? Yours, Joe -- 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 #680895]: contact problem of different particle shape
Question #680895 on Yade changed: https://answers.launchpad.net/yade/+question/680895 Status: Open => Answered Bruno Chareyre proposed the following answer: Hi, > no law defined in yade between ScGeom and polyhedraMat It should be fine since polyhedraMat is a (inherits from) FrictMat and there are functors for ScGeom with FrictMat. That's still a bit hypothetical, hard to guarantee without a working script to start with. Bruno -- 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 #680892]: O.engines[].dead=True
Question #680892 on Yade changed: https://answers.launchpad.net/yade/+question/680892 Bruno Chareyre posted a new comment: https://www.yade-dem.org/wiki/Howtoask -- 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 #680895]: contact problem of different particle shape
New question #680895 on Yade: https://answers.launchpad.net/yade/+question/680895 hello i was dong a simulation, the contact involved sphere-sphere, sphere-facet, sphere-polyhedra, polyhedra-polyhedra, polyhedra-facet.But contact between polyhedra and facet can only form PolyhedraGeom, which require that the material of polyhedra particles must be PolyhedraMats, otherwise there is no matching law can be used to calculate the force, if that, the meterial of shhere must be polyhedramat too, then i can apply law2_polyhedraGeom_polyhedraPhys_Volumetric to calculate the force between sphere and polyhedra.But when it comes to the contact between facet and shpere, there is a problem,contact between polyhedra and facet can only form ScGeom, howerer, no law defined in yade between ScGeom and polyhedraMat. by the way, facet is used to form the boundary, i haved considered use polyhedra to form the boundary, which can solve my problem, but i still want to know is there exsit other solution for my problem? look forward for you advice -- 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 #680892]: O.engines[].dead=True
Question #680892 on Yade changed: https://answers.launchpad.net/yade/+question/680892 Status: Open => Answered Robert Caulk proposed the following answer: The script is not Working for me (and a tough sell on "Minimal" too :-) ) I get: NameError: name 'angle' is not defined Sifting through your script, I will take a guess at your problem: RotationEngine allows you to add an angularVelocity to a body. The engine is not responsible for the dynamics of the system. Turning the engine to dead means the RotationEngine is no longer setting an angularVelocity to the body. But the body still exists and still has an angular velocity. I guess you are looking for something more along the lines of: def motion_5(): O.engines[11].angularVelocity=0 O.engines[11].angularVelocity=0 If you want to set the angularVelocity to 0 for a set of bodies. Cheers, Robert -- 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 #680867]: libQGLViewer problems while running yade
Question #680867 on Yade changed: https://answers.launchpad.net/yade/+question/680867 Anton Vereshchagin posted a new comment: I pulled the latest version. Some things changed in configuration of CMake. 1) On my system I have python versions 2.7, 3.6 and 3.7. But mostly for the system I use 3.6. Cmake searches for all versions and chooses 3.7. So I had to modify a little CMakeLists.txt for a proper python version 3.6 2) The compilation stops with error for all constants METIS_VER_MAJOR, METIS_VER_MINOR, METIS_VER_SUBMINOR like In function «boost::python::list metisVer()»: trunk/py/_libVersions.cpp:206:31: error: no declaration «METIS_VER_MAJOR» ret.append( py::make_tuple( METIS_VER_MAJOR , METIS_VER_MINOR , METIS_VER_SUBMINOR)); ^~~ So I cannot continue. 3) Concerning libQGLViewer i will try to recompile Qt library maybe it'll change anything By the way, thank you for a good piece of software. -- 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 #680892]: O.engines[].dead=True
Question #680892 on Yade changed: https://answers.launchpad.net/yade/+question/680892 Status: Answered => Open Francesco is still having a problem: Hi, I attached the code. I commented some functions related to data storing that could create problems. Thank you so much. Francesco Code: from numpy import linspace from yade import pack, qt import numpy as np import os import glob import re import smtplib from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText from email.MIMEBase import MIMEBase from email import encoders ## # Parameters ## mi=10**-3 # Millimetres transformation mu=10**-6 # Micron transformation x1=10*mi# Box half side z1=10*mi# Box heigth dist=100*mi # Nozzle target distance h=z1+(dist) # Nozzle heigth from z=0 rIn=6*mi# Inner radius rOut=12*mi # Cylinder radius eps=0.1*mi # Tollerance itereps=5 rPack=rOut-eps # Pack radius rd=rOut-rIn # Difference between radius l2=80*mi# Cylinder length l_cloud=50*mi # Particles cloud length c1=(4*l_cloud)/9# External particles pack range c2=(1*l_cloud)/9# Middle particles pack range l3=1*mi # Distance from the nozle indentation v=57# Particles initial velocity vi_y=-v*cos(pi*angle/180) vi_z=-v*sin(pi*angle/180) vf1=57 # Fluid velocity 1 vf2=220 # Fluid velocity 2 rMean=40*mu # Mean particles radius Rho=3.61# Air density 1 Cd=0.47 # Sphere drag coefficient wt=10 # Box rotation angle=22.5 # Nozzle angle box_angle=45 vx=1 vz=1 ## # Nozzle creation ## delta=((pi*0.5)/16) poly=((rIn,h), (rOut-(rd*cos(delta)),h+(rIn*sin(delta))), (rOut-(rd*cos(2*delta)),h+(rIn*sin(2*delta))), (rOut-(rd*cos(3*delta)),h+(rIn*sin(3*delta))), (rOut-(rd*cos(4*delta)),h+(rIn*sin(4*delta))), (rOut-(rd*cos(5*delta)),h+(rIn*sin(5*delta))), (rOut-(rd*cos(6*delta)),h+(rIn*sin(6*delta))), (rOut-(rd*cos(7*delta)),h+(rIn*sin(7*delta))), (rOut-(rd*cos(8*delta)),h+(rIn*sin(8*delta))), (rOut-(rd*cos(9*delta)),h+(rIn*sin(9*delta))), (rOut-(rd*cos(10*delta)),h+(rIn*sin(10*delta))), (rOut-(rd*cos(11*delta)),h+(rIn*sin(11*delta))), (rOut-(rd*cos(12*delta)),h+(rIn*sin(12*delta))), (rOut-(rd*cos(13*delta)),h+(rIn*sin(13*delta))), (rOut-(rd*cos(14*delta)),h+(rIn*sin(14*delta))), (rOut-(rd*cos(15*delta)),h+(rIn*sin(15*delta))), (rOut,h+rIn),(rOut,h+rIn+(l2/8)),(rOut,h+rIn+(l2/4)), (rOut,h+rIn+((3*l2)/8)),(rOut,h+rIn+((4*l2)/8)),(rOut,h+rIn+((5*l2)/8)), (rOut,h+rIn+((6*l2)/8)),(rOut,h+rIn+((7*l2)/8)),(rOut,h+rIn+(l2)) ) thetas=linspace(0,2*pi,num=32,endpoint=True) Nozzle=O.materials.append(FrictMat(density=7.8*10**3,young=210e9,poisson=0.3,label="Nozzle")) pts=pack.revolutionSurfaceMeridians([[(pt[0],pt[1]) for pt in poly] for theta in thetas],thetas) surf=pack.sweptPolylines2gtsSurface(pts) nozzle=O.bodies.append(pack.gtsSurface2Facets(surf)) ## # Creating Target ## Aluminum=O.materials.append(FrictMat(density=2.81*10**3,young=71e9,poisson=0.33,label="Aluminum")) p=utils.box((x1,0,0),(x1,x1,z1),fixed=True,material="Aluminum") box=O.bodies.append(p) l=len(O.bodies) t_id=l-1 p1=utils.box((-x1,0,0),(x1,x1,z1),fixed=True,material="Aluminum") box1=O.bodies.append(p1) l_1=len(O.bodies) t_id1=l_1-1 p2=utils.box((2*x1,0,0),(2*x1,x1,z1),fixed=True,material="Aluminum") box2=O.bodies.append(p2) l_2=len(O.bodies) t_id2=l_2-1 p3=utils.box((-2*x1,0,0),(2*x1,x1,z1),fixed=True,material="Aluminum") box3=O.bodies.append(p3) l_3=len(O.bodies) t_id3=l_3-1 p4=utils.box((x1,-2*x1,0),(x1,x1,z1),fixed=True,material="Aluminum") box4=O.bodies.append(p4) l_4=len(O.bodies) t_id4=l_4-1 ## # Creating shots ## V_cloud=((2*rOut)*(2*rOut))*l_cloud*1.1 V_cyl=(pi*rOut*rOut*(l_cloud))
Re: [Yade-users] [Question #680892]: O.engines[].dead=True
Question #680892 on Yade changed: https://answers.launchpad.net/yade/+question/680892 Status: Needs information => Answered Chareyre proposed the following answer: Hi, Please provide a working script. Bruno Le ven. 17 mai 2019 09:37, Francesco a écrit : > New question #680892 on Yade: > https://answers.launchpad.net/yade/+question/680892 > > Hi yade users, > > I'm using the rotation and translation engines to move bodies and pack of > particles. > The simulation starts with the engines set to dead= false. > After I use Pyrunners in order to stop the movements. For example these > are the engines: > > > RotationEngine(angularVelocity=-wt,dead=False,ids=nozzle,rotateAroundZero=True,rotationAxis=(1,0,0),zeroPoint=[0,y_rotation,0]), > > > RotationEngine(angularVelocity=-wt,dead=False,ids=pack_rotation,rotateAroundZero=True,rotationAxis=(1,0,0),zeroPoint=[0,y_rotation,0]), > > This is the function of the pyrunner: > > def motion_5(): > O.engines[11].dead=True > O.engines[12].dead=True > > And this is the pyrunner: > > > PyRunner(command='motion_5()',iterPeriod=1,firstIterRun=iterrotation_2,nDo=2) > > I do not understand why the rotations don't stop. > Does somebody find the same problem? > > Thank you so much, > > Francesco > > > -- > 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] [Question #680892]: O.engines[].dead=True
Question #680892 on Yade changed: https://answers.launchpad.net/yade/+question/680892 Status: Open => Needs information Robert Caulk requested more information: We need an MWE to properly assess [1]. [1]https://www.yade-dem.org/wiki/Howtoask -- 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 #680892]: O.engines[].dead=True
New question #680892 on Yade: https://answers.launchpad.net/yade/+question/680892 Hi yade users, I'm using the rotation and translation engines to move bodies and pack of particles. The simulation starts with the engines set to dead= false. After I use Pyrunners in order to stop the movements. For example these are the engines: RotationEngine(angularVelocity=-wt,dead=False,ids=nozzle,rotateAroundZero=True,rotationAxis=(1,0,0),zeroPoint=[0,y_rotation,0]), RotationEngine(angularVelocity=-wt,dead=False,ids=pack_rotation,rotateAroundZero=True,rotationAxis=(1,0,0),zeroPoint=[0,y_rotation,0]), This is the function of the pyrunner: def motion_5(): O.engines[11].dead=True O.engines[12].dead=True And this is the pyrunner: PyRunner(command='motion_5()',iterPeriod=1,firstIterRun=iterrotation_2,nDo=2) I do not understand why the rotations don't stop. Does somebody find the same problem? Thank you so much, Francesco -- 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 #680888]: how creat a tansparent polyhedra
Question #680888 on Yade changed: https://answers.launchpad.net/yade/+question/680888 Jan Stránský proposed the following answer: Hi, Next time, please be more specific: - transparent in Yade GUI? Paraview? - haw do you create your polyhedrons? a MWE with one polyhedron displaying it would be nice.. Assuming Yade GUI: transparency is controlled by body.shape.wire attribute. Set it to True to see "wireframe". It is not only edges, but also triangulation of more-than-tree-vertex faces. some functions accepts wire argument (like utils.polyhedron), some not (like those in polyhedra_utils module) ### from yade import polyhedra_utils, qt mat = defaultMaterial() p1 = polyhedra_utils.polyhedra(mat) # no parameter 'wire' #p1.wire = ... must be set "manually" p2 = utils.polyhedron(((0,0,0),(1,0,0),(0,1,0),(1,1,0),(0,0,1)),wire=True) # you can set wire at creation O.bodies.append((p1,p2)) qt.View() # uncomment to "flip" transparency #p1.shape.wire = True #p2.shape.wire = False ### 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 #680888]: how creat a tansparent polyhedra
Question #680888 on Yade changed: https://answers.launchpad.net/yade/+question/680888 Status: Open => Answered Jérôme Duriez proposed the following answer: Hi, Like for any other shape: b.shape.wire = True # where b is your YADE body -- 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