"extra" value for bodies
Bug #1031703 reported by
Christian Jakob
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Yade |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
Hi,
It would be very helpful, if there would be an "extra" value for every body. This value can be set by the user. It must be a very fexible value (bool, int, float, vector, array, etc.).
Example:
I create a clump, which consists of two hardly overlapping spheres and sometimes I need the volume of the clump (which is not the sum of the volumes of the two spheres in this case). So this could be easily managed by this "extra" value. Where i could set either the volume of the clump as extra value to the clump or i could set the volume fractions as extra values to the spheres.
Changed in yade: | |
importance: | Undecided → Wishlist |
Changed in yade: | |
status: | New → Invalid |
To post a comment you must log in.
Hello Christian,
sorry if I misunderstood your question, but would you like to achieve this?
Yade [1]: b = utils.sphere( (1,1,1) ,1)
Yade [2]: O.bodies.append(b)
-> [2]: 0
Yade [3]: b.extra = 4
Yade [4]: b.extra
-> [4]: 4
Yade [5]: b.extra = Vector3(1,2,3)
Yade [6]: b.extra
-> [6]: Vector3(1,2,3)
Jan