Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call Command's not working #16

Open
florencemnrg opened this issue Sep 3, 2019 · 0 comments
Open

Call Command's not working #16

florencemnrg opened this issue Sep 3, 2019 · 0 comments

Comments

@florencemnrg
Copy link

Hi,
I am trying to get the "find_pressure_coefficients" for some airfoil that I store in a folder. My code is depicted as follows.

for filename in os.listdir(directory):
if filename.endswith(".txt"):
print(filename)
filepath = 'D:\Python\cnn_inverse\Airfoil\' + filename

    # call(filename, alfas=0, output='Cp', Reynolds=300000, iteration=20)
    find_pressure_coefficients(airfoil=filename, Reynolds=3e5, alpha=0.)

But I get an error like this.

Traceback (most recent call last):
File "D:/Python/cnn_inverse/dataset_gen.py", line 38, in
find_pressure_coefficients(airfoil=filename, Reynolds=3e5, alpha=0.)
File "D:\Python\cnn_inverse\venv\lib\site-packages\aeropy\xfoil_module.py", line 980, in find_pressure_coefficients
Data = output_reader(filename, output='Cp', delete=delete)
File "D:\Python\cnn_inverse\venv\lib\site-packages\aeropy\xfoil_module.py", line 667, in output_reader
with open(filename, "r") as myfile:
FileNotFoundError: [Errno 2] No such file or directory: 'Cp_NACA63(1)-212.txt_0000'

I think the "call" command failed to generate the file for storing the cp value. I have tried to find part of the "call" code that generate that file, but I don't know which one. Is it "file_name" function? I this "file_name" function only yield the name not the file. Can you help me to overcome this issue? Thank in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant