Importing Plane Definition file overwrites airfoil polars.

Questions, suggestions, feature requests, bug reports, feedbackCategory: QuestionsImporting Plane Definition file overwrites airfoil polars.
João HackbartJoão Hackbart asked 8 months ago

I’m currently running into an issue with scripting. I have all prerequisite files available as per the video instruction. The script used to work correctly previously.
For some reason now, during the scripting routine, whenever the plane definition file is imported, it also imports airfoil geometries that overwrite the current airfoils in the project, eliminating the polar data that had already been associated to them.
Which prevents the analysis from running due to the airfoils now not having any polar info.

3 Answers
João HackbartJoão Hackbart answered 8 months ago

flow5 v7.23
17.09.2023 14:27:03
Pre-loaded the project file: D:\.Engenharia Aeronautica\Cadeiras\TCC AERO\Computacional\flow5\Testbed\scripts\foils.xfl
Reading foil .dat files
added foil: NACA 2310
added foil: NACA 0012
Adding foils and their polars from the .plr files
Available foils:
NACA 0012
NACA 2310
NACA 2412
Adding XFoil polars from the .txt files
 
—–Starting plane analyses—–
Adding planes from the .xml files
added the plane: plane from file plane.xml

Adding the plane analyses from the xml files
the analysis T1-10_0 m_s-VLM2_xml has been added for plane
Making the analysis pairs (plane, analysis)
added analysis for (plane, T1-10_0 m_s-VLM2_xml)
Made 1 valid analysis pairs (plane, polar) to run
Launching plane analysis: plane / T1-10_0 m_s-VLM2_xml

João HackbartJoão Hackbart replied 8 months ago

This is an incomplete logfile, please ignore.

João HackbartJoão Hackbart answered 8 months ago

CORRECT logfile
 

flow5 v7.23
17.09.2023 14:19:06
Could not open the project file: D:\.Engenharia Aeronautica\Cadeiras\TCC AERO\Computacional\flow5\Testbed\scripts\foils.xfl
Reading foil .dat files
added foil: NACA 2310
added foil: NACA 0012
Adding foils and their polars from the .plr files
Available foils:
NACA 0012
NACA 2310
Adding XFoil polars from the .txt files
added the XFoil polar: NACA 0012 / T1_Re0.00_M0.05_N9.0
added the XFoil polar: NACA 0012 / T1_Re0.01_M0.05_N9.0
added the XFoil polar: NACA 0012 / T1_Re0.01_M0.05_N9.0
added the XFoil polar: NACA 0012 / T1_Re0.01_M0.05_N9.0
added the XFoil polar: NACA 0012 / T1_Re0.03_M0.05_N9.0
added the XFoil polar: NACA 0012 / T1_Re0.05_M0.05_N9.0
added the XFoil polar: NACA 0012 / T1_Re0.10_M0.05_N9.0
added the XFoil polar: NACA 0012 / T1_Re0.20_M0.05_N9.0
added the XFoil polar: NACA 0012 / T1_Re0.30_M0.05_N9.0
added the XFoil polar: NACA 0012 / T1_Re0.40_M0.05_N9.0
added the XFoil polar: NACA 0012 / T1_Re0.80_M0.05_N9.0
added the XFoil polar: NACA 0012 / T1_Re1.60_M0.05_N9.0
added the XFoil polar: NACA 0012 / T1_Re3.20_M0.05_N9.0
added the XFoil polar: NACA 0012 / T1_Re6.40_M0.05_N9.0
added the XFoil polar: NACA 2310 / T1_Re0.00_M0.05_N9.0
added the XFoil polar: NACA 2310 / T1_Re0.01_M0.05_N9.0
added the XFoil polar: NACA 2310 / T1_Re0.01_M0.05_N9.0
added the XFoil polar: NACA 2310 / T1_Re0.01_M0.05_N9.0
added the XFoil polar: NACA 2310 / T1_Re0.03_M0.05_N9.0
added the XFoil polar: NACA 2310 / T1_Re0.05_M0.05_N9.0
added the XFoil polar: NACA 2310 / T1_Re0.10_M0.05_N9.0
added the XFoil polar: NACA 2310 / T1_Re0.20_M0.05_N9.0
added the XFoil polar: NACA 2310 / T1_Re0.30_M0.05_N9.0
added the XFoil polar: NACA 2310 / T1_Re0.40_M0.05_N9.0
added the XFoil polar: NACA 2310 / T1_Re0.80_M0.05_N9.0
added the XFoil polar: NACA 2310 / T1_Re1.60_M0.05_N9.0
added the XFoil polar: NACA 2310 / T1_Re3.20_M0.05_N9.0
added the XFoil polar: NACA 2310 / T1_Re6.40_M0.05_N9.0
 
—–Starting plane analyses—–
Adding planes from the .xml files
added the plane: plane from file plane.xml

Adding the plane analyses from the xml files
the analysis T1-10_0 m_s-VLM2_xml has been added for plane
Making the analysis pairs (plane, analysis)
added analysis for (plane, T1-10_0 m_s-VLM2_xml)
Made 1 valid analysis pairs (plane, polar) to run
Launching plane analysis: plane / T1-10_0 m_s-VLM2_xml
Panel analysis completed … Errors encountered
_____Plane analyses completed_____
 
—–Starting boat analyses—–
No xml Boat files to load
Making the analysis pairs (boat, analysis)
Made 0 valid analysis pairs (boat, polar) to run
_____ Boat analyses completed_____

Script done.

João HackbartJoão Hackbart replied 8 months ago

It shows that the foils.xfl file project was not loaded.
It was one of my tests. I have run with the project loaded to no effect.

João HackbartJoão Hackbart answered 8 months ago

For future reference, it seems that the issue is that the project that must be pre-loaded has to be the exact same project from where the plane/analysis where extracted.

André Deperroistechwinder Staff replied 8 months ago

Hello,
The log file says “Could not open the project file:…” which suggests that the path is wrong or that the file does not exist.
André

João HackbartJoão Hackbart replied 7 months ago

Thank you for the answer and sorry for the confusion with the log files.

This was an oversight on this particular run. I have made other runs that had the project loaded but still did not work.

From what I have seen it seems to me that the project file to be loaded must be the same project file as where the analysis and planes were extracted from.

Could you confirm which project is supposed to be loaded?

André Deperroistechwinder Staff replied 7 months ago

As far as I can tell everything seems to work fine. Note that any airfoil and its polars that are read from the .xfl file will be overwritten if a foil of the same name is loaded at the next stage of the script from the .dat or .plr files.

João HackbartJoão Hackbart replied 7 months ago

So just to be clear. If I load the geometries e polares from the project file, there’s no need to also load them separately?

André Deperroistechwinder Staff replied 7 months ago

It works like in the GUI. The script loads the various files in sequence, and overwrites any existing object with the same name.

João HackbartJoão Hackbart replied 7 months ago

Alright, that might be the source of my issue. I had 3 separate origins for the same files.

Thank you for the help!