Skip to content

Commit b664626

Browse files
committed
Update example to use NN
1 parent 0f9a278 commit b664626

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Examples/34_AEPS_Simulation.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def main():
5252

5353
# Input yaml and output directory
5454
parameter_filename = os.path.join(this_dir,'Tune_Cases/IEA15MW_AEPS.yaml')
55-
run_dir = os.path.join(example_out_dir,'34_AEPS_Simulation/9_sweep_lim')
55+
run_dir = os.path.join(example_out_dir,'34_AEPS_Simulation/10_check_nn')
5656
os.makedirs(run_dir,exist_ok=True)
5757

5858
# Read initial input file
@@ -73,6 +73,7 @@ def main():
7373
controller_params['VS_ControlMode'] = 2
7474
controller_params['DISCON'] = {}
7575
controller_params['DISCON']['ASO_ThrustGain'] = 0.4
76+
controller_params['DISCON']['ASO_UseNN'] = 1
7677

7778
# simulation set up
7879
r = run_FAST_ROSCO()
@@ -86,18 +87,18 @@ def main():
8687
}
8788

8889
# Run with and without AEPS algorithm
89-
r.control_sweep_fcn = cl.sweep_yaml_input
90-
r.control_sweep_opts = {
91-
'control_param':'eps_percent',
92-
'param_values': [0.7, 0.8, 0.9, 1.0] #Run with ASO mode equal to 0 and 1, respectively.
93-
}
90+
# r.control_sweep_fcn = cl.sweep_yaml_input
91+
# r.control_sweep_opts = {
92+
# 'control_param':'eps_percent',
93+
# 'param_values': [0.7, 0.8, 0.9, 1.0] #Run with ASO mode equal to 0 and 1, respectively.
94+
# }
9495

9596
r.controller_params = controller_params
9697
r.save_dir = run_dir
9798
r.rosco_dir = rosco_dir
9899
r.case_inputs = {}
99100
# r.rosco_dll = "C:/Users/musah/ROSCO/rosco/controller/build/libdiscon.dll"
100-
r.n_cores = 4
101+
r.n_cores = 1
101102
r.run_FAST()
102103

103104

0 commit comments

Comments
 (0)