NatLabRockies / NatLabRockies/SAM

CSP-Power Tower - crashes with single facet heliostat

Open
#2,186 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
486
Forks
219
Avg merge
10h 10m
Merged PRs (30d)
2

Description

Describe the bug

SAM GUI crashes when updating default Power tower model to a single facet heliostat.

To Reproduce

Steps to reproduce the behavior:

  1. Open default CSP -> Power tower model
  2. In Heliostat Field tab, change 'Number of heliostat facets - X' to 1
  3. In Heliostat Field tab, change 'Number of heliostat facets - y' to 1
    • causes GUI to crash

Note: tried setting 'Heliostat canting method' to None before step 2 above and still caused crash after step 3.

Expected behavior
Screenshots
Operating System and Version
  • OS: Windows
  • Version SAM 2025.4.16
Additional context

Issue does not occur in SAM V2021.12.2, but found to occur on all versions I have installed after this.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash in the SAM GUI using the default CSP Power Tower model. In the Heliostat Field tab, set both “Number of heliostat facets - X” and “Number of heliostat facets - y” to 1, including after setting the canting method to None, and compare with SAM V2021.12.2. Done means the current version no longer crashes during these updates.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.