yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #09906
Re: [Question #252191]: Saving facets to individual .vtu files
Question #252191 on Yade changed:
https://answers.launchpad.net/yade/+question/252191
Klaus Thoeni proposed the following answer:
Hi Colin,
you can use various VTKRecorder [1] at once in your engines, e.g.:
O.engines=[
...
VTKRecorder(iterPeriod=100,initRun=True,nDo=1,mask=,fileName='facets1-',recorders=['materialId','facets']), # static facets only exported ones (nDo=1)
VTKRecorder(iterPeriod=100,initRun=True,maks=,fileName='facets2-',recorders=['materialId','facets']), # dynamic facets
VTKRecorder(iterPeriod=100,initRun=True,fileName='spheres-',recorders=['materialId','spheres','velocity']), # spheres
]
Set different groupMask four your meshes when you import them.
Attention, the groupMask is used as Bitmask for determining interactions
so you need to set the right number. I think default is 1, i.e. 0001. In
order to have contact between you spheres and you facets you have to
define somethink like groupMaks=3 (0011) for static facets and
groupMaks=5 (0101) for dynamic facets. I didn't try but it should work.
An other option is to define different materials (they can have the same
properties) and filter the elements in paraview according to their
materialId (Edit->Find Data). Make shure you export materialId with the
VTKRecorder.
HTH Klaus
[1] https://yade-
dem.org/doc/yade.wrapper.html?highlight=vtkrecorder#yade.wrapper.VTKRecorder
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.