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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcdc_convergence_test-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 82365c2132f6e716165f7f9a6fdc19a4ec75ecf2bbe221fb3ae4aff887d46dec
MD5 b6776620afc2f0baa282c8c62ca76f08
BLAKE2b-256 daf8c5e16b83146c21c6b60e448e703682f860a0dda56c3c5f8a26b36d3e840a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcdc_convergence_test-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7746a6accca077c85a05aedef1b1f1257e995b0530955bc28e3d5455cfc7f965
MD5 a26e568b1bf496b20caa3a3bb92601fb
BLAKE2b-256 96f7f459521f36cd44f5b02b59d7d1ea40600726a7eefa314b9f9254697ba8e4

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