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.2.tar.gz (53.4 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.2-py3-none-any.whl (49.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ramp_batman-0.0.2.tar.gz
  • Upload date:
  • Size: 53.4 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.2.tar.gz
Algorithm Hash digest
SHA256 a765f103530c0a383ad48ee4e7616e674de46c29719a5b9971288b3c56fcb0fb
MD5 19bd17da6964f4fb2245755b1801f56a
BLAKE2b-256 03b5e2aa493d5c7c73bcb8ce329f07a8e54f98821b9709062d69bf491cff0faf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ramp_batman-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4e616986bbb4c2de038b2065ca1a77318b5b00542277f65a05e9e4197514d7a3
MD5 9355431c7ade3abcf97485f1e3d38ad6
BLAKE2b-256 4c327733b6852c7485b09310887162ad5f67f2345478aea61ff69d7e58e2793b

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