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
Describe the bug
If in an input file you try to set the fuel fraction to only D:
you end up with ZeroDivisionError in different places such as:
crfcdr = (fefcdr * self.data.costs.discount_rate) / (fefcdr - 1.0e0)in section related to "Costs due to partial current drive system renewal".self.calculate_electron_ion_collision_timewherend_plasma_ionsis 0