Skip to main content

Package for solving reactions and decays by Bateman's equation

Project description

Burnup Code

This code was designed to solve the Bateman's equation: dN/dt = (Lambda+React*Phi)*N where N is the vector of nuclide density for each nuclide in each spatial cell, Lambda is the decay model matrix, that corresponds to the rate of decay of each nuclide to other nuclides, React is the reaction model matrix, that corresponds to the rate of transmutation of each isotope into other isotopes due to the neutron flux, and Phi is the absolute flux level in the core that has to be somehow normalized to make the reaction rates fit the actual physical processes.

Design Goals

The design goals for this package are:

  1. The code must be parallelizable to more than one computer (achieved).
  2. The code must pass benchmarks (partially achieved).
  3. Code runtime must be in the few minute scale. CPU time may be up to an hour for a large core. (Achieved! Full core at 7 minutes with 32 CPUs)
  4. Code must be stable for large time steps. (Partially Achieved, depends on power renormalization requirements.)
  5. Code must be abstract and use simple external API. (Under Review)
  6. Isotopic data must allow for both fudged and real database built data. (Achieved!)
  7. Code must pass high standards (Under Review and Not Finished): a. Code must be fully documented. Type hinting counts for simple functions. b. Code must be modular and modules should be as implementation independent of one another as possible. c. Code must pass code review regularly and Major versions in flying colors. d. Test coverage must be 90%+, and tests must include parallel tasked cases. Mock tests are required. Multiple input tests required for numerical tests. e. Code must be easily installable.

Ways to Contribute

  1. We need to work on proper automatic documentation. Currently not done.
  2. Code needs better quality and refactoring. You're welcome to try your hand.
  3. Other exponentiation methods than CRAM could potentially be faster. Please try your hand at them.
  4. The code currently takes explicit time steps with constant flux as the base method. The academic papers speak of using a predictor-corrector model to extend the correctness with lower cost. This should be investigated to reduce the number of internal steps, or a Lie algebra method can be used as well.
  5. Benchmarks for this code are required.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ramp_batman-0.0.3.tar.gz (53.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ramp_batman-0.0.3-py3-none-any.whl (49.2 kB view details)

Uploaded Python 3

File details

Details for the file ramp_batman-0.0.3.tar.gz.

File metadata

  • Download URL: ramp_batman-0.0.3.tar.gz
  • Upload date:
  • Size: 53.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ramp_batman-0.0.3.tar.gz
Algorithm Hash digest
SHA256 848e25f9ffca169884e84e5c94e360b8fdf1cf2e9bc1201876bb206291a4d924
MD5 e6f3b53d0bf530bea3e819cd714ce48f
BLAKE2b-256 f113cfa7ebce3e6145e8b59b51ec521ef12b191a1c5835814dbe1259355c1fbc

See more details on using hashes here.

File details

Details for the file ramp_batman-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ramp_batman-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 49.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ramp_batman-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bde1dd9fab1672d8b1ecc406b936d9934dede76b0007a35ffd1fe991dc95abe1
MD5 fd86fbda92e4452fb6919f50132e80bc
BLAKE2b-256 380dac5bfa10d8b2f7b6b389bf6cb35b9f260c9a72246197ad3e23898f24aa0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page