Skip to content

🐛 Currently unable to run a fully Deuterium plasma without ZeroDivisionError #4576

Description

@kj5248

Describe the bug

If in an input file you try to set the fuel fraction to only D:

f_plasma_fuel_deuterium = 1.0
f_plasma_fuel_tritium = 0.0

you end up with ZeroDivisionError in different places such as:

  • cost model for crfcdr = (fefcdr * self.data.costs.discount_rate) / (fefcdr - 1.0e0) in section related to "Costs due to partial current drive system renewal".
  • physics model for self.calculate_electron_ion_collision_time where nd_plasma_ions is 0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isnt working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions