-
Notifications
You must be signed in to change notification settings - Fork 40
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
WEIS/examples/07_te_flaps example does not run properly #192
Comments
Hey Gerrit, I suspect we fixed this in #181. It looks like the modeling options are in the correct format in the You should be able to specify |
Hello, thank you for the response. I switched to the develop branch, re-ran the compile process via the develop branch readme, and the above issue does appear to be resolved, but new issues are popping up. The last error that I got for this example:
|
Try the settings provided in #193. I'm not 100% sure what the best parameters for that are, but maybe @nikhar-abbas or @ptrbortolotti could help us there. |
Hi there Gerrit, The PI controller gains are based on the following structure: Generally speaking, the controller is not very sensitive to changes in Since you seem to be using WEIS, you could also run an optimization using DLC 1.3 and make sure that you have the inputs provided here and enabling the flap related design variables in your analysis_options file with the format shown in the schema. When I last used this a few months ago, this functionality worked to optimize flap controller gains. I know that the xfoil-related stuff slips through the cracks in the WEIS automated testing though, so @dzalkind or @ptrbortolotti might need to verify that they are still working if you are still getting errors. |
Hello, I tried the above fix by adding the flp_kp_norm and flp_tau to the modeling options as specified in #193, and got the following new error:
|
Hi, thank you for the patience while we get this to work. This PR #194 should fix example 07. Please give it another try |
Hi Pietro, I switched to #194, recompiled, and attempted to run the example again. I got the following error:
|
That seems like an XFoil error... Can you please make sure that XFoil runs successfully? |
I'm not very familiar with using/installing xfoil, so I'm not very sure how to check if my particular install is working. I have verified it exists on my Ubuntu machine (xfoil6.97 for UNIX and win32) from the following website: https://web.mit.edu/drela/Public/web/xfoil/ I have also attempted to compile and run WEIS using a Mac, using the suggested xfoil4mac package linked on the above website. I have tried pointing the modeling yaml to both /Applications/Xfoil , /Application/Xfoil.app , and /Applications/Xfoil.app/Contents/MacOS/Xfoil , with all attempts returning some complex block of error messages. I will provide the full block of errors below. I also attempted to build xfoil6.99 from the source and instructions provided from the linked xfoil website, but was unable to properly make the final step, with an apparent error in the source code, which I'm assuming is probably an error with compiling steps on my part. Anyway here is the full error message from the macOS attempt, with the xfoil path in modeling_options.yaml defined as
|
I'd recommend checking that WEIS and XFoil run indipendently first. Please try running any other WEIS example and see if it works. As for Xfoil, you could try calling it as a standalone. If it doesn't run, try following the instructions attached. |
I rebuilt my installation of xfoil on Ubuntu in WSL, and successfully ran example 7, so it appears confirmed that these latest errors are an xfoil issue and not a WEIS issue. I see there are some gfortran compiler flags that are different between the public install documents and the version you sent me, I will re-attempt to build xfoil on my mac later this afternoon and document the results here for anybody running into these same issues. |
from your install_xfoil.txt file, I got down to the command and got this error on entering said command:
This is the exact same error I get when attempting to build xfoil, no matter what directions I use. It appears to be tied to the compiler identifying a source code error. |
Hi Gerrit, I put those install instructions together at some point to document an internal configuration. We cannot bundle xfoil with our models because of a licensing clash. It is possible that your compiler needs some additional flags or that the source code is just using older conventions that your compiler no longer supports. Issues with the xfoil source code are probably best directed at Prof Mark Drela at MIT. Cheers, |
@DeepFriedDerp, the problem is caused by newer versions of GFortran identifying an issue with the source code and treating it as an error, whereas it was previously just a warning. The previous behavior can be restored with the flag |
You rock, Derek! Thank you so much for that tip! |
@ptrbortolotti @gbarter @deslaughter, that worked! I was able to install and test example 07 in WEIS successfully. I'll make sure to write all of this down for my coworkers, thanks to everyone involved! |
Description
Some of the WEIS/examples do not run correctly as configured. The apparent cause is a mismatch between the format of the input yaml files (in my specific case, 07_te_flaps/modeling_options.yaml) and the modeling_schema.yaml (under WEIS/weis/inputs/) and toolbox_schema.yaml (under WEIS/ROSCO/ROSCO_toolbox/inputs/). I have not looked into other examples, so I can't speak to the extent of condition on this issue.
Steps to reproduce issue
Please provide a minimum working example (MWE) if possible
Current behavior
Expected behavior
example runs without errors, or with errors that are dependent on user-specific paths and whatnot.
Code versions
The text was updated successfully, but these errors were encountered: