Skip to content

Commit

Permalink
🐛 Adjust root_scalar xtol and update Stellarator parameter for improv…
Browse files Browse the repository at this point in the history
…ed accuracy
  • Loading branch information
chris-ashe committed Feb 10, 2025
1 parent 7e43134 commit 2334b3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion process/physics.py
Original file line number Diff line number Diff line change
Expand Up @@ -6635,7 +6635,7 @@ def fhz(hfact: float) -> float:

return fhz_value

return root_scalar(fhz, bracket=(0.01, 150), xtol=0.00001).root
return root_scalar(fhz, bracket=(0.01, 150), xtol=0.001).root

@staticmethod
def calculate_confinement_time(
Expand Down
2 changes: 1 addition & 1 deletion process/stellarator.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def output_confinement_comparison_stell(self):
physics_variables.dene,
physics_variables.dnla,
physics_variables.eps,
2.0,
1.0,
i_confinement_time,
physics_variables.ignite,
physics_variables.kappa,
Expand Down

0 comments on commit 2334b3b

Please sign in to comment.