Skip to main content

MCNP-related packages. Cell geometry algebraic manipulation

Project description

MCNP-related packaged: Cell geometry algebraic manipulations

Description of cell geometry can be interpreted as mathematical expression containing addition (union) and multiplication (intersection) operations. This package provides functions to parse the cell geometry description into an algebraic expression and manipulate the latter.

This is a needed part for MCNP -> CAD geometry converter, see https://github.com/travleev/mcnp2spaceclaim. Example MCNp input files that can be processed with mcrp_cgam can be found there.

To generate json file needed for MCNP -> CAD conversion, use the script provided with this package::

    >cgam input [-maxterms 100] [-writeby model]

The first command line argument, input is the name of MCNP input file. The other arguments are optional.

An integer number following the -maxterms keyword specifies the maximal number of pieces that represent the cell's geometry. In current implementation a cell consisting of an intersection of unions is rearranged into a union of intersections. For some cells, the number of terms in the latter representation can be huge therefore cells with the number of terms exceeding the value specified by -maxterms are skipped.

The keyword -writeby can be followed by one of the following strings: model, cell or part, or their combination (written together, e.g. modelcell). When model is given, a single json file containing all cells is generated. When cell is given, a separate json file is generated for every cell. When part is given, a separate json file is generated for every cell's part (the part corresponds to each term in the union representation of the cell geometry, see above).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

mcrp_cgam-0.2.0-cp27-cp27mu-manylinux2010_x86_64.whl (2.5 MB view details)

Uploaded CPython 2.7mu manylinux: glibc 2.12+ x86-64

mcrp_cgam-0.2.0-cp27-cp27mu-manylinux1_x86_64.whl (2.5 MB view details)

Uploaded CPython 2.7mu

mcrp_cgam-0.2.0-cp27-cp27m-manylinux2010_x86_64.whl (2.5 MB view details)

Uploaded CPython 2.7m manylinux: glibc 2.12+ x86-64

mcrp_cgam-0.2.0-cp27-cp27m-manylinux1_x86_64.whl (2.5 MB view details)

Uploaded CPython 2.7m

File details

Details for the file mcrp_cgam-0.2.0-cp27-cp27mu-manylinux2010_x86_64.whl.

File metadata

  • Download URL: mcrp_cgam-0.2.0-cp27-cp27mu-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: CPython 2.7mu, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for mcrp_cgam-0.2.0-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3833427184799d113a06ad1c34126d397cd0b71cc9df41c8b22f658b1d3344fa
MD5 4f64ecc111ce69db748fc99719963ca7
BLAKE2b-256 0cda59578941e2994855a97c29baa9e203489a8702e9fdbbba880b22e9bd4da0

See more details on using hashes here.

File details

Details for the file mcrp_cgam-0.2.0-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: mcrp_cgam-0.2.0-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for mcrp_cgam-0.2.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a0259a657b2aea18c17c6263173a217177e6e64ad79c7508081f7c79adf9cde7
MD5 368da5c48a8f5aec66c7e188203bcfaf
BLAKE2b-256 cc0076f517a3a62d39ead3bf495130e3323a3b0cb539e1361ae047d2e769e79f

See more details on using hashes here.

File details

Details for the file mcrp_cgam-0.2.0-cp27-cp27m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: mcrp_cgam-0.2.0-cp27-cp27m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: CPython 2.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for mcrp_cgam-0.2.0-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 827409f8bc03a00741c5314cb711496c8efa482819480326f0bfd2a271eb6eb2
MD5 8bcdf4863e60412ff4adccf9028aca07
BLAKE2b-256 ffa5744dc94dc57feb451e171f739f4965f714075645f92f71c6a5496c91b2f8

See more details on using hashes here.

File details

Details for the file mcrp_cgam-0.2.0-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: mcrp_cgam-0.2.0-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for mcrp_cgam-0.2.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 85e7654b15757c259c0c5e168365c231d86d4400c6a616732476b48c5c08788c
MD5 e1bae33656bc06f456091a6c9f9464ce
BLAKE2b-256 4e968ae5d88d812e914dd28814f7bca353af44a2c4c5e476bdb060c63e4c7980

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page