← Back to team overview

yade-users team mailing list archive

Re: [Question #152385]: Can not run the old code in the new version even if changed something following the instruction

 

Question #152385 on Yade changed:
https://answers.launchpad.net/yade/+question/152385

    Status: Answered => Open

Liqing Jiao is still having a problem:
Dear All,

Thanks for Anton's suggestion. I simplified the question as follows:
My phthon file is
from yade import pack,plot
import itertools

O.materials.append(CohFrictMat(young=150e10,poisson=.2,frictionAngle=0,density=7800,isCohesive=True,isBroken=True,normalCohesion=40e3,shearCohesion=40e3,label='frictionless'))
sphereRadius=1e-3,
concreteId=O.materials.append(CohFrictMat(young=2.514e6,poisson=.5,frictionAngle=0.5,density=1130,isCohesive=True,isBroken=True,))
spheres=pack.regularHexa(pack.inAlignedBox((-.25*0.1,-.05*0.1,-.25*0.1),(.25*0.1,.05*0.1,0.25*0.1)),radius=1e-3,gap=0.0,material=concreteId)
O.bodies.append(spheres)
## create walls around the packing
walls=utils.aabbWalls(thickness=.0001,material='frictionless')
wallIds=O.bodies.append(walls)
triax=ThreeDTriaxialEngine(
    wall_bottom_id=wallIds[2],
    wall_top_id=wallIds[3],
    wall_left_id=wallIds[0],
    wall_right_id=wallIds[1],
    wall_back_id=wallIds[4],
    wall_front_id=wallIds[5],   
    internalCompaction=False,   
        strainRate1=3.3e-4,       
        stressControl_1=False,
        stressControl_2=False,
        stressControl_3=False,
    label='strainer',
)
O.engines=[
    ForceResetter(),
    #BoundDispatcher([Bo1_Sphere_Aabb(),Bo1_Box_Aabb()]),
    InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Box_Aabb()]),
    #InsertionSortCollider(nBins=5,binCoeff=5,sweepLength=.05*1e-3),
    InteractionLoop(
        [Ig2_Sphere_Sphere_ScGeom(),Ig2_Box_Sphere_ScGeom()],
        [Ip2_2xCohFrictMat_CohFrictPhys(setCohesionNow=False,setCohesionOnNewContacts=True)],
        [Law2_ScGeom_CohFrictPhys_CohesionMoment()]
    ),
    GlobalStiffnessTimeStepper(),
    triax,   
    NewtonIntegrator(damping=.4),
   
]
O.run()

It is not complicated. But when I run it in the 0.60.2 version, the error appear as follow:
Welcome to Yade 0.60
TCP python prompt on localhost:9000, auth cookie `ksudys'
XMLRPC info provider on http://localhost:21000
Running script 16-09-re-3d.py
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view, F10 both, F9 generator, F8 plot. ]]
Yade [1]: Segmentation fault
No other information come out. If you know why it can not run well, could you tell me how to modify it? Thank you!

Cheers
Liqing



At 2011-04-11,"Anton Gladky" <question152385@xxxxxxxxxxxxxxxxxxxxx> wrote:

>Question #152385 on Yade changed:
>https://answers.launchpad.net/yade/+question/152385
>
>    Status: Open => Answered
>
>Anton Gladky proposed the following answer:
>Hi,
>
>please, file a bug, using bugtracker [1] and attach the crashing script (better simplify it, as you can).
>It would be also good, if you test your script with the latest trunk version.
>
>[1] https://bugs.launchpad.net/yade 
>[2] https://www.yade-dem.org/source/yade_latest_trunk.tgz
>
>A.
>
>-- 
>You received this question notification because you are a member of
>yade-users, which is an answer contact for Yade.
>
>_______________________________________________
>Mailing list: https://launchpad.net/~yade-users
>Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
>Unsubscribe : https://launchpad.net/~yade-users
>More help   : https://help.launchpad.net/ListHelp

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