Skip to main content

Maintained License PyPI - Python Version PyPI Documentation Status

Description

Problem #1

You are an MCNP model developer. You have created simplified 3D CAD model using SpaceClaim, saved it to STP file, then converted it using SuperMC to an MCNP model. At this moment the MCNP model doesn’t have any information on relation of the MCNP came from cells to the CAD components, there’s no materials and densities in the cell specifications. The SuperMC (for the time of writing this) doesn’t transfer this information on exporting to MCNP model.

Problem #2

You have to provide results of neutron analysis in correspondence with 3D CAD model components. For example, you have to create a table describing activation of every component. To do this, you need some tools to associate CAD component with corresponding MCNP cells. Using this table the results of computation for MCNP cells can be aggregated to values for corresponding CAD component.

Solution

Using SpaceClaim you can add additional properties to components directly in STP file. The properties include: used material, density correction factor, classification tag. The properties are specified as a special label, which you can add to the components names. The properties are propagated over the CAD tree hierarchy from top to down and can be overridden on lower levels with more specific values. Using SpaceClaim for this is rather intuitive.

The using mapstp you can transfer this information from STP to MCNP: The mapstp:

  • sets material numbers and densities in all the cells, where it was specified

  • adds $-comment after each cell denoting its path in STP, with tag “stp:”,this lines can be easily removed later, if not needed

  • adds materials specifications, if they are available for mapstp

  • creates separate accompanying excel file with list of cells, applied materials, densities and correction factors, classification tag, and paths in STP

More details in documentation.

Contributing

Tests https://codecov.io/gh/MC-kit/map-stp/branch/master/graph/badge.svg pre-commit https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json

Some specific: in development environment we use uv, just, ruff.

To setup development environment, run:

just install | reinstall

To build documentation, run:

just docs        # - for local online docs rendering, while editing
just docs-build  # - to build documentation

To release, run:

just bump [major|minor|patch]  # - in `devel` branch

Then merge devel to master (via Pull Request) and if all the checks are passed create Release. Manually.

Download files

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

Source Distribution

mapstp-1.2.1.tar.gz (211.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mapstp-1.2.1-py3-none-any.whl (214.5 kB view details)

Uploaded Python 3

File details

Details for the file mapstp-1.2.1.tar.gz.

File metadata

  • Download URL: mapstp-1.2.1.tar.gz
  • Upload date:
  • Size: 211.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mapstp-1.2.1.tar.gz
Algorithm Hash digest
SHA256 126a4b3b4ef439c73edf147b27cf853d1cef3a990038a09b8104e8bd48b7af1f
MD5 ee7f064877d596fde3fc5f376773789f
BLAKE2b-256 8568b3f983cbac3669ad052b258e10ccaa8aa807f1d3ef27b8d9b04abfdd92f7

See more details on using hashes here.

File details

Details for the file mapstp-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: mapstp-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 214.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mapstp-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66f920f41b9fb241f291f4d569bc6a43960dbf67657048daf3bb5b941a1c5782
MD5 c5ebcd45e290692ceb379b4b368d1fff
BLAKE2b-256 92ad36df0b6936b8fac0ff266879f10e44e13a10837083b253d51f2f06f14553

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 files

1.0.3

2 files

1.0.1

2 files

0.3.11

2 files

0.3.10

2 files

0.3.9

2 files

0.3.8

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.10

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page