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

segmentation fault in custom_financial_model from nan in generation #347

Open
elenya-grant opened this issue Sep 16, 2024 · 1 comment
Open

Comments

@elenya-grant
Copy link
Collaborator

Add meaningful title here

How to reproduce

Run Reference Plant Example 01 using the below HOPP config info:
HOPP Config info:

  • lat: 34.872
  • lon: -100.972
  • year: 2013
  • hub_height: 115
  • wind is true, solar and wave are false
  • 120 turbines, using lbw_6MW turbine, same floris files from reference plant 01 example. simulate with floris
  • grid interconnection size is 720 MW

Relevant output

Output: Segmentation fault (core dumped)

  • error occurs when trying to set system_pre_curtailment_kwac in power_source.simulate_financials() for Grid object (error is in value() of custom_financial_model.py)
  • The above error arises because of a nan in the power_farm floris output (example: at hour 493 there is a nan in the wind plant generation profile). At hour 493, there is a wind speed of 0.0 m/s.
  • Quick fix: in execute() of floris.py add these lines after line 132:
power_farm = np.nan_to_num(power_farm)
power_turbines = np.nan_to_num(power_turbines)

HOPP version

  • greensteel-eco-sync

System Information

  • OS: macOS 13.6.9
  • Python version: 3.8.12
  • Library versions
    • FLORIS: 3.5
@elenya-grant elenya-grant changed the title segmentation fault in custom_financial_model from nan in generation profile segmentation fault in custom_financial_model from nan in generation Sep 16, 2024
@bayc
Copy link
Collaborator

bayc commented Oct 23, 2024

@elenya-grant Can you confirm if this is still an issue since we have updated to FLORIS v4?

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

2 participants