Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeWarning: overflow encountered in exp + np.exp( #29

Closed
chentingxi36 opened this issue May 10, 2023 · 5 comments
Closed

RuntimeWarning: overflow encountered in exp + np.exp( #29

chentingxi36 opened this issue May 10, 2023 · 5 comments

Comments

@chentingxi36
Copy link

I find this question in your API tutorial :"/Users/alex/work/py-sc-fermi/py_sc_fermi/dos.py:231: RuntimeWarning: overflow encountered in exp + np.exp(" , and I don't kown whether this warming will influence the result

@alexsquires
Copy link
Collaborator

Hi @chentingxi36

This occurs when numpy encounters very very large numbers. This can generally be ignored as long as your results look reasonable. It is usually a consequence of

  1. The solver trialling a Fermi energy that causes unrealistic defect concentrations (you can ignore this so long as your defect concentrations at the final Fermi energy look reasonable)
  2. Your input temperature is too high, and you are getting unphysically high defect concentrations (I have not encountered this at any meaningful temperature I have wished to simulate)

Please let me know if you have further questions, or else I will close this issue in the next couple of days.

Thanks for your interest in the code!

@chentingxi36
Copy link
Author

ok! Thank you for your explanation. I roughly understand it . I hope your work goes smoothly and your family is happy!

@bjmorgan
Copy link
Owner

@alexsquires The smart thing for us to do here is to catch this warning and add an additional "warning" that briefly covers your answer above.

@chentingxi36
Copy link
Author

May I know your email address? I am trying to use your code, but I am not sure if the results I obtained are correct. I would like you to help me take a look。Think you!

@alexsquires
Copy link
Collaborator

May I know your email address? I am trying to use your code, but I am not sure if the results I obtained are correct. I would like you to help me take a look。Think you!

My email address is available on my GitHub profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants