idies / pyJHTDB

Python wrapper for the Johns Hopkins turbulence database library
Apache License 2.0
96 stars 47 forks source link

Problems with script errata and library usage #48

Open alanZee opened 1 month ago

alanZee commented 1 month ago

Thanks for providing such a pyJHTDB library to make it easy to get relevant data, but I found some problems in using it:

    1. In the script pyJHTDB-master/pyJHTDB/test.py, line 127, the getFunction parameter is filled in incorrectly, according to the context, it should be the parameter to get the pressure gradient, but it is written to get the velocity gradient
Snipaste_2024-07-23_00-01-24
    2. The getData() method often returns an incorrect array when getting a slightly larger slice of the pressure gradient (even if it gets the same batch of points and the code is the same each time)
Snipaste_2024-07-23_14-54-40 Snipaste_2024-07-23_15-03-30 Snipaste_2024-07-23_15-04-23 Snipaste_2024-07-23_14-54-31 Snipaste_2024-07-23_14-54-11