Skip to content

Issues when running example 02 #463

@john-zuluaga

Description

@john-zuluaga

Description

I have installed WEIS on the develop branch, and was trying to run the example 02, especifically iea34_driver.py. However, I encountered some errors:

File "D:\OpenFAST\WEIS\examples\02_generate_openfast_model_for_dlcs\iea34_driver.py", line 13, in <module> wt_opt, modeling_options, opt_options = weis_main(fname_wt_input, ~~~~~~~~~^^^^^^^^^^^^^^^^ fname_modeling_options, ^^^^^^^^^^^^^^^^^^^^^^^ fname_analysis_options, ^^^^^^^^^^^^^^^^^^^^^^^ test_run=TEST_RUN ^^^^^^^^^^^^^^^^^ ) ^ File "D:\OpenFAST\WEIS\weis\main.py", line 110, in weis_main wt_opt, modeling_options, opt_options = run_weis(fname_wt_input, ~~~~~~~~^^^^^^^^^^^^^^^^ fname_modeling_options, ^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... prepMPI=False, ^^^^^^^^^^^^^^ maxnP=maxnP) ^^^^^^^^^^^^ File "D:\OpenFAST\WEIS\weis\glue_code\runWEIS.py", line 142, in run_weis wt_opt = yaml2openmdao(wt_opt, modeling_options, wt_init, opt_options) File "C:\Users\johns\.conda\envs\weis-envDev2\Lib\site-packages\wisdem\glue_code\gc_WT_InitModel.py", line 51, in yaml2openmdao wt_opt = assign_control_values(wt_opt, modeling_options, control, assembly) File "C:\Users\johns\.conda\envs\weis-envDev2\Lib\site-packages\wisdem\glue_code\gc_WT_InitModel.py", line 1435, in assign_control_values wt_opt["control.minOmega"] = control["min_rotor_speed"] ~~~~~~~^^^^^^^^^^^^^^^^^^^ KeyError: 'min_rotor_speed'

Figured that I should run the get_wisdem_yamls.py from the 00_setup folder in case the .yamls from WEIS were outdated, but more errors kept appearing:

File "D:\OpenFAST\WEIS\examples\02_generate_openfast_model_for_dlcs\iea34_driver.py", line 13, in <module> wt_opt, modeling_options, opt_options = weis_main(fname_wt_input, ~~~~~~~~~^^^^^^^^^^^^^^^^ fname_modeling_options, ^^^^^^^^^^^^^^^^^^^^^^^ fname_analysis_options, ^^^^^^^^^^^^^^^^^^^^^^^ test_run=TEST_RUN ^^^^^^^^^^^^^^^^^ ) ^ File "D:\OpenFAST\WEIS\weis\main.py", line 110, in weis_main wt_opt, modeling_options, opt_options = run_weis(fname_wt_input, ~~~~~~~~^^^^^^^^^^^^^^^^ fname_modeling_options, ^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... prepMPI=False, ^^^^^^^^^^^^^^ maxnP=maxnP) ^^^^^^^^^^^^ File "D:\OpenFAST\WEIS\weis\glue_code\runWEIS.py", line 24, in run_weis wt_initial = WindTurbineOntologyPythonWEIS( fname_wt_input, ...<3 lines>... analysis_override=analysis_override ) File "D:\OpenFAST\WEIS\weis\glue_code\gc_LoadInputs.py", line 61, in __init__ self.set_weis_data() ~~~~~~~~~~~~~~~~~~^^ File "D:\OpenFAST\WEIS\weis\glue_code\gc_LoadInputs.py", line 217, in set_weis_data cut_in = self.wt_init['control']['supervisory']['Vin'] ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ KeyError: 'supervisory'

Even if I manually add the supervisory, pitch, and torque to the control: section of the iea34 yaml, I still get an error:

File "D:\OpenFAST\WEIS\examples\02_generate_openfast_model_for_dlcs\iea34_driver.py", line 13, in <module> wt_opt, modeling_options, opt_options = weis_main(fname_wt_input, ~~~~~~~~~^^^^^^^^^^^^^^^^ fname_modeling_options, ^^^^^^^^^^^^^^^^^^^^^^^ fname_analysis_options, ^^^^^^^^^^^^^^^^^^^^^^^ test_run=TEST_RUN ^^^^^^^^^^^^^^^^^ ) ^ File "D:\OpenFAST\WEIS\weis\main.py", line 110, in weis_main wt_opt, modeling_options, opt_options = run_weis(fname_wt_input, ~~~~~~~~^^^^^^^^^^^^^^^^ fname_modeling_options, ^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... prepMPI=False, ^^^^^^^^^^^^^^ maxnP=maxnP) ^^^^^^^^^^^^ File "D:\OpenFAST\WEIS\weis\glue_code\runWEIS.py", line 187, in run_weis wt_opt.run_model() ~~~~~~~~~~~~~~~~^^ File "C:\Users\johns\.conda\envs\weis-envDev2\Lib\site-packages\openmdao\core\problem.py", line 647, in run_model self.final_setup() ~~~~~~~~~~~~~~~~^^ File "C:\Users\johns\.conda\envs\weis-envDev2\Lib\site-packages\openmdao\core\problem.py", line 1175, in final_setup self._check_collected_errors() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\johns\.conda\envs\weis-envDev2\Lib\site-packages\openmdao\core\problem.py", line 607, in _check_collected_errors raise RuntimeError('\n'.join(final_msg)) RuntimeError: Collected errors for problem 'iea34_driver': <model> <class WindPark>: Attempted to connect from 'control.max_pitch_rate' to 'sse_tune.tune_rosco.max_pitch_rate', but 'control.max_pitch_rate' doesn't exist. Perhaps you meant to connect to one of the following outputs: ['control.rated_pitch', 'aeroelastic.max_pitch_rate_sim', 'control.maxOmega']. <model> <class WindPark>: Attempted to connect from 'control.max_torque_rate' to 'sse_tune.tune_rosco.max_torque_rate', but 'control.max_torque_rate' doesn't exist. Perhaps you meant to connect to one of the following outputs: ['control.maxOmega', 'control.V_out', 'costs.gearbox_torque_cost']. <model> <class WindPark>: Attempted to connect from 'control.max_pitch_rate' to 'aeroelastic.max_pitch_rate', but 'control.max_pitch_rate' doesn't exist. Perhaps you meant to connect to one of the following outputs: ['control.rated_pitch', 'aeroelastic.max_pitch_rate_sim', 'control.maxOmega']. <model> <class WindPark>: Attempted to connect from 'control.max_TS' to 'aeroelastic.control_maxTS', but 'control.max_TS' doesn't exist. Perhaps you meant to connect to one of the following outputs: ['control.rated_TSR', 'control.maxOmega', 'control.V_in'].

Not sure if I am missing something or doing anything wrong. Any help would be greatly appreciated!

Code versions

  • WEIS, develop branch
  • WISDEM 4.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions