[Yade-users] [Question #290716]: There's something wrong with the function shape.setVertices() of polyhedra.
New question #290716 on Yade: https://answers.launchpad.net/yade/+question/290716 Hi there, I find that there will be something wrong when I use shape.setVertices() to update the coords of polyhedra element. The following is a simple example: a = [[0,0,0],[0,0,1],[0,1,0],[1,0,0]] b = [[0,0,0],[0,0,1],[0,1,0],[2,0,0]] The I created two tetraPoly Elements: The first one: O.bodies.append(yade.utils.tetraPoly(a)) And the second one: O.bodies.append(yade.utils.tetraPoly(b)) We can get the two elements' geometrical parameters: / The first one: */ Local coords: [Vector3(0.816496580927726,-2.7755575615628914e-17,0.14433756729740668), Vector3(-0.408248290463863,0.7071067811865476,0.14433756729740627), Vector3(-0.40824829046386313,-0.7071067811865475,0.14433756729740638), Vector3(1.1102230246251565e-16,0,-0.43301270189221935)] Center position: Vector3(0.25,0.25,0.25) And orientation: Quaternion((-0.7692737357538557,0.5902844985873291,-0.24450384497347377),0.9878610573978008) / The second one: */ Local coords: [Vector3(1.540585613069975,-2.7755575615628914e-17,0.03994957824318643), Vector3(-0.5735312506428961,0.7071067811865476,0.21462037306834483), Vector3(-0.5735312506428962,-0.7071067811865477,0.2146203730683448), Vector3(-0.3935231117841831,-2.7755575615628914e-17,-0.46919032437987607)] Center position: Vector3(0.5,0.25,0.25) And orientation: Quaternion((-0.947296213713065,0.29597311537489573,-0.12259607848609863),0.8244158709535887) Then, we use 'shape.setVertices()' function to pass the coords of the second element to the first one: O.bodies[0].shape.setVertices(b) / The first one's geometrical parameters after calling 'setVertices': */ Local coords: [Vector3(1.540585613069975,-2.7755575615628914e-17,0.03994957824318643), Vector3(-0.5735312506428961,0.7071067811865476,0.21462037306834483), Vector3(-0.5735312506428962,-0.7071067811865477,0.2146203730683448), Vector3(-0.3935231117841831,-2.7755575615628914e-17,-0.46919032437987607)] Center position: Vector3(0.25,0.25,0.25) And orientation: Quaternion((-0.7692737357538557,0.5902844985873291,-0.24450384497347377),0.9878610573978008) It seems that the 'setVertices() function only changed the Local coords of the element, leaving Center position and orientation of the element unchanged, which will make the global coordinates of the element go wrong. Could you please help me find out a solution to correct this? Thank you very much! -- 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 #290372]: Young modulus computation
Question #290372 on Yade changed: https://answers.launchpad.net/yade/+question/290372 mohsen posted a new comment: in the case of larg number of particles, i think for each new interaction, computation follows Cpmphys functor; i.e. computing 'average' E. Therefore i should change 'E' by above formula in each iteration an for every interaction. So in my script where should i put the above 'for' loop?! For example for 1000 iterations is the following script true? #after defining scene and engines# ii=1000 while O.iterhttps://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 #290497]: Impact dynamic for landing scenario
Question #290497 on Yade changed: https://answers.launchpad.net/yade/+question/290497 Status: Answered => Solved Jonathan Pergoli confirmed that the question is solved: Thanks Jan Stránský, that solved my question. -- 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 #290497]: Impact dynamic for landing scenario
Question #290497 on Yade changed: https://answers.launchpad.net/yade/+question/290497 Status: Open => Answered Jan Stránský proposed the following answer: Hi Jonathan, I'm new in Yade welcome :-) I hope the question is clear :) not really.. at least to me. Yade is a "deterministic" software, so whatever you compute, you have to specify completely your initial state (or let something unspecified assuming some default values, like zero velocities of bodies). Of course, you can make some values random, but they have to be specified anyway. Or you can run a lot of simulations with different initial conditions, but again they have to be specified. If you think I answer something different than you expect, please be a bit more specific what is your purpose and backgroung of your simulation. cheers Jan 2016-04-11 18:08 GMT+02:00 Jonathan Pergoli < question290...@answers.launchpad.net>: > New question #290497 on Yade: > https://answers.launchpad.net/yade/+question/290497 > > Hi! > > I'm new in Yade. I have to use it to simulate several landing scenarios of > a satellite on an asteroid. Since I have to make many simulations for > different velocities and attitude of the satellite, I don't know the > initial state of the satellite. So what I'm asking is if it is possible to > make an analysis with Yade with an unknown initial dynamic before the > impact on the ground or if I have to impose some initial conditions on the > satellite's dynamic. > > I hope the question is clear :) > > Jonathan > > -- > 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 #290372]: Young modulus computation
Question #290372 on Yade changed: https://answers.launchpad.net/yade/+question/290372 Status: Open => Answered Jan Stránský proposed the following answer: > > > But according to your opinion is it logic to compute an average for E!! > specially when there is a great deference between tow young modulus? for > example in my practice, the interaction young modulus is very close to 'E' > of mat1 and very far from 'E' of mat2. > Is there any other suggestion or experience of computation of 'E' of > interaction? > 'average' may be a good approach for computation of 'friction angle' of > interaction; but may be bad for 'E' > well, it is not my opinion, it is actual implementation :-) Of course you are free to implement your own formula, or change material parameters of the interaction as you want: ### for i in O.interactions: mat1 = O.bodies[i.id1].mat mat2 = O.bodies[i.id2].mat E1,E2 = mat1.young, mat2.young i.phys.E = whatever(E1,E2) i.phys.kn = pi*pow(i.crossSection,2)*i.phys.E / i.phys.refLength # similarly for other parameters ### 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 #290372]: Young modulus computation
Question #290372 on Yade changed: https://answers.launchpad.net/yade/+question/290372 Status: Solved => Open mohsen is still having a problem: Thank you very much Jan!! But according to your opinion is it logic to compute an average for E!! specially when there is a great deference between tow young modulus? for example in my practice, the interaction young modulus is very close to 'E' of mat1 and very far from 'E' of mat2. Is there any other suggestion or experience of computation of 'E' of interaction? 'average' may be a good approach for computation of 'friction angle' of interaction; but may be bad for 'E' -- 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 #290372]: Young modulus computation
Question #290372 on Yade changed: https://answers.launchpad.net/yade/+question/290372 Status: Answered => Solved mohsen confirmed that the question is solved: Thanks Jan Stránský, that solved my question. -- 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 #290497]: Impact dynamic for landing scenario
New question #290497 on Yade: https://answers.launchpad.net/yade/+question/290497 Hi! I'm new in Yade. I have to use it to simulate several landing scenarios of a satellite on an asteroid. Since I have to make many simulations for different velocities and attitude of the satellite, I don't know the initial state of the satellite. So what I'm asking is if it is possible to make an analysis with Yade with an unknown initial dynamic before the impact on the ground or if I have to impose some initial conditions on the satellite's dynamic. I hope the question is clear :) Jonathan -- 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 #290423]: Interal friction angle - repose angle
Question #290423 on Yade changed: https://answers.launchpad.net/yade/+question/290423 Description changed to: Hi all, As I have understood in YADE by considering Mohr-Coulomb theory the INTERNAL friction ( which be assigned to material as its property) is combination of static friction and interlocking . In other words combination of peak and residual friction angle (?) So as you may know, we can assume the angle of repose ( the static angle of material) equal to residual friction angel. If I do some parametric study on friction angle definitely by increasing the internal friction angle ( the only kind of friction in YADE???) , the repose angle will be increase. Now this question will be raised, is there any chance to introduce peak and residual friction angle individually in order to compare angle of repose to residual friction angle ? if no , is INTERNAL friction , mean of peak and residual ? or, I hope explain my question in appropriate way. if no, no drama, I will try again ;) -- 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 #290423]: Interal friction angle - repose angle
New question #290423 on Yade: https://answers.launchpad.net/yade/+question/290423 Hi all, As I have understand in YADE by considering Mohr-Coulomb theory the INTERNAL friction ( which be assigned to material as its property) is combination of static friction and interlocking . In other words combination of peak and residual friction angle (?) So as you may know, we can assume the angle of repose ( the static angle of material) equal to residual friction angel. If I do some parametric study on friction angle definitely by increasing the internal friction angle ( the only kind of friction in YADE???) , the repose angle will be increase. Now this question will be raised, is there any chance to introduce peak and residual friction angle individually in order to compare angle of repose to residual friction angle ? if no , is INTERNAL friction , mean of peak and residual ? or, I hope explain my question in appropriate way. if no, no drama, I will try again ;) -- 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 #290070]: TesselationWrapper and porosity
Question #290070 on Yade changed: https://answers.launchpad.net/yade/+question/290070 Bruno Chareyre proposed the following answer: It must be a scope issue, try something around globals()["TW"].volume(id)? Else it should be possible to add the attribute: b.volume=TW.volume(b.id) #then use it to export -- 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