Skip to content

Commit

Permalink
Merge pull request #285 from WISDEM/vmean_overwrite
Browse files Browse the repository at this point in the history
ability to overwrite the IEC mean U for aep calcs
  • Loading branch information
johnjasa committed Jun 7, 2021
2 parents 321fc78 + 7618461 commit c8ea1f4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wisdem/glue_code/gc_WT_InitModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def yaml2openmdao(wt_opt, modeling_options, wt_init, opt_options):
# Now all of the optional components
if modeling_options["flags"]["environment"]:
environment = wt_init["environment"]
wt_opt = assign_environment_values(wt_opt, environment, offshore)
blade_flag = modeling_options["flags"]["blade"]
wt_opt = assign_environment_values(wt_opt, environment, offshore, blade_flag)
else:
environment = {}

Expand Down Expand Up @@ -1118,7 +1119,7 @@ def assign_configuration_values(wt_opt, assembly, opt_options):
return wt_opt


def assign_environment_values(wt_opt, environment, offshore):
def assign_environment_values(wt_opt, environment, offshore, blade_flag):

wt_opt["env.rho_air"] = environment["air_density"]
wt_opt["env.mu_air"] = environment["air_dyn_viscosity"]
Expand All @@ -1133,6 +1134,8 @@ def assign_environment_values(wt_opt, environment, offshore):
wt_opt["env.shear_exp"] = environment["shear_exp"]
wt_opt["env.G_soil"] = environment["soil_shear_modulus"]
wt_opt["env.nu_soil"] = environment["soil_poisson"]
if blade_flag:
wt_opt['rotorse.wt_class.V_mean_overwrite'] = environment['V_mean']

return wt_opt

Expand Down
6 changes: 6 additions & 0 deletions wisdem/inputs/geometry_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3004,6 +3004,12 @@ properties:
minimum: 0
maximum: 0.6
default: 0.4
V_mean:
type: number
default: 0.
minimum: 0.
maximum: 2.e+1
description: Average inflow wind speed. If different than 0, this will overwrite the V mean of the IEC wind class
bos:
type: object
default: {}
Expand Down

0 comments on commit c8ea1f4

Please sign in to comment.