Skip to content

Random ray sdp init#3

Draft
yardasol wants to merge 31 commits intorandom-ray-sdp-mainfrom
random-ray-sdp-init
Draft

Random ray sdp init#3
yardasol wants to merge 31 commits intorandom-ray-sdp-mainfrom
random-ray-sdp-init

Conversation

@yardasol
Copy link
Copy Markdown
Owner

@yardasol yardasol commented Oct 24, 2024

Description

This PR implements Source Derivative Propagation for time-dependent random ray transport using flat source regions.
This PR also updates the python MGXS module with functionality to generate MGXS libraries for random ray transport.

  • Apply mathematics changes to linear sources
  • figure out a good way to approximate $\frac{d^2\phi}{dt^2}$

Fixes # (issue)

Checklist

  • I have performed a self-review of my own code
  • I have run clang-format (version 15) on any C++ source files (if applicable)
  • I have followed the style guidelines for Python source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

@yardasol yardasol force-pushed the random-ray-sdp-init branch from 6f75018 to 0e24aa3 Compare October 24, 2024 21:42
- change scope of variables to public to simplify logic
- fix bdf_ vector initialization
- coefficients
- fucntions to update the bdf vectors
@yardasol yardasol force-pushed the random-ray-sdp-init branch from 9dd1032 to 1550fa4 Compare October 29, 2024 18:53
@yardasol yardasol force-pushed the random-ray-sdp-init branch from d4f43a8 to 81a96be Compare October 29, 2024 19:51
@yardasol yardasol force-pushed the random-ray-sdp-init branch from 111b35d to 0964c97 Compare November 20, 2024 23:17
@yardasol yardasol force-pushed the random-ray-sdp-init branch 3 times, most recently from 7d5a55e to 116c31a Compare December 4, 2024 16:00
@yardasol yardasol force-pushed the random-ray-sdp-init branch from 116c31a to 2f7e10e Compare December 4, 2024 21:01
@yardasol yardasol force-pushed the random-ray-sdp-init branch from 32aae49 to e2ac3ec Compare December 16, 2024 21:31
- add k_eff normalization
- add checks for zero-valued cross sections
- fix numerical derivatives
- fix statepoint filename change
@yardasol yardasol force-pushed the random-ray-sdp-init branch from e2ac3ec to 8901519 Compare December 16, 2024 21:34
- fix time-dependent statepoints not writing
- change bdf order location to allow for updating

- store analytic source as needed for timesteps instead of Q/sigma_t
  (this breaks the tests but the values are approximately correct, still
  need to propogate this change to the linear source domain)
- use truncated SDP for simplicity (we will change this later but for
  now this will do)
@yardasol yardasol force-pushed the random-ray-sdp-init branch from 43b2b26 to cac1a00 Compare December 17, 2024 18:19
@yardasol yardasol force-pushed the random-ray-sdp-init branch from 8859a51 to cf43e5e Compare January 14, 2025 18:48
Comment on lines +647 to +651
void RandomRaySimulation::point_to_bdf_vectors() {
domain_->scalar_flux_bdf_ = &random_ray_td::scalar_flux_bdf_;
domain_->source_bdf_ = &random_ray_td::source_bdf_;
domain_->precursors_bdf_ = &random_ray_td::precursors_bdf_;
}
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

This has been removed in new bracnch

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

Successfully merging this pull request may close these issues.

1 participant