Skip to main content

Package for radiation shielding modelling.

Project description

particleShield

particleShield is a Python library designed to facilitate radiation shielding calculations. It provides a set of functions and utilities to determine the amount of radiation absorbed by different shielding materials for different types of radiation.

Features

This Python code provides a set of functions to perform various calculations related to radiation physics, including:

  • Half-value layer (HVL) calculation
  • Buildup factor calculation
  • Dose rate calculation
  • Radiation attenuation calculation
  • Bethe-Bloch equation for energy loss
  • Bragg curve generation

Requirements

  • Python 3.7
  • NumPy
  • Matplotlib

Installation

  1. Make sure you have Python 3.7 installed on your system.

  2. Install the required dependencies by running the following command:

    pip numpy as np, matplotlib.pyplot as plt
    
  3. Download the particleShield library and import it in your project.

Usage

The package can then be imported using:

import particleShield

Ionizing Radiation

particleShield provides multiple functions for calculation of radiation protection and dosimetry for different types of ionizing radiation.

#Calculate the half-value layer
hvl = particleShield.calculate_hvl(initial_intensity, attenuation_factor)

#Calculate the buildup factor
buildup_factor = particleShield.calculate_buildup_factor(penetration_depth, attenuation_factor)

#Calculate the dose rate
dose_rate = particleShield.calculate_dose_rate(intensity, conversion_factor, time, distance)

#Calculate radiation attenuation
attenuated_intensity = particleShield.calculate_attenuation(I0, mu, x)

Beth-Bloch equation

The Bethe-Bloch equation is used to calculate the energy loss of charged particles (e.g., electrons, protons, alpha particles) as they pass through a material. It describes how these particles lose energy through ionization and excitation of atoms in the material.

The Beth-Bloch equation:

Bethe-Bloch Equation
#Calculate energy loss using the Bethe-Bloch equation for Protons in Air
kinetic_energy = 100  # MeV
charge = 1  # Elementary charge units
atomic_mass = 28.09  # g/mol
atomic_number = 14
ionization_potential = 78  # eV

energy_loss = bethe_bloch(kinetic_energy, charge, atomic_mass, atomic_number, ionization_potential)
print("Energy Loss:", energy_loss, "MeV/cm")

Output: Energy Loss: -4.297 MeV/cm

Bragg Curve

The Bragg curve is a graphical representation that illustrates how the energy deposition of charged particles varies with depth as they traverse a material.

#Generate the Bragg curve for protons in air
alpha = 0.1666  # MeV/(g/cm^2)
p = 1.76        # g/cm^2
shallowest_depth = 10.0  # cm
deepest_depth = 15.0     # cm

generate_bragg_curve(alpha, p, shallowest_depth, deepest_depth)

Bragg curve for protons in air:

Bragg Curve

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

particleShield-0.0.3.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

particleShield-0.0.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: particleShield-0.0.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for particleShield-0.0.3.tar.gz
Algorithm Hash digest
SHA256 599661ed2f3bb6caf6bf43804adc13b4cbe0e372281c3f672a3fab1096bc5516
MD5 c14d72794b2f0841f0726693fd95afed
BLAKE2b-256 9ffef86ccfd84bea0929f2873966587f6f309fc6143cc3dbfe6903e2525b954d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for particleShield-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ef7eea309dade2134c61903e7a41c4a08edb933dd966c544dc985d2c2a367737
MD5 52d6e8b25afac54312035c0afd541687
BLAKE2b-256 f9840a7257df0a9993a44d43fe9fe3c56c3b1873fec4b9a79ddc82b81f0d3ebe

See more details on using hashes here.

Supported by

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