yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #22749
Re: [Question #689919]: Accumulation effect of heat over time steps
Question #689919 on Yade changed:
https://answers.launchpad.net/yade/+question/689919
Status: Answered => Open
Chien-Cheng Hung is still having a problem:
Hi Jan,
Many thanks again!
This time I got some errors as below. The cumulative data can still be
printed out but the exported vtk file cannot be opened in the Paraview.
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
/home/hung/YadeNov2019/bins/yade-2019-11-18.git-b1a2767 in <module>()
/home/hung/YadeNov2019/bins/yade-2019-11-18.git-b1a2767 in vtkExport()
223 vtk = export.VTKExporter("someData")
224 def vtkExport():
--> 225 vtk.exportSpheres(what=dict(current="someCalculator.getCurrent(b)",cumulative="someCalculator.getCumulative(b)"))
226
227 import builtins
/home/hung/YadeNov2019/build/lib/x86_64-linux-gnu/yade-2019-11-18.git-b1a2767/py/yade/export.py in exportSpheres(self, ids, what, comment, numLabel, useRef)
427 # write additional data from 'what' param
428 for name,command in what.items(): # for each name...
--> 429 test = eval(command) # ... eval one example to see what type (float, Vector3, Matrix3) the result is ...
430 # ... and write appropriate header line and loop over all bodies and write appropriate vtk line(s)
431 if isinstance(test,Matrix3):
/home/hung/YadeNov2019/build/lib/x86_64-linux-gnu/yade-2019-11-18.git-
b1a2767/py/yade/export.py in <module>()
/home/hung/YadeNov2019/bins/yade-2019-11-18.git-b1a2767 in getCumulative(self, b)
127 return self.currentData[b.id]
128 def getCumulative(self,b):
--> 129 return self.cumulativeData[b.id]
130
131
KeyError: 1666
---------------------------------------------------------------------------
Do you have any ideas about this?
Cheers,
Chien-Cheng
--
You received this question notification because your team yade-users is
an answer contact for Yade.