yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10819
[Branch ~yade-pkg/yade/git-trunk] Rev 3956: Add discretization parameter to appendClumped.
------------------------------------------------------------
revno: 3956
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Thu 2014-05-15 17:13:51 +0200
message:
Add discretization parameter to appendClumped.
modified:
py/ymport.py
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'py/ymport.py'
--- py/ymport.py 2014-05-12 10:05:04 +0000
+++ py/ymport.py 2014-05-15 15:13:51 +0000
@@ -48,7 +48,7 @@
raise RuntimeError("Please, specify a correct format output!");
return ret
-def textClumps(fileName,shift=Vector3.Zero,scale=1.0,**kw):
+def textClumps(fileName,shift=Vector3.Zero,discretization=0,scale=1.0,**kw):
"""Load clumps-members from file, insert them to the simulation.
:param str filename: file name
@@ -78,12 +78,12 @@
newClumpId = int(data[4])
else:
newClumpId = int(data[4])
- O.bodies.appendClumped(curClump)
+ O.bodies.appendClumped(curClump,discretization=discretization)
curClump=[]
idD = curClump.append(utils.sphere(shift+scale*pos,scale*float(data[3]),**kw))
if (len(curClump)<>0):
- ret = O.bodies.appendClumped(curClump)
+ ret = O.bodies.appendClumped(curClump,discretization=discretization)
return ret
def text(fileName,shift=Vector3.Zero,scale=1.0,**kw):