Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write script to automate amr_input.ipt generation for different wind farm sizes #100

Open
achenry opened this issue Apr 4, 2024 · 0 comments

Comments

@achenry
Copy link
Contributor

achenry commented Apr 4, 2024

To generate the actuator labels:

num_turbines = 25
"Actuator.labels = " + " ".join([f"T{i:02d}" for i in range(num_turbines)])

To generate the base positions:

set = ""
n_rows = 5
n_cols = 5
delta_x = 882.0
delta_y = 756.0
for i in range(n_rows):
    for j in range(n_cols):
        turbine_idx = (i * n_rows) + j
        set += f"Actuator.T{turbine_idx:02d}.base_position = {i * delta_x:.1f} {j * delta_y:.1f} 0.0\n"
#print(set)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant