------------------------------------------------------------ revno: 3899 committer: Klaus Thoeni <[email protected]> timestamp: Fri 2016-06-10 22:09:20 +1000 message: correct some typos modified: examples/cylinders/bendingbeams.py examples/cylinders/cylinder-cylinder.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 'examples/cylinders/bendingbeams.py' --- examples/cylinders/bendingbeams.py 2016-06-10 11:12:01 +0000 +++ examples/cylinders/bendingbeams.py 2016-06-10 12:09:20 +0000 @@ -3,9 +3,9 @@ from yade.gridpfacet import * -#### Parameters #### -L=10. # length of the beam -n=12 # number of nodes used to generate the beam +#### Parameter #### +L=10. # length of the beam +n=12 # number of nodes used to generate the beam r=L/50. # radius of the beam element #### Engines #### @@ -20,7 +20,7 @@ NewtonIntegrator(gravity=(0,0,-10),damping=0.5,label='newton') ] -#### Creat materials and set different properties #### +#### Create materials and set different properties #### O.materials.append(CohFrictMat(young=1e6,poisson=0.3,density=1e1,frictionAngle=10,normalCohesion=1e7,shearCohesion=1e7,momentRotationLaw=False,label='mat1')) O.materials.append(CohFrictMat(young=1e6,poisson=0.3,density=1e1,frictionAngle=10,normalCohesion=1e7,shearCohesion=1e7,momentRotationLaw=True,label='mat2')) O.materials.append(CohFrictMat(young=3e6,poisson=0.3,density=1e1,frictionAngle=10,normalCohesion=1e7,shearCohesion=1e7,momentRotationLaw=True,label='mat3')) @@ -32,10 +32,10 @@ vertices3=[] vertices4=[] for i in range(0,n): - vertices1.append( ([i*L/n,0,0]) ) - vertices2.append( ([i*L/n,1,0]) ) - vertices3.append( ([i*L/n,2,0]) ) - vertices4.append( ([i*L/n,3,0]) ) + vertices1.append( [i*L/n,0,0] ) + vertices2.append( [i*L/n,1,0] ) + vertices3.append( [i*L/n,2,0] ) + vertices4.append( [i*L/n,3,0] ) #### Create cylinder connections #### nodesIds=[] === modified file 'examples/cylinders/cylinder-cylinder.py' --- examples/cylinders/cylinder-cylinder.py 2016-06-10 11:12:01 +0000 +++ examples/cylinders/cylinder-cylinder.py 2016-06-10 12:09:20 +0000 @@ -3,7 +3,7 @@ from yade.gridpfacet import * -#### Parameters #### +#### Parameter #### L=1. # length of the cylinder element r=0.1 # radius of the cylinder element phi=30. # friction angle @@ -13,7 +13,6 @@ O.engines=[ ForceResetter(), InsertionSortCollider([ - #Bo1_Sphere_Aabb(), Bo1_GridConnection_Aabb(), ]), InteractionLoop([ @@ -25,7 +24,7 @@ Ip2_FrictMat_FrictMat_FrictPhys() # physics for external interactions, i.e., cylinder-cylinder interaction ], [ - Law2_ScGeom6D_CohFrictPhys_CohesionMoment(), # contact law for "internal" cylider forces + Law2_ScGeom6D_CohFrictPhys_CohesionMoment(), # contact law for "internal" cylinder forces Law2_GridCoGridCoGeom_FrictPhys_CundallStrack() # contact law for cylinder-cylinder interaction ] ),
_______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

