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).
Metadata
Release files for mcrp-cgam 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| mcrp_cgam-0.2.0-cp27-cp27mu-manylinux2010_x86_64.whl | CPython 2.7 | CPython 2.7 pymalloc wide-unicode | Linux glibc 2.12+ x86-64 | Details |
| mcrp_cgam-0.2.0-cp27-cp27mu-manylinux1_x86_64.whl | CPython 2.7 | CPython 2.7 pymalloc wide-unicode | Linux glibc 2.5+ x86-64 | Details |
| mcrp_cgam-0.2.0-cp27-cp27m-manylinux2010_x86_64.whl | CPython 2.7 | CPython 2.7 pymalloc | Linux glibc 2.12+ x86-64 | Details |
| mcrp_cgam-0.2.0-cp27-cp27m-manylinux1_x86_64.whl | CPython 2.7 | CPython 2.7 pymalloc | Linux glibc 2.5+ x86-64 | Details |
Total release size: 9.8 MB
Release files / mcrp_cgam-0.2.0-cp27-cp27mu-manylinux2010_x86_64.whl
| Download URL | mcrp_cgam-0.2.0-cp27-cp27mu-manylinux2010_x86_64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
3833427184799d113a06ad1c34126d397cd0b71cc9df41c8b22f658b1d3344fa
|
|
BLAKE2b-256 checksum How to use checksums |
0cda59578941e2994855a97c29baa9e203489a8702e9fdbbba880b22e9bd4da0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / mcrp_cgam-0.2.0-cp27-cp27mu-manylinux1_x86_64.whl
| Download URL | mcrp_cgam-0.2.0-cp27-cp27mu-manylinux1_x86_64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 2.7 CPython 2.7 pymalloc wide-unicode Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
a0259a657b2aea18c17c6263173a217177e6e64ad79c7508081f7c79adf9cde7
|
|
BLAKE2b-256 checksum How to use checksums |
cc0076f517a3a62d39ead3bf495130e3323a3b0cb539e1361ae047d2e769e79f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / mcrp_cgam-0.2.0-cp27-cp27m-manylinux2010_x86_64.whl
| Download URL | mcrp_cgam-0.2.0-cp27-cp27m-manylinux2010_x86_64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 2.7 CPython 2.7 pymalloc Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
827409f8bc03a00741c5314cb711496c8efa482819480326f0bfd2a271eb6eb2
|
|
BLAKE2b-256 checksum How to use checksums |
ffa5744dc94dc57feb451e171f739f4965f714075645f92f71c6a5496c91b2f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / mcrp_cgam-0.2.0-cp27-cp27m-manylinux1_x86_64.whl
| Download URL | mcrp_cgam-0.2.0-cp27-cp27m-manylinux1_x86_64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 2.7 CPython 2.7 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
85e7654b15757c259c0c5e168365c231d86d4400c6a616732476b48c5c08788c
|
|
BLAKE2b-256 checksum How to use checksums |
4e968ae5d88d812e914dd28814f7bca353af44a2c4c5e476bdb060c63e4c7980
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|