yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #13713
Re: [Question #404172]: 'module' object has no attribute 'vtkExporter'
Question #404172 on Yade changed:
https://answers.launchpad.net/yade/+question/404172
Status: Open => Answered
Jan Stránský proposed the following answer:
Hi Weimin,
it should be either
vtkExporter = export.VTKExporter(...)
vtkExporter.export...
or
export.VTKExporter(...).export...
anyway it is VTKExporter (with capital VTK) and it has to be initialized
(called as VTKExporter(fileName) ) to work.
cheers
Jan
2016-11-17 17:32 GMT+01:00 Weimin Song <question404172@xxxxxxxxxxxxxxxxxxxxx
>:
> New question #404172 on Yade:
> https://answers.launchpad.net/yade/+question/404172
>
> Dear all,
>
> I want to do one compaction test of some polyhedron. Error
> occurred : 'module' object has no attribute 'vtkExporter'..... What's
> wrong with this question? Thanks a lot.
>
> Codes:
>
> from yade import pack, plot, export, polyhedra_utils
> .....
>
> O.engines=[
> ForceResetter(),
> InsertionSortCollider([Bo1_Polyhedra_Aabb(),Bo1_Wall_Aabb(),Bo1_Facet_Aabb()],
> verletDist=0.01),
> InteractionLoop(
> [Ig2_Wall_Polyhedra_PolyhedraGeom(), Ig2_Polyhedra_Polyhedra_PolyhedraGeom(),
> Ig2_Facet_Polyhedra_PolyhedraGeom()],
> [Ip2_PolyhedraMat_PolyhedraMat_PolyhedraPhys()], # collision
> "physics"
> [Law2_PolyhedraGeom_PolyhedraPhys_Volumetric()] # contact law --
> apply forces
> ),
> NewtonIntegrator(gravity=(0,0,-200),damping=0.5),
> PyRunner(command='checkUnbalanced()',realPeriod=2,label='checker'),
> PyRunner(command="export.vtkExporter.exportPolyhedra(what=[('n','b.id
> ')])",iterPeriod=50)
> ]
>
>
> --
> 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.