Skip to main content

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

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_test-0.0.1.tar.gz (113.8 kB view details)

Uploaded Source

Built Distribution

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

mcdc_convergence_test-0.0.1-py3-none-any.whl (113.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcdc_convergence_test-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c04030b015174ed3bbba744a167b34f2a4c9394f27de1505a6958abbd4e9fb74
MD5 4cf6face458bdae284bf43066c4c3553
BLAKE2b-256 7932abfdd83e7a3d6f3c37186eef4ded54d1068de12d170fa2cf2d2005d57fcd

See more details on using hashes here.

File details

Details for the file mcdc_convergence_test-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcdc_convergence_test-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06db7b522c5c817ecd31f4062b4bf8cd1d0a64ec30cd1debcf3eb266721cf055
MD5 e790f4ab812a97368860d9edb63d077b
BLAKE2b-256 1b30da9822909db17d09ffe87575ca205b44a5b4d69daf0b58a38332622afe3e

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