Skip to main content

NIST calculators

My python implementaion of some NIST calculator.

Now implemented:

  • NIST XCOM --- photon cross-sections database
  • NIST_STAR --- stopping-power & range tables for electrons, protons, and helium ions

Installation

pip install nist-calculators

Usage

XCOM

See tutorial.

Example of usage:

import xcom

data = xcom.calculate_cross_section("He", [1e6, 2e6, 5e6]) # Energy in eV
# or
import numpy as np
energy = np.array([1e6, 2e6, 5e6])
Z = 2
data = xcom.calculate_cross_section(Z, energy)

ESTAR

See tutorial.

Example of usage:

from star import electron
hydrogen = electron.PredefinedMaterials.HYDROGEN
data = electron.calculate_stopping_power(hydrogen, energy=[1e2,2e2,3e2]) # Energy in MeV

PSTAR

See tutorial.

Example of usage:

from star import ProtonSTARCalculator, ProtonMaterials

material = ProtonMaterials.BERYLLIUM
calculator = ProtonSTARCalculator(material)
total = calculator.calculate_total_stopping_powers( [10, 20, 50]) # Energy in MeV

ASTAR

See tutorial.

Example of usage:

from star import AlphaSTARCalculator, AlphaMaterials

material = AlphaMaterials.BERYLLIUM
calculator = AlphaSTARCalculator(material)
total = calculator.calculate_total_stopping_powers( [10, 20, 50]) # Energy in MeV

Release files for nist-calculators 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nist-calculators 0.0.5
File Size Uploaded
nist-calculators-0.0.5.tar.gz 1.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for nist-calculators 0.0.5
File Interpreter ABI Platform
nist_calculators-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 2.5 MB

Release files / nist-calculators-0.0.5.tar.gz

Download URL nist-calculators-0.0.5.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
09340ae7b869b391b842d7358969c16e6b353957a84be244c459652b1f7afe5c
BLAKE2b-256 checksum
How to use checksums
bdac645230c4987a309867c80a0dca38fee7cbbe6d93248bc8456e978aaf9a5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.21.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

Release files / nist_calculators-0.0.5-py3-none-any.whl

Download URL nist_calculators-0.0.5-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ed8d924e1e01f3df82319a836c2cdabe536f23b7d378b4f3c5a5d01715f18ae3
BLAKE2b-256 checksum
How to use checksums
f74e59533e34dda639eeabab0db2146677d0b6c82c6530a753dd2933cb69191f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.21.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page