← Back to team overview

yade-users team mailing list archive

[Question #244312]: Clump templates

 

New question #244312 on Yade:
https://answers.launchpad.net/yade/+question/244312

Hey Guys,

I have some issues with clump templates definition. 
First one all it does not work with Yade and I can only define templates with Yadedaily. Like, when I run the script with Yade I get the error :
"  templates.append(clumpTemplate(relRadii=relRadList3,relPositions=relPosList3))
NameError: name 'clumpTemplate' is not defined"

Anyways, it works with Yadedaily. However, it is very slow for clumps made of around 20 balls. I have already made som clumps using imaging techniques to represent some irregular-shape particles. An example is as follows;


relRadList3 =[0.000471583,0.00060213,0.000631454,0.000493144,0.000695336,0.000395284,0.000550567,0.00037674,0.000656561,0.000218143,0.000223094,0.000484354,0.00036813,0.000514327,0.000395357,0.000377391,0.000454081,0.000355504,0.00061375,0.00068747,0.000508243,0.000447592,0.000549008,0.000486356,0.000664425,0.000587608,0.00015184,0.000695789,0.000484995,0.000443755]

relPosList3 = [[0.000213504,0.000920219,5.17294e-005],[0.000181129,-0.000693148,-0.000301356],[0.000191565,0.000550929,0.000472726],[-6.9806e-005,0.000814473,0.000504795],[-0.00016687,-4.19741e-005,0.000273102],[-0.000632058,-0.000285906,0.000255655],[8.5103e-005,-2.87712e-006,0.000608655],[-0.000369852,6.12296e-006,-0.00056701],[7.38905e-005,0.000497426,2.97204e-005],[0.000135818,0.000562643,-0.000842692],[0.000748387,0.00077499,0.000784656],[7.88683e-005,0.000626452,-0.00032004],[0.000526651,-0.000553811,0.000109479],[0.000136113,0.000176874,-0.000254769],[-0.000209755,-0.000765094,-0.000832511],[-0.000945048,-0.00034182,-0.000150738],[0.000425963,-0.000381421,-0.000472185],[0.000544025,0.000492145,0.000918189],[-0.000262527,0.000319288,0.000244014],[-0.0002573,-0.000432994,-0.000293022],[0.000500309,-0.000741747,-0.000145635],[0.000354013,4.94286e-005,0.000772469],[7.29082e-005,-0.000364611,-0.000799481],[0.00015904,0.000954791,0.00058286],[0.000106567,-0.000252692,2.9281e-005],[-0.000616653,-0.000235914,-0.000163413],[-0.00114642,8.90673e-005,-0.000146111],[-0.000361004,-0.000311422,-0.000152367],[-0.000655366,-2.8257e-005,-0.000169021],[-0.000501808,-6.06848e-005,-0.000385601]]


and then I write:
templates= []
templates.append(clumpTemplate(relRadii=relRadList3,relPositions=relPosList3))


This simply doesn't work without any error message! 
But when I change the coordinates of some balls it works! Does any body have an idea of what the hell is the problem here?

Thanks

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.