← Back to team overview

yade-users team mailing list archive

Re: [Question #695966]: VTKExporter -> exportFacets command

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
E.g. this way. Basically the code you would write in python to get the values, just it is a string and uses 'b' as the current body:
###
vtk.exportFacets(...,what=[
   ('coordnumber','len(b.intrs())'),
   ('forceLen','O.forces.f(b.id).norm()'),
   ('forceVec','O.forces.f(b.id)'),
   ('stress','O.forces.f(b.id).norm()/b.shape.area'),
   ...
])
###

For further help, please provide a MWE [3] with a few facets, a few spheres (may be everything fixed = not moving for the sake of simplicity).
With information what the quantities are (lenForce = force magnitude? stress = forceMagnitude/area? stressLen = ???)

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.