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.

Metadata

Release files for mapstp 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mapstp 1.2.1
File Size Uploaded
mapstp-1.2.1.tar.gz 211.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mapstp 1.2.1
File Interpreter ABI Platform
mapstp-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 425.5 kB

Release files / mapstp-1.2.1.tar.gz

Download URL mapstp-1.2.1.tar.gz
Size 211.0 kB
Tags Source
SHA-256 checksum
How to use checksums
126a4b3b4ef439c73edf147b27cf853d1cef3a990038a09b8104e8bd48b7af1f
BLAKE2b-256 checksum
How to use checksums
8568b3f983cbac3669ad052b258e10ccaa8aa807f1d3ef27b8d9b04abfdd92f7
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / mapstp-1.2.1-py3-none-any.whl

Download URL mapstp-1.2.1-py3-none-any.whl
Size 214.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66f920f41b9fb241f291f4d569bc6a43960dbf67657048daf3bb5b941a1c5782
BLAKE2b-256 checksum
How to use checksums
92ad36df0b6936b8fac0ff266879f10e44e13a10837083b253d51f2f06f14553
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.0.3

2 release files

1.0.1

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.10

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page