Skip to content

Commit

Permalink
arange using dx
Browse files Browse the repository at this point in the history
  • Loading branch information
kilojoules committed Feb 10, 2025
1 parent 95166e7 commit ef8f10c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions wifa/pywake_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import argparse
from scipy.interpolate import interp1d
from windIO.utils.yml_utils import validate_yaml, Loader, load_yaml
from pathlib import Path


# Define default values for wind_deficit_model parameters
DEFAULTS = {
Expand Down Expand Up @@ -129,6 +131,8 @@ def run_pywake(yamlFile, output_dir="output"):
)
from py_wake.wind_turbines import WindTurbines

Path(output_dir).mkdir(parents=True, exist_ok=True)

# allow yamlFile to be an already parsed input dict
if not isinstance(yamlFile, dict):
system_dat = load_yaml(yamlFile)
Expand Down Expand Up @@ -786,8 +790,8 @@ def run_pywake(yamlFile, output_dir="output"):
# if 'x_bounds' in z_planes
# compute flow map for specified directions (wd) and speeds (ws)
flow_map = sim_res.flow_box(
x=np.linspace(WFXLB, WFXUB, WFDX),
y=np.linspace(WFYLB, WFYUB, WFDY),
x=np.arange(WFXLB, WFXUB, WFDX),
y=np.arange(WFYLB, WFYUB, WFDY),
h=additional_heights,
time=sim_res.time,
)
Expand Down

0 comments on commit ef8f10c

Please sign in to comment.