← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 1803: Function import_LSMGenGeo_geometry is added to import into the simulation .geo files, generated b...

 

------------------------------------------------------------
revno: 1803
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: trunk
timestamp: Fri 2009-11-20 15:24:50 +0100
message:
  Function import_LSMGenGeo_geometry is added to import into the simulation .geo files, generated by LSMGenGeo libraries. Example is added in ./scripts/test/regular-sphere-pack.py and ./scripts/test/genCylLSM.py
added:
  scripts/test/genCylLSM.py
  scripts/test/regular-sphere-pack-LSMGegGeo.geo
modified:
  scripts/test/regular-sphere-pack.py


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription.
=== added file 'scripts/test/genCylLSM.py'
--- scripts/test/genCylLSM.py	1970-01-01 00:00:00 +0000
+++ scripts/test/genCylLSM.py	2009-11-20 14:24:50 +0000
@@ -0,0 +1,63 @@
+"""
+This example shows how LSMGenGeo generates Cylinder 
+with given parameters.
+
+Be sure LSMGenGeo library is installed.
+
+Symply start this script:
+  python genCylLSM.py
+
+The result is 2 files:
+  "cyl.geo" is the geometry file which can be imported into YADE with import_LSMGenGeo_geometry() function
+  "cyl.vtk" is the VTK-filed which can be opened by any VTK-based software, for example Paraview
+
+http://www.access.edu.au/lsmgengeo_python_doc/current/pythonapi/html/GenGeo-module.html
+https://svn.esscc.uq.edu.au/svn/esys3/lsm/contrib/LSMGenGeo/
+"""
+from GenGeo import *
+import sys
+
+fileName="cyl"
+radius=25
+length=100
+
+minRadius=0.5
+maxRadius=2.0
+
+origin=Vec3(0.0,0.0,0.0)
+axis=Vec3(0.0,0.0,1.0)
+
+minPoint=Vec3(-radius,-radius,-length)
+maxPoint=Vec3(radius,radius,length)
+
+box=CylinderVol (
+  origin = origin,
+  axis = axis,
+  radius = radius,
+  length = 2.0*length
+)
+
+mntable=MNTable3D (
+  minPoint=minPoint,
+  maxPoint=maxPoint,
+  gridSize=2.5*maxRadius,
+  numGroups=1
+)
+
+packer=InsertGenerator3D(
+  minRadius=minRadius,
+  maxRadius=maxRadius,
+  insertFails=1000,
+  maxIterations=1000,
+  tolerance=1.0e-6,
+  seed=0
+)
+
+packer.generatePacking (
+  volume=box,
+  ntable=mntable,
+  groupID=0
+)
+
+mntable.write(fileName+".geo",1)
+mntable.write(fileName+".vtu",2)

=== added file 'scripts/test/regular-sphere-pack-LSMGegGeo.geo'
--- scripts/test/regular-sphere-pack-LSMGegGeo.geo	1970-01-01 00:00:00 +0000
+++ scripts/test/regular-sphere-pack-LSMGegGeo.geo	2009-11-20 14:24:50 +0000
@@ -0,0 +1,398 @@
+LSMGeometry 1.2
+BoundingBox -2 -2 -8 3.25 3.25 9.5
+PeriodicBoundaries 0 0 0
+Dimension 3D
+BeginParticles
+Simple
+387
+-0.9262759724 -1.058448624 0.5934789567 0.5934786407 430 0
+-0.7337180112 -0.2941556215 0.261686305 0.261686205 443 0
+-0.2919400221 -1.655024767 0.3194234863 0.3194233863 3362 0
+-1.597798043 -0.7768410239 0.2233630403 0.2233624688 3367 0
+-0.59999 -0.8958448116 2.12929564 0.5992200167 3 0
+-1.391964921 -0.5277399199 1.443261338 0.5113506679 1199 0
+-1.303523473 -0.378461522 2.213426408 0.2781175118 1595 0
+-1.630891607 -0.7520024509 0.8072844866 0.2040833284 1701 0
+-1.473634405 -0.8977706025 2.131635292 0.2744295438 2071 0
+-1.738324669 -0.2735094727 2.475494346 0.2402896715 2617 0
+-0.6897737455 -0.7386775455 1.317455977 0.2325528744 2779 0
+-0.3255598021 -1.701021961 1.960099027 0.268103162 3298 0
+-0.2514673246 -0.6440563051 1.28313265 0.2171613747 3740 0
+-1.078967707 -1.293215633 1.458540899 0.3157851267 4199 0
+-0.5685924975 -1.180008414 1.319693758 0.2251180157 4716 0
+-0.7054084502 -1.608126148 1.185407932 0.2439615207 6427 0
+-0.4924743105 -1.69433734 0.8010799675 0.203789093 6813 0
+-1.754045077 -0.4038110588 2.055145099 0.2000719028 7175 0
+-0.5151785117 -0.7012326592 3.043265842 0.3390804537 325 0
+-0.962231283 -0.2756646064 4.013247769 0.5244118502 332 0
+-1.335289698 -0.7016520479 2.911267504 0.4915853067 410 0
+-0.7732274232 -1.395768394 2.982084169 0.4043646491 489 0
+-0.5922428323 -1.505260376 4.111211711 0.3824212717 905 0
+-0.2563610202 -1.18980911 3.72977573 0.2157576834 933 0
+-1.208006186 -1.100419576 4.241440604 0.3659235663 964 0
+-0.2517286553 -1.750007106 3.06863066 0.2319804216 1149 0
+-1.56096933 -0.6988291978 3.65928596 0.2897404173 1382 0
+-1.043726696 -0.9918682395 3.596915809 0.3080068023 1585 0
+-0.5528311154 -1.066418587 3.450936823 0.209530519 1910 0
+-1.204422096 -1.298088689 2.528259748 0.2292177438 2028 0
+-0.5957664579 -0.9651414936 3.859422001 0.2114186961 2463 0
+-1.623541329 -0.6428289417 4.196330098 0.2538282313 2497 0
+-0.9144055647 -1.514733988 3.5896823 0.2306620039 10154 0
+-0.59999 -0.8958448116 4.415486066 0.2987756846 5 0
+-0.3333868097 -1.435713311 4.979280878 0.5260869186 593 0
+-0.3869390595 -0.5216383697 4.812543505 0.2869508185 613 0
+-1.44401847 -0.4371375573 5.05456164 0.4412850013 641 0
+-1.089168328 -1.053773536 5.646952374 0.4845039013 723 0
+-1.661940176 -0.6545762196 5.632804867 0.2137983969 742 0
+-0.4529320276 -0.8754153771 5.438724869 0.2082919711 1018 0
+-1.275445314 -1.134233081 4.89620894 0.2931764493 1346 0
+-0.5016864535 -1.594213683 5.802222137 0.3287108834 1968 0
+-0.3222980916 -0.3781010466 4.346950179 0.2045350093 2728 0
+-0.8200940204 -0.7301650712 5.047344949 0.2480615333 4466 0
+-0.9947366542 -1.476342708 4.636758741 0.2198053871 7855 0
+-1.007227087 -0.6747282642 4.630634254 0.2120903279 9893 0
+-0.59999 -0.8958448116 6.701676493 0.5841147974 7 0
+-1.441516913 -0.3379964095 6.256305524 0.519387269 412 0
+-0.613106955 -0.4673174149 7.368604967 0.2087289542 715 0
+-1.514035726 -0.4503758418 7.547926179 0.420397118 1208 0
+-1.339352941 -1.107345657 6.348412812 0.2621612916 1224 0
+-0.366948236 -1.699717529 6.819606778 0.2611230707 1245 0
+-1.346261372 -1.035025325 7.158457733 0.3018542204 1352 0
+-1.646328535 -0.6262239876 6.926762602 0.2385930301 4118 0
+-1.015101782 -1.450091996 7.129621543 0.2299149358 4312 0
+-0.6069158442 -1.667721307 7.241479643 0.2252767942 7102 0
+-0.5885687968 -1.653947287 6.367507256 0.2444494545 8006 0
+-0.9319880763 -1.537861961 6.107310498 0.2017726662 8658 0
+-0.59999 -0.8958448116 8.98786692 0.4769849779 9 0
+-0.7625178103 -1.119410114 7.899884063 0.6455577237 136 0
+-0.6170254293 -1.597955547 8.687024792 0.2870530314 392 0
+-0.3777876158 -1.625184541 9.256771431 0.3314825939 626 0
+-1.283563758 -1.114231932 8.689245668 0.3002790741 901 0
+-1.383545661 -0.8666779827 9.301241906 0.3674162659 1083 0
+-0.9672470348 -0.3483064734 9.411018985 0.3064264559 1271 0
+-1.11009469 -1.37280456 9.124059878 0.2345242645 1309 0
+-1.515044464 -0.9603767252 8.265835361 0.2062097275 2977 0
+-1.7257283 -0.3719517242 9.32639077 0.2346426418 3505 0
+-0.7210896758 0.2518295903 0.2849396194 0.2849389806 720 0
+-0.5219332188 0.8188427283 0.3168812735 0.316880504 866 0
+-0.6267014414 1.499817426 0.3745129087 0.3745124277 985 0
+-1.491411099 -0.1210109023 0.5186076369 0.503686712 1241 0
+-1.232790525 0.9867784654 0.4209162333 0.4209157974 1307 0
+-1.66516467 0.5763802377 0.7013922437 0.2379019064 3058 0
+-1.665726266 0.5347840931 0.2326665462 0.2326657945 4855 0
+-0.8235390604 0.5538473599 0.6958507279 0.2352122109 5676 0
+-0.59999 -0.0875544347 0.9862004266 0.5034844381 19 0
+-0.8290940609 0.3796825469 2.004712427 0.6402650416 654 0
+-0.7286781976 1.384201973 1.632435946 0.4357145988 919 0
+-1.046654292 1.281334117 2.33857817 0.3455197812 1016 0
+-1.497440158 0.8636693311 2.392143754 0.2713438497 1441 0
+-0.821907421 1.226295754 0.9385256813 0.2820158185 2067 0
+-1.568195617 0.345657341 1.281795065 0.3941607041 2231 0
+-1.703166855 0.06307234071 1.8964408 0.2956655858 2523 0
+-0.6949614877 0.8224667517 1.250988507 0.2441261591 2624 0
+-0.9881824033 0.4824317442 1.174413041 0.2113582231 2808 0
+-1.341543659 1.01089861 1.153635108 0.3202214227 3013 0
+-0.5402968907 1.074403433 2.386953611 0.2036233682 4905 0
+-1.517201372 0.8572589318 1.681972581 0.257359453 4950 0
+-1.66791476 0.5470723175 2.061725538 0.2169914437 8319 0
+-0.59999 -0.0875544347 3.272390853 0.3214433853 21 0
+-1.06773592 0.7885526323 3.229295153 0.6726425664 340 0
+-0.7498313183 -0.2319065387 2.699096425 0.2884388168 378 0
+-1.159913689 0.5047100171 4.146085485 0.2914974852 423 0
+-1.623108353 -0.07537419077 3.436771653 0.3751423701 455 0
+-0.7228701603 0.406662772 3.937367922 0.2026511724 548 0
+-1.006531296 1.476706025 3.783248891 0.2128883792 1071 0
+-0.5540101882 0.217360487 2.793393276 0.2106381725 1093 0
+-0.2568472026 0.5400387049 2.893880808 0.2393893004 1232 0
+-1.634919884 0.291294024 2.554661101 0.3393323939 2608 0
+-1.071349517 -0.06854284388 3.036998382 0.2057666828 3429 0
+-1.721499294 -0.1863956281 4.034140989 0.2403704542 5213 0
+-1.284440242 1.202555599 4.013785762 0.2404753326 7866 0
+-1.562652944 0.8133988067 3.993690482 0.238324038 9123 0
+-1.715822356 0.4051521459 3.804479398 0.2369926342 10127 0
+-0.59999 -0.0875544347 5.55858128 0.6020883771 23 0
+-0.429994219 1.125331669 4.39547428 0.6985268781 171 0
+-0.4467819919 0.0940597591 4.627646307 0.3586898547 173 0
+-0.9710816884 1.035314638 5.55095151 0.5805366054 180 0
+-0.8713823598 0.4529288543 4.932408698 0.2684677247 202 0
+-1.409278882 0.7740637085 4.722812298 0.3921310807 216 0
+-1.196023441 1.327041891 4.847515478 0.2135194914 690 0
+-1.038962219 0.01156647117 4.725190428 0.2471125072 873 0
+-1.545851698 0.2326874759 5.54748723 0.3965756348 1023 0
+-1.71310573 0.2073296687 4.898193139 0.2743935244 1470 0
+-1.675547252 0.2697722169 4.325542314 0.3028739947 2849 0
+-1.788197453 -0.1508390301 4.587825229 0.2054518948 3714 0
+-1.634321016 0.7429409617 5.853087317 0.2047368737 6243 0
+-0.6516530918 0.1749873187 6.617322236 0.4892602242 179 0
+-0.333869133 0.6438938785 6.045180859 0.3158519419 203 0
+-1.313051688 0.5324841555 7.57185568 0.5830863139 283 0
+-0.4765738139 0.3866877254 7.351649296 0.2940704705 331 0
+-0.6239337153 1.258586812 6.651905797 0.5952449583 411 0
+-0.7984373367 0.008884555642 7.278063735 0.2076715628 503 0
+-1.059851448 1.34774691 7.411929271 0.2854411774 757 0
+-1.348373159 1.143794233 7.03411662 0.2318431818 969 0
+-1.144879797 0.3752497363 6.067944784 0.2757177494 995 0
+-1.415548988 0.860185965 6.34201818 0.3435884254 1011 0
+-1.329998712 0.3379535971 6.520892972 0.2150179946 1447 0
+-0.6028869667 0.8973461628 7.3980579 0.2340201177 1503 0
+-1.187229022 -0.1189634243 7.051388862 0.2601804276 2027 0
+-1.718608921 -0.1171455784 6.969971433 0.2774023874 2610 0
+-1.162537052 0.6338522115 6.790601278 0.2189657391 5389 0
+-1.721842631 0.3664166211 6.292142272 0.2396011785 7465 0
+-0.59999 -0.0875544347 7.844771706 0.4004721971 25 0
+-1.347877361 -0.1856271248 8.560581135 0.6394001896 142 0
+-0.2784913614 -0.1326220831 8.611907905 0.4325280602 155 0
+-0.6523492589 0.574830265 8.323010487 0.4181887012 165 0
+-0.6634815616 0.4865137244 9.323490908 0.5862431156 224 0
+-0.5494995971 1.393180508 8.73185158 0.5023675184 419 0
+-0.8484330838 1.209587749 7.975086862 0.3317548962 569 0
+-1.391211443 0.8300100765 8.484497502 0.3800041869 855 0
+-1.561217778 0.5756630105 9.131886928 0.3360311438 921 0
+-1.239284215 1.140788854 9.091792134 0.3155932233 931 0
+-1.798616293 -0.004244658002 7.874401339 0.2013778601 1903 0
+-1.424922186 0.05038510146 9.470127477 0.3034209255 3105 0
+-1.16597074 1.362269804 8.382503778 0.2068826523 3197 0
+-0.4499889302 1.740686291 1.182941232 0.2020895616 2125 0
+-0.6241699454 1.656550505 2.230566593 0.2297595445 8612 0
+-0.5741581667 1.589636065 3.512034091 0.3098515945 361 0
+-0.5418231498 1.571111749 2.865170358 0.3380840017 468 0
+-0.4132849259 1.647574726 5.247999441 0.301380782 265 0
+-0.4180482459 1.650054028 5.847168175 0.2978110721 364 0
+-0.5603665521 1.620699984 7.45187031 0.2851582334 1546 0
+-0.4681321808 1.723034149 7.976974566 0.2061557032 8173 0
+-0.1438712725 -0.4439602344 0.3538210545 0.3538202255 380 0
+1.078806963 -1.001062946 0.7105549032 0.5282821933 462 0
+0.3703522055 -0.7209550372 0.5268907019 0.2553628144 632 0
+0.4363837776 -1.174080604 0.2697885612 0.2697884612 768 0
+0.6337751971 -1.6171953 0.4902503093 0.2630497891 1174 0
+-0.1333782651 -1.056090632 0.2648332113 0.2648331113 1239 0
+0.8107438771 -0.448916993 0.2431835637 0.243182492 1628 0
+0.9785665627 -1.510726376 0.2000311277 0.2000304656 1883 0
+0.10001 -1.29999 0.9862004266 0.5316134635 53 0
+0.80001 -0.8958448116 2.12929564 0.6451163013 54 0
+0.1213658936 -0.4601968287 0.9608583899 0.3088324553 128 0
+0.07189571618 -0.8904500628 1.634147158 0.2354240765 156 0
+0.4103297352 -0.7084082128 1.362564618 0.2351434553 310 0
+0.2531620879 -1.638449309 1.7770077 0.3421063054 1150 0
+0.7625842688 -1.622963275 0.9420689638 0.2068059452 1627 0
+0.8426328648 -0.6668818594 1.315097105 0.2017358316 2035 0
+-0.2135430558 -1.765732968 1.487997364 0.2214011395 3797 0
+0.7616143178 -1.509315899 1.425212541 0.2895247134 5433 0
+1.230656097 -1.247364511 1.430610207 0.2477346273 9654 0
+0.10001 -1.29999 3.272390853 0.3744464676 55 0
+0.03642993256 -0.4894162199 3.699502533 0.5439736198 200 0
+0.3210798438 -1.429767487 4.144569056 0.5346227239 206 0
+0.5530655262 -0.7525604676 3.05460367 0.323235324 360 0
+0.06562444005 -1.571940019 2.519607916 0.4266897162 556 0
+1.337301207 -0.7602076973 3.087428071 0.461723823 563 0
+-0.2454589772 -1.127440913 2.84150454 0.204158648 714 0
+0.8084565411 -0.697000857 3.580743641 0.2642457994 938 0
+1.168465077 -1.102218761 3.953686446 0.3937003372 1105 0
+1.25488126 -0.4971305903 3.745699552 0.251944657 1165 0
+0.8014147781 -1.440022062 3.399412404 0.3519913964 1678 0
+1.058935808 -1.38107863 2.847736178 0.25967677 2470 0
+0.3623594375 -1.762694297 3.490518306 0.2004456367 2535 0
+0.843456055 -0.4448401927 4.000047853 0.2262901901 2788 0
+0.5689220814 -1.283375124 2.884317086 0.2344501061 2840 0
+0.7122142058 -1.622082424 2.604900096 0.2274248249 3363 0
+0.06691639067 -0.9235755207 2.620398179 0.22946247 7983 0
+0.4403525075 -1.736614135 3.090003792 0.2084245144 10229 0
+0.80001 -0.8958448116 4.415486066 0.2320856604 56 0
+0.10001 -1.29999 5.55858128 0.2100115244 57 0
+-0.08102624712 -0.8499714875 5.892071191 0.3786350621 231 0
+1.140998622 -1.021793638 5.014217466 0.4683530269 703 0
+1.423556656 -0.8526767318 5.753124966 0.3406111086 880 0
+0.5160378027 -0.5385411972 4.31239665 0.2358175307 956 0
+0.1136552275 -0.7479063827 4.427135416 0.2320604777 976 0
+0.04652916054 -0.7916275528 4.880381678 0.2282093867 1316 0
+0.4730214003 -0.7656496555 4.716255414 0.2295108167 1405 0
+0.3059329021 -0.8885739176 5.332987268 0.302394555 1801 0
+1.021350355 -1.440153702 4.462330546 0.2344407154 2099 0
+0.8037285946 -1.331819143 5.803742485 0.4444533801 2213 0
+0.06183398199 -0.4450544364 5.25155272 0.2103669192 3131 0
+0.7104821256 -1.583615791 4.825000408 0.2643074737 3229 0
+0.3891501498 -1.197970969 4.88142592 0.2408260776 4461 0
+0.285213327 -1.7744654 4.795437467 0.202758901 5237 0
+0.2537200633 -1.728621024 5.641629384 0.2528569062 8687 0
+0.80001 -0.8958448116 6.701676493 0.4288508686 58 0
+0.07067970869 -0.2671120912 6.373073183 0.3921443291 181 0
+1.399437813 -0.4236755039 7.295158863 0.5378335098 187 0
+0.1826180963 -0.8829702401 6.448954665 0.2383866657 243 0
+0.6515148624 -0.3653138955 7.083738083 0.2415851244 326 0
+0.05868074496 -0.9931926682 7.354449784 0.3483210116 355 0
+0.09348087445 -1.548204175 6.300676291 0.4489754931 553 0
+-0.08019075703 -1.659862973 7.441494867 0.3382001446 623 0
+0.5209866795 -0.6038627794 7.530111362 0.2810916071 670 0
+-0.01107912878 -1.393704141 6.949113598 0.2257636414 1045 0
+0.5468231983 -1.529866426 7.126696074 0.3753429442 1966 0
+0.1570459378 -0.7406922603 6.869991691 0.2067743055 2311 0
+0.7835614666 -1.550031343 6.476581917 0.2631735595 2401 0
+1.049564698 -1.457967076 6.848861653 0.203543259 3128 0
+1.301613114 -1.138807363 6.279193739 0.2705260133 3481 0
+0.9890935669 -0.7649990178 6.095515562 0.2194567215 3660 0
+0.4548600043 -0.68630202 6.125060613 0.2281974669 6123 0
+1.46091811 -0.8930458814 6.687806938 0.2322077189 7610 0
+1.115436089 -1.206597672 7.274629476 0.2952590635 10577 0
+0.10001 -1.29999 7.844771706 0.2315479192 59 0
+0.80001 -0.8958448116 8.98786692 0.3191399771 60 0
+0.2078406252 -1.42660748 8.616945175 0.5583315862 234 0
+0.6091401079 -0.5906291362 8.361144504 0.4036108558 342 0
+-0.04726847768 -0.7112084239 8.293482336 0.2672010861 375 0
+0.02961932123 -0.6849815024 8.774351383 0.2204806393 424 0
+0.241865 -0.8508595528 7.897737462 0.2424207254 607 0
+1.284718447 -0.4273965802 8.148512841 0.323204944 848 0
+-0.03409801095 -0.4404166498 9.209036612 0.2823334236 887 0
+0.9094957921 -0.6276818875 7.828259365 0.2092125871 1031 0
+1.224762626 -0.3927923506 8.955200704 0.3400582315 1063 0
+0.4052255841 -0.5154293374 8.956324597 0.2300096106 1070 0
+1.262880834 -1.057697414 7.905422213 0.3527010709 1669 0
+1.33634604 -0.9703546143 8.597285918 0.3485129823 1813 0
+0.8749604129 -1.154927722 8.317697446 0.2216733815 1880 0
+0.9992305379 -1.421061511 8.835856148 0.2627952104 1988 0
+0.7104037059 -1.448926901 9.416471832 0.3862890861 2200 0
+1.273126556 -1.166488891 9.219983631 0.2732832016 2244 0
+0.04457365124 -1.123608035 9.464357856 0.3563107872 2513 0
+0.1356120288 -0.3379865024 7.933609686 0.2825691682 2605 0
+0.4442829644 -1.662024259 7.82352226 0.2684961963 5280 0
+0.5194568401 -1.205545938 7.94928213 0.2109184676 6655 0
+0.8201004869 -1.567268924 8.138817736 0.23113114 7904 0
+0.004930190305 -1.788701752 7.968843625 0.2112913537 8300 0
+0.1705062046 -1.753634569 9.342172532 0.2380948927 8356 0
+1.194733648 0.7801407518 0.5731122626 0.5731112732 208 0
+-0.05637742388 0.2929949866 0.3891519087 0.3891508014 258 0
+0.8820346146 0.05844271225 0.2698555073 0.26985506 583 0
+0.5099511624 1.001307331 0.2258914227 0.2258905164 834 0
+0.3958858017 -0.1595865813 0.2629901396 0.2629900396 1577 0
+0.4514644968 0.6082704925 0.4019593223 0.2087337173 3338 0
+0.10001 0.3165907537 2.12929564 0.2081502858 20 0
+0.80001 -0.0875544347 0.9862004266 0.4658032171 70 0
+0.10001 1.124881131 0.9862004266 0.6466862073 87 0
+0.06431801562 -0.1903991992 1.685549229 0.4665516828 120 0
+0.1202291202 0.1723031281 1.004354197 0.2621785212 129 0
+1.07225206 0.8925999573 1.739273175 0.6048438487 296 0
+0.435181736 0.3867338424 1.415571252 0.2706799007 327 0
+0.8244394581 0.0004730192177 1.768198799 0.321513065 516 0
+0.4339121945 0.3319079717 1.887478435 0.2044027924 540 0
+0.2458445032 0.7145551163 1.759464242 0.2407662655 542 0
+0.4085167234 0.6437183537 2.217014388 0.2499796093 591 0
+0.1114795307 1.3904918 2.158926714 0.5557968426 598 0
+0.9124345035 1.491851299 0.8786192471 0.2512411908 673 0
+-0.09664103818 0.4733758149 1.541294671 0.2315271939 765 0
+0.9344462226 0.08289812898 2.479656637 0.4031021504 1111 0
+1.45559638 0.1696656514 1.043997601 0.2408056179 1347 0
+1.265537684 0.09466430582 1.461440163 0.2239585252 2468 0
+-0.2449194493 0.7842917153 2.498811364 0.2252409728 3294 0
+1.356528621 -0.1249996274 1.996837594 0.271054899 4883 0
+0.80001 -0.0875544347 3.272390853 0.4188187983 72 0
+0.10001 1.124881131 3.272390853 0.5433349542 89 0
+0.06235738818 -0.1699705525 2.678264533 0.5263742698 186 0
+1.159701014 0.8194312773 3.486070728 0.5800090335 246 0
+-0.09585770481 0.2925781906 3.365163047 0.3167225147 255 0
+0.3413657231 0.6050561928 3.940718557 0.3370808954 373 0
+0.5746151231 0.01803889902 4.181544919 0.3389297424 465 0
+0.7391165281 0.9294578175 2.648211399 0.3639204255 612 0
+0.1833207628 0.7653884648 2.607602129 0.2170059654 648 0
+1.482017789 0.6663747454 2.600158919 0.3750584758 815 0
+-0.1571112191 0.2604304444 3.946743637 0.2689570036 843 0
+1.379045212 0.1620015999 2.991360484 0.2714971342 1327 0
+1.137739174 1.339641356 2.849449128 0.2424186307 1389 0
+0.5423438822 0.4017473035 2.89469048 0.2508556924 2502 0
+1.02060628 0.1107484578 3.845925654 0.2268814377 2940 0
+0.4288987419 0.4337809485 3.357522944 0.2267518728 3376 0
+0.10001 0.3165907537 4.415486066 0.2686157884 22 0
+0.80001 -0.0875544347 5.55858128 0.6654048977 74 0
+0.10001 1.124881131 5.55858128 0.4943200666 91 0
+0.05444084447 0.4248567143 5.047115057 0.3738428634 140 0
+0.9034783182 0.958632999 4.714661203 0.6827103294 162 0
+0.0609824741 0.4082221058 5.649877859 0.2291840634 169 0
+1.054539476 1.024284102 5.916027022 0.5298931425 245 0
+0.1976574703 -0.2324624533 4.728105852 0.3707006081 318 0
+1.415920492 -0.1661456018 4.485498175 0.5743643254 655 0
+0.709686555 0.08872748242 4.707369059 0.208548188 796 0
+0.10001 0.3165907537 6.701676493 0.2783395446 24 0
+0.7155898061 0.4362497487 7.178581855 0.5095024863 145 0
+-0.01776849151 -0.1986009552 7.219173651 0.4613200305 146 0
+1.081764934 1.158196805 7.119238288 0.3021706458 159 0
+0.2861486099 0.1704094817 7.736357028 0.2429617399 195 0
+0.7658446759 -0.1422804636 6.560496414 0.3385844774 210 0
+1.263955839 0.2568220842 7.684062582 0.2575765215 291 0
+1.413784261 0.7294122267 7.215758248 0.2486542704 496 0
+-0.08962808235 0.6989929884 7.062992232 0.2808938279 877 0
+0.3300848619 0.5816102294 6.172182075 0.3569036968 1021 0
+0.3167337744 1.063267973 6.712999183 0.3674268362 1048 0
+0.5870441075 1.262308177 7.179022322 0.2069087722 1433 0
+0.8697863414 1.446749394 6.620329026 0.31192043 1868 0
+0.8824336776 0.3895430809 6.335905858 0.2503722934 2793 0
+0.7870782199 0.7775671444 6.554736053 0.2051943723 3369 0
+1.116474863 0.9977749466 6.643702839 0.2008937784 3665 0
+0.10001 0.3165907537 8.98786692 0.2648952234 26 0
+0.80001 -0.0875544347 7.844771706 0.3421467015 76 0
+0.10001 1.124881131 7.844771706 0.629338163 93 0
+-0.08522707709 0.2754142033 8.073945927 0.2697869994 168 0
+0.6226050102 0.4494659865 7.909142149 0.2270693411 239 0
+1.188641791 0.9606085537 7.859807521 0.4717197943 241 0
+0.3735503736 0.05344557321 8.294268913 0.2854507236 266 0
+0.08201052468 0.3980603829 8.513773863 0.2164827112 277 0
+0.8103140451 1.104186503 8.884939559 0.630387606 399 0
+0.9721466084 0.05161826295 8.496880155 0.3465080324 428 0
+-0.04348651901 0.8094945952 8.820203663 0.2751559645 429 0
+0.7141980671 0.1095336059 9.220246258 0.4236530092 524 0
+0.2289277941 0.6245156682 9.48070281 0.3303557221 579 0
+0.06181948288 0.04810548127 9.449608266 0.2705931716 585 0
+-0.07124379334 1.113678528 9.28068374 0.2774187053 599 0
+0.6357162059 0.4750680449 8.349353428 0.214079692 860 0
+0.7160913465 1.507726363 0.3308605516 0.3308601362 367 0
+-0.01500591465 1.718298326 0.2816359186 0.2816358186 2314 0
+0.6220261447 1.6166776 1.553558452 0.2677852769 801 0
+-0.1843449775 1.757589191 1.526816219 0.2327690423 990 0
+0.8958901449 1.501259408 2.315617621 0.2517432124 1939 0
+0.6538233279 1.508065617 3.868884236 0.3562999137 461 0
+0.06758580007 1.727219894 3.820135215 0.271457506 494 0
+0.6463125955 1.570041722 2.805268904 0.3021324301 1091 0
+0.9479456114 1.523843671 3.210783344 0.205368903 1834 0
+0.715438098 1.56899683 5.429103785 0.2755854601 849 0
+0.2854086688 1.731445341 4.288598899 0.2451877154 1019 0
+0.1356036544 1.691322711 4.998228072 0.3032498116 1806 0
+0.8388736188 1.510728932 7.501845527 0.2719917396 274 0
+0.1108757067 1.650520822 6.213804981 0.3457591432 1417 0
+-0.07511631205 1.713605533 7.167800827 0.2847487861 1556 0
+0.3673158542 1.693410792 6.76890005 0.2672095157 7565 0
+0.8333120053 1.554603561 8.008049041 0.2361394654 485 0
+0.5254077685 1.691972328 8.327509035 0.2283273335 1345 0
+0.1632715691 1.712207696 8.683699068 0.2800250971 1496 0
+0.1553543133 1.669735333 9.285228225 0.3230527721 2208 0
+-0.1371321866 1.785312133 8.304253623 0.2094281869 3306 0
+1.595951069 -0.7978022408 0.2157506068 0.2157498533 7284 0
+1.54573283 -0.4230991496 1.262676413 0.3974064894 544 0
+1.629483167 -0.5824720474 1.904864061 0.2695406902 5600 0
+1.611091297 -0.784383753 3.698271599 0.2081083421 3282 0
+1.629294224 -0.4871919757 5.269659621 0.2994243323 753 0
+1.690927007 -0.291558122 5.815969339 0.2841207953 1296 0
+1.507637389 -0.9511879385 4.439045116 0.2173813228 4382 0
+1.604969024 -0.3915529166 6.434141096 0.3479578633 1746 0
+1.76339995 -0.2643616751 9.014960285 0.2168935749 3181 0
+1.584582912 -0.8054500625 9.084311364 0.2224586747 5062 0
+1.538948487 -0.1765741587 0.4509535044 0.4509534044 292 0
+1.754162235 0.3892541502 0.2031685311 0.2031682611 978 0
+1.50001 0.3165907537 2.12929564 0.2117837102 71 0
+1.658883082 0.5757522913 1.213839279 0.2440424982 1900 0
+1.71884326 0.1581769803 1.439348714 0.2343071607 3324 0
+1.614738608 0.6022445828 4.178575816 0.2766076383 862 0
+1.62152421 -0.01642397375 3.567316482 0.3783925154 1288 0
+1.733435841 0.4667580438 3.083070134 0.2048216753 2006 0
+1.629879132 -0.2127847761 2.554630922 0.3562887113 2867 0
+1.562505938 0.5502968584 5.386889759 0.3434216472 303 0
+1.699371535 0.5489236359 4.659053525 0.2141719312 1000 0
+1.766304934 0.01061669268 5.40231513 0.233662869 4189 0
+1.50001 0.3165907537 6.701676493 0.4162784934 75 0
+1.676925026 0.5205578951 7.576285862 0.2441359784 601 0
+1.641922879 0.4499713982 6.014944822 0.2975348899 750 0
+1.513601701 0.9274050029 6.507256699 0.2248745107 6377 0
+1.50001 0.3165907537 8.98786692 0.4215529091 77 0
+1.684064499 0.08847007613 8.001547325 0.2952617333 890 0
+1.545624233 0.7825507661 8.482219533 0.267561402 1028 0
+1.701980826 -0.1786021796 8.520519605 0.288673552 2276 0
+EndParticles
+BeginConnect
+0
+EndConnect

=== modified file 'scripts/test/regular-sphere-pack.py'
--- scripts/test/regular-sphere-pack.py	2009-11-12 20:40:12 +0000
+++ scripts/test/regular-sphere-pack.py	2009-11-20 14:24:50 +0000
@@ -50,9 +50,14 @@
 o1,o_angl = q1.ToAxisAngle()
 O.bodies.append(utils.facetBox((-12,-12,-6+0.9),(1,0.7,0.9),(o1[0],o1[1],o1[2],o_angl),**kwBoxes))
 
+
+"""Import regular-sphere-pack.mesh into the YADE simulation"""
 kwMeshes={'frictionAngle':0.5,'color':[1,1,0],'wire':True,'dynamic':False}
 O.bodies.append(utils.import_mesh_geometry('regular-sphere-pack.mesh',**kwMeshes))#generates facets from the mesh file
 
+"""Import regular-sphere-pack-LSMGegGeo.geo into the YADE simulation"""
+O.bodies.append(utils.import_LSMGenGeo_geometry('cyl.geo',moveTo=[-7.0,-7.0,-5.9],color=(0,0,1),**kw))
+
 try:
 	from yade import qt
 	qt.Controller()


Follow ups