Replies: 1 comment
-
It is very likely that the order of nodal values reported and the nodal coordinates reported are different. Is there any way to trace back the order of nodal values, i.e. the nodal id's for each output type? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have been using the PyDPF to extract data from rst files and then sometimes write new data in rst files to export to vtk files later. I will share parts of my code below.
I have noticed that what is represented in vtk files are very meaningful where what is extracted from the rst files are full of zero values. Although I am updating the rst file with these full of zero arrays, the final vtk is always a good one. I am quite perplexed here. Let me try to detail my case:
The peice of code I am struggling with:
I am using the readFromDPF function to create dictionaries with nodal values and nodal coordinates from an rst file. The nodal values normally go under some process and they are updated by out internal tool. Then I want to update the rst file with these new values. I use writeWithDPF function. Updated rst file cannot really be saved so I export rst file with new results to vtk before releasing it.
When I open the vtk file in Paraview, the results are meaningful. When I update the rst with some other values and export again to vtk, that new vtk has new values, so there is an update process.
However, when I plot the values read in readFromDPF function, these values make no sense. When I try to plot them, I see that there are a lot of 0 values, which are not in the vtk files.
Could you please let me know if there is any known bug in PyDPF which may cause this problem. How on earth is it possible to write meaningful values to vtk by passing arrays full of wrong zero values?
Here is the list of Python package versions that we are using:
pyvista==0.39.0
ansys-dpf-core==0.8.1
And if you are curious to see the difference in plots, the image compareplots shows Paraview result and node cloud in our internal tool . Sorry for the low quality of the png but I believe it will give the idea.
Beta Was this translation helpful? Give feedback.
All reactions