Convert CSG geometry into different formats
Project description
csg2csg
A tool to translate common Monte Carlo geometry formats between each other.
How to use
Right now the code is petty rough; as is the install procedure.
Install using pip
pip3 install csg2csg --user
Run csg2csg.py -i filename
Caveats
Several! Right now only MCNP can be read, and then written to MCNP Serpent and OpenMC. When the file can be read only a subset of MCNP surfaces can be read
MCNP Surfaces Supported
- P,PX,PY,PZ
- S SO SX SY SZ
- CX CY CZ C/X C/Y C/Z
- SQ
- GQ
- KX, KY, KZ
- TX TY TZ
- Macrobodies - RPP, SPH and RCC
- X, Y, Z - one and two coefficent only
MCNP Surfaces Not Yet Supported
- X, Y, Z - three coefficient
- Macrobodies - BOX, RHP, HEX, REC, TRC, ELL, WEB, ARB
Tranforms
- Are read and interpretted, but nothing is done with them, in the future codes that support cell transformations will use it, but right now MCNP is the only code that does surface transformations
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
csg2csg-0.0.28.tar.gz
(68.3 kB
view details)
File details
Details for the file csg2csg-0.0.28.tar.gz
.
File metadata
- Download URL: csg2csg-0.0.28.tar.gz
- Upload date:
- Size: 68.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c43d1d452bfe4a1ae5690d8ce95d4954df0aed1f016cf26a3d1fc763101d3230 |
|
MD5 | 0bc8715e14c986fe2ae9f500c787e21d |
|
BLAKE2b-256 | 05a18c1fb9a6762ba95bce9d741d6a0dfc1500b4d203c1ea0da90bd8497f0281 |