Skip to content

Commit

Permalink
write_param_file -> write_DISCON
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Mar 2, 2020
1 parent 26092aa commit 9712ef4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Examples/ROSCO_walkthrough.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@
"# Write parameter input file\n",
"file_processing = ROSCO_utilities.FileProcessing()\n",
"param_file = 'DISCON.IN' # This must be named DISCON.IN to be seen by the compiled controller binary. \n",
"file_processing.write_param_file(turbine,controller,param_file=param_file, txt_filename=path_params['rotor_performance_filename'])"
"file_processing.write_DISCON(turbine,controller,param_file=param_file, txt_filename=path_params['rotor_performance_filename'])"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion Examples/example_04.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

# Write parameter input file
param_file = 'DISCON.IN'
file_processing.write_param_file(turbine,controller,param_file=param_file, txt_filename=path_params['rotor_performance_filename'])
file_processing.write_DISCON(turbine,controller,param_file=param_file, txt_filename=path_params['rotor_performance_filename'])

# Plot gain schedule
plt.figure(0)
Expand Down
2 changes: 1 addition & 1 deletion Examples/example_06.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

# Write parameter input file
param_file = 'DISCON.IN' # This must be named DISCON.IN to be seen by the compiled controller binary.
file_processing.write_param_file(turbine,controller,param_file=param_file, txt_filename=path_params['rotor_performance_filename'])
file_processing.write_DISCON(turbine,controller,param_file=param_file, txt_filename=path_params['rotor_performance_filename'])

# Run OpenFAST
# --- May need to change fastcall if you use a non-standard command to call openfast
Expand Down
4 changes: 2 additions & 2 deletions ROSCO_toolbox/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,14 +432,14 @@ class FileProcessing():
Methods:
-----------
write_param_file
write_DISCON
write_rotor_performance
"""

def __init__(self):
pass

def write_param_file(self, turbine, controller, param_file='DISCON.IN', txt_filename='Cp_Ct_Cq.txt'):
def write_DISCON(self, turbine, controller, param_file='DISCON.IN', txt_filename='Cp_Ct_Cq.txt'):
"""
Print the controller parameters to the DISCON.IN input file for the generic controller
Expand Down
2 changes: 1 addition & 1 deletion Tune_Cases/tune_ROSCO.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

# Write parameter input file
param_file = 'DISCON.IN' # This must be named DISCON.IN to be seen by the compiled controller binary.
file_processing.write_param_file(turbine,controller,param_file=param_file, txt_filename=path_params['rotor_performance_filename'])
file_processing.write_DISCON(turbine,controller,param_file=param_file, txt_filename=path_params['rotor_performance_filename'])

# Plot rotor performance
turbine.Cp.plot_performance(turbine.Cp_table, turbine.pitch_initial_rad, turbine.TSR_initial)
Expand Down

0 comments on commit 9712ef4

Please sign in to comment.