Skip to main content

Emulating Astronautical Reactor Kinetics

Project description

Emulating Astronautical Reactor Kinetics

The eark module is a compilation of utilities for analyzing reactor kinetics, with a bias towards astronautical engineering applications.

Build Status

Installation

The eark package is pip-installable and is tested against python 3.6 and 3.7.

pip install eark

Using eark

Inhour Equation Solver

The eark.inhour module contains utilities for solving the Inhour equations, for example:

>>> import numpy as np
>>> from eark import inhour

# Setup initial state
>>> beta = 0.0075
>>> beta_vector = np.array([0.033, 0.219, 0.196, 0.395, 0.115, 0.042])
>>> n_initial = 4000
>>> period = 6.0e-5
>>> precursor_constants = np.array([0.0124, 0.0305, 0.1110, 0.3011, 1.1400, 3.0100])
>>> precursor_density = np.array([5000, 6000, 5600, 4700, 7800, 6578])
>>> rho =  0.5 * beta

# Solve 
>>> inhour.solve(n_initial=n_initial,
                 precursor_density_initial=precursor_density,
                 beta_vector=beta_vector,
                 precursor_constants=precursor_constants,
                 rho=rho,
                 total_beta=beta,
                 period=period,
                 t_max=1,
                 num_iters=3)

[[4.000e+03, 5.000e+03, 6.000e+03, 5.600e+03, 4.700e+03, 7.800e+03, 6.578e+03],
 [1.881e+15, 1.856e+16, 1.231e+17, 1.100e+17, 2.210e+17, 6.338e+16, 2.241e+16],
 [2.397e+27, 2.364e+28, 1.568e+29, 1.402e+29, 2.815e+29, 8.076e+28, 2.856e+28]]

Running the test suite

The simplest usage of eark is to run the test suite. This can ensure the installation was successful.

>>> import eark
>>> eark.test()

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

eark-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

eark-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file eark-0.1.0.tar.gz.

File metadata

  • Download URL: eark-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.10

File hashes

Hashes for eark-0.1.0.tar.gz
Algorithm Hash digest
SHA256 855aee4266beb6a2f7a958949735f9d968bb7b775f5b4b7754e586475c0c0131
MD5 b3a7796690eb48574b4746aab763f066
BLAKE2b-256 3faad7f8c887f0e234817050c6d26e0d47f858477a7beb1584a1aad869267d03

See more details on using hashes here.

File details

Details for the file eark-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: eark-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.10

File hashes

Hashes for eark-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cac67982cc90ef9b972648fa6ee06230db10f9bad950aa5441eaec971ef4665a
MD5 93c063191dcf40ed2bee1d3ae791f14f
BLAKE2b-256 6642046ff4a92e0866bee714d0a697b4502ddcf9b07f637dc253588bbefae7d6

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