-
Notifications
You must be signed in to change notification settings - Fork 3
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
How to work with GeneratorSE 2.0 examples #10
Comments
the error seems to come from openmdao. please make sure that openmdao is installed correctly. however I will add that the libraries, especially pyfemm, of GeneratorSE 2.0 have always been tricky to compile correctly. I would recommend first trying a clean environment with only generatorSE without WISDEM and its dependencies |
Hello Bortolotti. Thank you for the tips! I ran some examples from the Openmdao homepage (https://openmdao.org/newdocs/versions/latest/examples/examples.html) such as the list mentioned below. Besides, the same procedure for the pyFemm it was done (https://www.femm.info/wiki/pyFEMM). Both carried out sucessfully and, apparently, they seem to work without any problems. Openndao examples: pyFemm examples: After that, I created a new environment with only GenratorSE (carrying out the same tests for Openmdao and pyFemm before) and the same message error appears for me: |
This was indeed an error in the
And then give the example another try. |
Looks like you have to |
Indeed, I was commiting a mistake when searching for the packages, but I identified the (simple) problem two days ago... I had "sImpy" installed instead of "sYmpy" (ok, reading fast they look identical) and now the IPM script is running very well. But the LTS still has the same problem, i.e. "float division by zero". |
It looks like we have some staged improvements still in the |
Hmm. I just tried a fresh conda environment and fresh sync/install with the repository. On the |
And you can confirm that you have FEMM installed in the standard location? |
It is installed in the path suggested by the installer, at the hard disk root ( C:\ ). Is this one the standard location? |
In your folder, |
I gave up on the previous one and tried a new environment, however the same problem persists (i.e. PMSG and IPM fine, but LTS fails). Please, look at my LTS folder before/after running the script above. First, I tested deleting just the folders and then I also tried the "coil_design" files too, but nothing changes. About the "restart capability", I assume it is "restart_flag" flag in the script run_lts.py, right? I swithed it to the false option, but the script still works wrong. |
I was stumped for a while, but may have just found the issue. I pushed an update to the I know this has become frustrating for you, but I think you are the first non-NREL user of this new GeneratorSE code and I really appreciate your patience! |
Hello Garrett, I tried testing the update using my previously installed system and another try with a fresh environment. Both cases show a new error message now. Instead of the traceback reporting the exception starting at the line 425 (get_eff_curve(f"outputs{k}-cost", "cost", k)), as shown in my previous comments, now it is related from line 433 (run_all(f"outputs{k}-{obj}", opt_flag, obj, k)) . I think the the error report are similar (or the same scope) because both they are running on the last condition in the script (if name == "main"). Thank you for your help. And trying to make this script work fine is not frustating but a good chalange! |
Sorry for the long delay. I did come back to this and am perplexed how you can be experiencing the divide by zero error. Seems like something must not be installed or running correctly. Maybe we should schedule a direct meeting where we can share screens? |
Hello Garrett, Yesterday I was out on external work from my office, thus I could not reply you, sorry. But in the last week I tried to debug the LTS example and it is possible to see the critical variables h_s and h_sc always equal to zero. So, in the script "magnetics_design.py" I tried to force the variables for the lower value proposed in the "run_LTS.py" (0.03 m and 0.05 m, respectively). The trick initially works good, but both variables return to zero when the loop start again. Related to the meeting, I think it woud be great, thank you in advance! In the current week I have free slots tomorrow afternoon (until 7:30 PM), and Thursday and Friday all day (from 8:30 AM). My current local time zone is GMT+1 (France). Best regards, |
Can you email me at the link on the home GeneratorSE README for NREL Author Team? I will then send you an invite for Thursday at 0800 for me, 1600 for you if that is okay. |
Well, this is embarrassing. I was finally able to recreate your issue and fix it (on the |
Phew- at least things are working. My apologies again for the long delay and hassle in resolving things. In the outputs folder(s), you should find an Excel file that has a more neatly printed set of outputs. With the optimization flag set to False, indeed all of the designs have the same input. Look at the bottom of the If you want to recover or run the designs associated with the paper where the work was published, I can give you the appropriate restart-file. As for a good interpretation of the results, I am not a electric machine expert, but I can forward any questions to have to our team here at NREL. The model is acknowledged to be lower fidelity, but the resulting designs did go through a good deal of scrutiny and sanity checks. Do you still want to meet in a couple of hours? |
If it is possible for you, I would like to hold the meeting (shorter now) to try to clarify a few points about the Wisdem/GeneratorSE 2.0. |
I received a PC with WISDEM working correctly (both GUI and examples). Thus, I have successfully installed the GeneratorSE 2.0 in the same WISDEM environment, but the examples do not work, as observed in the following issue. Could you please guide me on how to resolve this problem? Thank you!
The text was updated successfully, but these errors were encountered: