order of nodes in nodal_time_history of rst.Result
See original GitHub issueHello Alex,
i encountered a strange behavior when reading data from an RST file, that i believe might be a bug. Here’s my description: Within a larger project i use code like the following to read nodal data from an rst file via pyansys:
import pyansys
rstData = pyansys.read_binary('Panel.rst')
# method-A
nodeIDsA, nodalDisplA = rstData.nodal_displacement(rstData.nsets-1)
# method-B
nodeIDsB, nodalDisplBAll = rstData.nodal_time_history(solution_type='NSL')
nodalDisplB = nodalDisplBAll[rstData.nsets-1]
The order of the data in nodalDisplA
is then differing from that in nodalDisplB
, the node numbers in nodeIDsA
and nodeIDsB
however are identical.
I sorted out a way to rearrange the data retrieved by the method nodal_time_history
via a lookup table. By that i could verify that the data is indeed identical, except for the ordering. However i would expect the data to be an exact copy, or to be consistent to the nodal numbers returned by either function (method-A / method-B).
I tried to fiddle out the way the data is read in the corresponding binary reader functions, but had no success.
This popped up when i tried to use the method nodal_time_history
to read velocity and acceleration data which are ordered in the same manner the displacement data is.
If this might be a problem specifically related to my testcase-data, i could provide any files needed for investigation.
Some version info: pyansys: 0.44.2 python: 3.7.7 Ansys: 19.3 (transient structural)
By the way, I highly appreciate your excellent work on this project and especially publishing it licensed open-source. In the moment i use it as a basis for Ansys data-IO in a flow-structure-interaction simulation framework. Best regards, Sebastian
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Great work, i can confirm that the order is now the same and results look good now. Thanks a lot for the very fast fix!
Fixed in #281. Upgrade to
pyansys==0.44.4
and you should be good to go.Thanks again for the example file, and please let me know if you encounter any more issues.