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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcdc_convergence_test-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a72fd7c9c56691988da3b81bfc480f637d783dcd92f1b936a1579a69342e337f
MD5 d7be7f2db64a774a0dc502bcda9cd2f1
BLAKE2b-256 26832c8969c308efbb6127a37ca8c3b2ce96350dc09db3e4461c7e1be37988ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcdc_convergence_test-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 012d93a47ba02247243aa0fca0fd4963ed1d1d9bdb85853d8db816735c88a95d
MD5 4423f0d2e4d1b05e24c54f33d5d800a3
BLAKE2b-256 a761dca26ae32d0a9697519cd4ff1cc470654ad0f74f77ad1f8a46626ab9a11d

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