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

Add option to use spline-interpolated energy loss #1496

Merged
merged 14 commits into from
Dec 3, 2024

Conversation

lebuller
Copy link
Contributor

Adds an input option in the runner, spline_eloss_order, which is passed to PhysicsParams::Input as an option. This option is used to define the order of interpolation to be preformed in calc_mean_energy_loss in PhysicsStepUtils.hh. If this order is 1 the existing linear cross-section calculator is used and if it is greater than 1 a spline calculator of the given order is used.

Copy link

github-actions bot commented Nov 12, 2024

Test summary

 3 861 files   5 970 suites   4m 9s ⏱️
 1 601 tests  1 573 ✅ 28 💤 0 ❌
19 842 runs  19 767 ✅ 75 💤 0 ❌

Results for commit 0f7594d.

♻️ This comment has been updated with latest results.

@sethrj sethrj added enhancement New feature or request physics Particles, processes, and stepping algorithms labels Nov 12, 2024
lbu added 3 commits November 20, 2024 16:03
…pline template. Failing due to energy grid of size 2 in test
…s in MockProcess. Also alter scattering mock process to have 3 xs points instead of 2
@lebuller lebuller marked this pull request as ready for review November 21, 2024 21:24
@sethrj sethrj self-requested a review December 2, 2024 14:02
test/celeritas/phys/MockProcess.cc Outdated Show resolved Hide resolved
app/celer-sim/RunnerInputIO.json.cc Show resolved Hide resolved
src/celeritas/phys/PhysicsData.hh Outdated Show resolved Hide resolved
src/celeritas/phys/PhysicsParams.hh Outdated Show resolved Hide resolved
src/celeritas/phys/PhysicsStepUtils.hh Outdated Show resolved Hide resolved
src/celeritas/phys/PhysicsStepUtils.hh Outdated Show resolved Hide resolved
src/celeritas/phys/PhysicsTrackView.hh Outdated Show resolved Hide resolved
src/celeritas/phys/PhysicsTrackView.hh Outdated Show resolved Hide resolved
@sethrj
Copy link
Member

sethrj commented Dec 2, 2024

Great work @lebuller ! There are just a few things to look at.

Copy link
Member

@sethrj sethrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! nice work.

@sethrj sethrj changed the title Uses spline order in the energy loss calculation Add option to use spline-interpolated energy loss Dec 3, 2024
@sethrj sethrj enabled auto-merge (squash) December 3, 2024 17:40
pcanal pushed a commit to pcanal/celeritas that referenced this pull request Dec 3, 2024
…1496)

* Adds `spline_eloss_order` variable to the PhysicsParamsScalars and PhysicsParamsOptions
* Adds option for xs calculation from spline in energy loss calculation
* Adds spline order to the runner input setup and includes it as an input in the simple-driver.py
* Set a default of 1st order interpolation in the input file
* Adds spline physics step test. Currently fails due to the energy loss grid created being too small
* Adds spline_calc_xs function for testing the make_calculator with a spline template. Failing due to energy grid of size 2 in test
* Alter the vector length to store a range of values for the energy loss in MockProcess. Also alter scattering mock process to have 3 xs points instead of 2
@sethrj sethrj disabled auto-merge December 3, 2024 22:42
@sethrj sethrj merged commit d287147 into celeritas-project:develop Dec 3, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request physics Particles, processes, and stepping algorithms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants