Skip to main content

Parametric plasma source for fusion simulations in OpenMC

Project description

parametric-plasma-source

Python package, C++ source and build files for parametric plasma source for use in fusion neutron transport calculations with OpenMC.

The plasma source is based on a paper by C. Fausser et al

Installation

pip install parametric_plasma_source

Usage

The parametric plasma source can be imported an used in Python 3 in the following manner.

from parametric_plasma_source import Plasma
my_plasma = Plasma(major_radius=6, minor_radius=1.5)
my_plasma.export_plasma_source('custom_openmc_plasma_source.so')

In the above example the major_radius and minor radius are changed from the default.

There are a number of additional arguments that can be passed to the Plasma class on construction. Units are in SI (e.g. meters not cm)

ion_density_pedistal = 1.09e+20
ion_density_seperatrix = 3e+19
ion_density_origin = 1.09e+20
ion_temperature_pedistal = 6.09
ion_temperature_seperatrix = 0.1
ion_temperature_origin = 45.9
pedistal_radius = 0.8
ion_density_peaking_factor = 1
ion_temperature_peaking_factor = 8.06
minor_radius = 1.56
major_radius = 2.5
elongation = 2.0
triangularity = 0.55
shafranov_shift = 0.0
number_of_bins = 100
plasma_type = 1

For a better understanding of the varibles take a look at the C. Fausser et al paper.

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

parametric_plasma_source-0.0.4.tar.gz (8.2 kB view details)

Uploaded Source

File details

Details for the file parametric_plasma_source-0.0.4.tar.gz.

File metadata

  • Download URL: parametric_plasma_source-0.0.4.tar.gz
  • Upload date:
  • Size: 8.2 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 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for parametric_plasma_source-0.0.4.tar.gz
Algorithm Hash digest
SHA256 1b6bb594039ac0b9e0c1c166ba5ebe3993d18d96b1d164834f5680ecb8b3415f
MD5 38cb7f3eac343174bc043d8c543b221f
BLAKE2b-256 9c1c6e2f2e82191481f8cec5f9b1e2bf35c65b8e9d1a8ed91c0a7a6c300a9e1e

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