← Back to team overview

yade-users team mailing list archive

Re: [Question #293635]: Problem with visualization of boxes in ParaView 4.0.1

 

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

Jan Stránský proposed the following answer:
Thanks for the script, with Polyhedra it work, but not with boxes :-)
cheers
Jan


2016-05-13 16:08 GMT+02:00 Jonathan Pergoli <
question293635@xxxxxxxxxxxxxxxxxxxxx>:

> Question #293635 on Yade changed:
> https://answers.launchpad.net/yade/+question/293635
>
> Jonathan Pergoli posted a new comment:
> ahahahah lol
>
> # Ground
> s=ymport.textExt('Prova3',format='x_y_z_r')
> sphere=O.bodies.append(s)
>
> # Container
>
> c=geom.facetCylinder((0,0,.2),radius=.75,height=.4,segmentsNumber=100,wallMask=6,material="gravel")
> O.bodies.append(c)
>
> # Polyhedra
>
> p=utils.polyhedron((v1,v2,v3,v4,v5,v6,v7,v8),fixed=False,color=(.6,.45,0),material="MLI",wire=False)
> O.bodies.append(p)
>
> O.engines=[
>         ForceResetter(),
>
> InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Facet_Aabb(),Bo1_Polyhedra_Aabb()]),
>         InteractionLoop(
>
> [Ig2_Sphere_Sphere_ScGeom(),Ig2_Facet_Sphere_ScGeom(),Ig2_Sphere_Polyhedra_ScGeom()],
>
> [Ip2_FrictMat_FrictMat_MindlinPhys(en=MatchMaker(matches=((gravel,MLI,.6),(gravel,gravel,.55))),es=MatchMaker(matches=((gravel,MLI,.6),(gravel,gravel,.55))),krot=3)],
>                 [Law2_ScGeom_MindlinPhys_Mindlin(includeMoment=True)]
>         ),
>         NewtonIntegrator(gravity=(0,0,-9.81),damping=.2),
>         PyRunner(command='vtkExporter.exportFacets()',iterPeriod=2500)
>         PyRunner(command='vtkExporter.exportPolyhedra()',iterPeriod=2500),
>         PyRunner(command='vtkExporter.exportSpheres()',iterPeriod=2500)
> ]
>
> O.dt=.5*PWaveTimeStep()
>
> --
> You received this question notification because your team yade-users 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 your team yade-users is
an answer contact for Yade.