← Back to team overview

yade-users team mailing list archive

Re: [Question #706078]: The VTK recorder is not creating any file

 

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

George Mebz posted a new comment:
Based on the code you provided, it seems that you are using Yade, a
discrete element method (DEM) simulation software, to simulate particles
and interactions between them. You are also using the
PotentialBlockVTKRecorder class to record the simulation results in VTK
format for visualization using ParaView.

The issue you are facing is that the VTK file created by
PotentialBlockVTKRecorder is empty. There could be several reasons for
this issue. Here are some suggestions to troubleshoot:

Check the simulation time: Make sure that the simulation has progressed
enough to generate results. PotentialBlockVTKRecorder has a parameter
iterPeriod which specifies the frequency of recording VTK files. If the
simulation has not reached the specified iteration period, the VTK file
may be empty.

Check the file path: Double-check that the file path specified in the
fileName parameter of PotentialBlockVTKRecorder is correct. In the code
you provided, it is set to './vtk/cubePBscaled', which means that the
VTK file will be saved in a folder named vtk in the current directory
with a filename prefix of cubePBscaled. Make sure that this folder
exists and that you have write permissions to it.

Check the particle properties: Make sure that the particles in your
simulation have the necessary properties for visualization.
PotentialBlockVTKRecorder records the particle positions, orientations,
and other properties in the VTK file. If the particles do not have these
properties, the VTK file may be empty. In the code you provided, the
particles are created as Body objects with PotentialBlock shapes. Make
sure that these objects have the necessary properties set, such as
state.pos for position and state.ori for orientation.
<https://allminecraftapk.com/>

Check the ParaView settings: When visualizing the VTK file in ParaView,
make sure that you have the correct settings for displaying the
particles. You may need to adjust the display properties, such as point
size, color, and opacity, in ParaView to make the particles visible.

If you have checked these suggestions and the issue persists, you may
need to further investigate the code and the simulation settings to
identify the root cause of the problem. You can also consult the Yade
documentation or seek help from the Yade community for further
assistance. Additionally, make sure that you have installed ParaView
correctly and that it is compatible with the version of Yade you are
using. It's also a good idea to check for any error messages or warnings
in the console output when running the simulation or recording VTK
files. These messages may provide additional clues to help diagnose the
issue. I hope this helps! Let me know if you have any further questions.

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