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

When a simulation is started at 0 m/s, there's a seg fault. #408

Open
dzalkind opened this issue Dec 27, 2024 · 1 comment
Open

When a simulation is started at 0 m/s, there's a seg fault. #408

dzalkind opened this issue Dec 27, 2024 · 1 comment

Comments

@dzalkind
Copy link
Collaborator

Desired use case

Wind ramp starting at 0 m/s

Description

https://forums.nrel.gov/t/unhandled-exception-in-libdiscon-dll-when-debugging-fast/8025/6

Current behavior

Divide-by-zero in AeroDynTorque

Expected behavior

Saturate initial inflow speed. I think this was done in the past and may have been removed?

Code versions

v2.9

@dzalkind
Copy link
Collaborator Author

The divide-by-zero should be caught here:

LocalVar%WE%v_m = max(LocalVar%HorWindV, 3.0_DbKi) ! avoid divide by 0 below if HorWindV is 0, which some AMRWind setups create

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