Skip to main content

Tests certain mcdc functionality convergence to semi-analytical solutions provided by William Bennett

Reason this release was yanked:

doesn't work

Project description

mcdc_convergence_tests

Runs mcdc on given tests and plots convergence to benchmark data

Dependencies

requires numpy,hdf5,and mcdc

Installation guide

Download the src folder

Quick start guide

The most user-friendly way of running the tests is as follows:

python -c 'import run; run.test([particlenums],"sourcetype",createdata,loud)' --mode=numba

where particlenums are the amounts of particles you'd like to use (e.g. [1e2,1e3,1e4,1e5]), and sourcetype is one of

"plane_IC"
"square_IC"
"square_source"
"gaussian_IC"
"gaussian_source"
"all"

createdata allows you to specify whether you want to run the mcdc simulations again, or use existing data (this is best used when you have run it with createdata = True once, then want to reuse that data without taking the time to compute it) loud determines whether convergence is determined and plotted --mode=numba makes computation much quicker, though this can be omitted and mcdc will run in normal python mode

IMPORTANT NOTE:

With the current implementation of MC/DC, the inclusion of --mode=numba is the only way to run in numba mode. This poses a problem when trying to run multiple simluations from one script, and so we recommend refraining from using the all option to create data, instead specifying each source. The all command can still be used to plot all the data with no problems.

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

mcdc_convergence_tests-0.0.1.tar.gz (113.7 kB view details)

Uploaded Source

File details

Details for the file mcdc_convergence_tests-0.0.1.tar.gz.

File metadata

  • Download URL: mcdc_convergence_tests-0.0.1.tar.gz
  • Upload date:
  • Size: 113.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for mcdc_convergence_tests-0.0.1.tar.gz
Algorithm Hash digest
SHA256 29ba2ec694c74664e6c801c8b7ebd3609cf7624039144842693adf8373124eb4
MD5 3c832f998fbf322e6c85e5eaadd992f4
BLAKE2b-256 e97173940d107259933b9a17eeee64079d0d74da3e321c93c5adc2c7af9ce4b9

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