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

Replace the half-sum with numerical integration when calculating the bremsstrahlung spectrum #402

Merged
merged 13 commits into from
Nov 30, 2023

Conversation

vsnever
Copy link
Member

@vsnever vsnever commented Jan 25, 2023

This fixes #395 by adding integrator argument to the Bremsstrahlung emission model. The new BremsFunction(Function1D) class is added for compatibility with Integrator1D.

Update. This also fixes #409 by replacing the numerical constant with an exact expression and changing the reference to bremsstrahlung equation in the docstring.

@vsnever vsnever linked an issue Jan 25, 2023 that may be closed by this pull request
@jacklovell
Copy link
Member

Would be good to have test coverage of this too.

@vsnever vsnever linked an issue May 3, 2023 that may be closed by this pull request
@vsnever
Copy link
Member Author

vsnever commented May 3, 2023

Would be good to have test coverage of this too.

Done. I also added a fix for #409 so as not to rewrite the test in a separate PR.

@jacklovell jacklovell merged commit 25e839f into cherab:development Nov 30, 2023
6 of 8 checks passed
@vsnever vsnever deleted the enhancement/bremss_integration branch August 30, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bremsstrahlung formula reference Add numerical integration of bremsstrahlung over spectral bins
2 participants