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.4.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.4-py3-none-any.whl (113.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcdc_convergence_test-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 243c62d21bcb55d15578d0b3086ca7ad2b26b824bbf6d05b33ba095d68d9111a
MD5 bdfe206c81440cee8b32765a8009f175
BLAKE2b-256 f748c5b5c120a1e952f27b8b5d0f5f750a1475cb86af1a1fbdb2c66a8f75141e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcdc_convergence_test-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 debc36d0a7b1bb76dcef5b8ab7318b969f8e32e73ddc0c8286e1a2a3d2c455d6
MD5 bab7d8b33d679790b67b958d5399a4a8
BLAKE2b-256 7c0f7c8efd24524d52dd2f4a99c3f08f8367d2c8102c6adc240709ca6e4ea112

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