Re: [Yade-users] [Question #189913]: get porosity of a packing

2012-03-07 Thread Chareyre
Question #189913 on Yade changed: https://answers.launchpad.net/yade/+question/189913 Chareyre proposed the following answer: If you are in periodic bondaries, X is not needed. But since porosity is a function, it needs at least the bracket: utils.porosity() Also note that utils. is useless,

Re: [Yade-users] [Question #189913]: get porosity of a packing

2012-03-07 Thread ceguo
Question #189913 on Yade changed: https://answers.launchpad.net/yade/+question/189913 Status: Answered = Open ceguo is still having a problem: Thanks, I notice the missing of brackets for a function. Regarding to the last problem, I use the example script just with modification from

Re: [Yade-users] [Question #189913]: get porosity of a packing

2012-03-07 Thread Jan Stránský
Question #189913 on Yade changed: https://answers.launchpad.net/yade/+question/189913 Status: Open = Answered Jan Stránský proposed the following answer: try utils.porosity() instead of utils.porosity as already suggested Bruno Jan ceguo píše v St 07. 03. 2012 v 12:30 +: Question

Re: [Yade-users] [Question #189913]: get porosity of a packing

2012-03-07 Thread jduriez
Question #189913 on Yade changed: https://answers.launchpad.net/yade/+question/189913 jduriez posted a new comment: Hello, I guess you probably broke something in the contact law computations with your change between De3DofGeom and ScGeom, so that contact forces at the boundaries are not

Re: [Yade-users] [Question #189913]: get porosity of a packing

2012-03-07 Thread jduriez
Question #189913 on Yade changed: https://answers.launchpad.net/yade/+question/189913 jduriez proposed the following answer: Or, give also a look at https://www.yade-dem.org/doc/yade.wrapper.html#yade.wrapper.PeriTriaxController.reversedForces Maybe were you actually performing an isotropic

Re: [Yade-users] [Question #189913]: get porosity of a packing

2012-03-07 Thread ceguo
Question #189913 on Yade changed: https://answers.launchpad.net/yade/+question/189913 Status: Answered = Solved ceguo confirmed that the question is solved: Thank you all. The first problem is due to the missing of brackets when I call a function as suggested by Luc, Bruno and Jan. The

Re: [Yade-users] [Question #189913]: get porosity of a packing

2012-03-07 Thread Chareyre
Question #189913 on Yade changed: https://answers.launchpad.net/yade/+question/189913 Chareyre posted a new comment: Oooops, I didn't update the page, Jerome has been faster. -- You received this question notification because you are a member of yade-users, which is an answer contact for Yade.

Re: [Yade-users] [Question #189913]: get porosity of a packing

2012-03-07 Thread Chareyre
Question #189913 on Yade changed: https://answers.launchpad.net/yade/+question/189913 Chareyre posted a new comment: Try (see the additional reversedForces attribute):

[Yade-users] [Question #189913]: get porosity of a packing

2012-03-06 Thread ceguo
New question #189913 on Yade: https://answers.launchpad.net/yade/+question/189913 Hi, The problem seems trivial but when I try using `utils.porosity` I can only get something like Boost.Python.function object at The documentation says it should return a float. Besides, as I am using the

Re: [Yade-users] [Question #189913]: get porosity of a packing

2012-03-06 Thread Luc Scholtès
Question #189913 on Yade changed: https://answers.launchpad.net/yade/+question/189913 Status: Open = Answered Luc Scholtès proposed the following answer: Hi Ceguo, Try utils.porosity(X), with X the volume of your assembly and it should work. 2012/3/7 ceguo