Skip to content

[BUG] Stellarator constraint 65 infinity #2961

@wrutten

Description

@wrutten

Describe the bug

Process encounters divide by zero error error. Temperature profiles are not computed (tprofile =0)

Steps to reproduce

Steps to reproduce the behaviour:

  1. Using input file failing_IN.DAT.TXT
  2. Add stellarator configuration file failing_stella_conf.json.TXT (remove .txt extension)
    ation)
  3. Run process
  4. See error
    'RuntimeWarning: divide by zero encountered in log
    zav_of_te = yi + c * (numpy.log(tprofile) - xi)'
    ID LEVEL MESSAGE
    14 3 CONSTRAINTS: NaN/infty error for constraint equation...
    Integer diagnostic values for this error:
    '1) 65
    Floating point diagnostic values for this error:
    '1) -Infinity

Expected behaviour

Screenshots / Tracebacks

This input file works on (commit 1d6905a68 origin/ARCHIVED_last_version_with_stellarator)

Environment (please complete the following inform

  • OS: WSL: Ubuntu-20.04
  • Version: v3.0.0-6-g01d10b0
  • Branch: main

Additional context

This is an old stellarator input file, it worked on the archived stellarator version on GitLab.
(commit 1d6905a68 origin/ARCHIVED_last_version_with_stellarator)

Error occurred trying to get this input file working with new open source stellarator version

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions