Davide-sd / pygasflow

Python functions for Quasi-1D Gasdynamics
https://pygasflow.readthedocs.io
GNU General Public License v3.0
22 stars 8 forks source link

TOP nozzle has a bug of some sort in the library files #6

Open Raphael174 opened 5 months ago

Raphael174 commented 5 months ago

_The TOP nozzle does not seem to work any more because of some missing path within the library downlodad.

The code I ran is the same example found in this link _ , Ri = 0.4 Re = 1.2 Rt = 0.2 geom = CD_TOP_Nozzle(Ri, Re, Rt, 0.40, 30, 0.7) x, y = geom.build_geometry(1000)

and the error I am getting is the following :

File c:\HEAT-local-to-remote\HEAT.venv\lib\site-packages\pygasflow\nozzles\rao_parabola_angles.py:66, in Rao_Parabola_Angles.init(self) 64 # path of the folder containing the data of the plot 65 data_dir = os.path.join(current_dir, "plot-4-16-data") ---> 66 data_files = [os.path.join(data_dir, f) for f in os.listdir(data_dir) 67 if os.path.isfile(os.path.join(data_dir, f))] 69 # substitute "," with "." for decimal separator 70 func = lambda s: float(s.replace(b",", b"."))

FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\HEAT-local-to-remote\HEAT\.venv\Lib\site-packages\pygasflow\nozzles\plot-4-16-data'

Davide-sd commented 3 weeks ago

Hello,

sorry for the very late reply. Did you solve the problem? I just installed the library with pip and ran the example you linked. No problem for me.

How did you installed the package?