Skip to main content

GitHub last commit GitHub issues PyPI

RadModeling

RadModeling

RadModeling prepares CAD models for Monte Carlo radiation transport and checks the MCNP geometry obtained from them. It is a Python package with a command line tool, radmod, plus a few thin SpaceClaim tools for the interactive part of the work.

machine.step ──radmod init──▶ machine_simplified.step + machine_registry.csv
                                   │
                    simplify in SpaceClaim (or any CAD program)
                                   │
machine_simplified.step ──radmod check──▶ volumes, tori, splines, invalid solids
                        ──radmod export─▶ machine_export.step
                                   │
                         GEOUNED (or another converter)
                                   │
machine_export.mcnp ──radmod compare───▶ CAD vs MCNP volumes, density correction factors
                    ──radmod materials─▶ materials and densities in the cells
                    ──radmod slice─────▶ slice plots with the CAD overlaid
                    ──radmod atlas─────▶ PDF of slices: whole model + every problem
  • Stable component IDs: tags like Pump casing [rm12] in the component names survive any CAD program, so simplified models always match the original components.
  • One registry: an Excel-friendly CSV with materials, densities, volumes and density correction factors.
  • CAD vs MCNP comparison without running MCNP: the MCNP cells are evaluated directly to measure their volumes, their disagreement with the CAD, and to plot slices with the CAD on top.
  • Geometry tools in SpaceClaim: FMESH cards from the selected boxes, toroidal elbows to mitred cylinders.
  • SpaceClaim tools published once that always run the latest installed code.

Installation

pip install radmodeling

Where the radmod executable is blocked ("Access is denied"), write python -m radmod instead, with the same arguments.

Quick start

radmod init machine.step                       # tag + registry
# fill the 'material' column of machine_registry.csv
# simplify machine_simplified.step in SpaceClaim, save it back as STEP
radmod check machine_simplified.step
radmod export machine_simplified.step
# convert machine_export.step to machine_export.mcnp with GEOUNED
radmod compare machine_export.mcnp machine_export.step
radmod materials machine_export.mcnp -l materials.toml
radmod slice machine_export_materials.mcnp machine_export.step --normal z
radmod atlas machine_export_materials.mcnp machine_export.step

Every command finds machine_registry.csv next to its input files (-r gives another one). SpaceClaim tools: radmod spaceclaim-loaders <folder> and publish the loaders once.

Full documentation: https://radmodeling.readthedocs.io

License

Copyright 2019 F4E | European Joint Undertaking for ITER and the Development of Fusion Energy (‘Fusion for Energy’). Licensed under the EUPL, Version 1.2 (the “Licence”); see LICENSE. You may not use this work except in compliance with the Licence. Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an “AS IS” basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Licence for the specific language governing permissions and limitations under the Licence.

Metadata

Release files for radmodeling 2.1.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 radmodeling 2.1.1
File Size Uploaded Provenance Actions
radmodeling-2.1.1.tar.gz 107.2 kB With provenance Details for radmodeling-2.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 207.2 kB

Release files / radmodeling-2.1.1.tar.gz

Download URL radmodeling-2.1.1.tar.gz
Size 107.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2e4042c9fc1917373e0159bdf3b3721cd65dbeddf9fe005f8518b1942fc2bbc5
BLAKE2b-256 checksum
How to use checksums
7bcc726ddcddb34b1880373bef0acc33e070b809e7c938b14f8eaa070ec103b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / radmodeling-2.1.1-py3-none-any.whl

Download URL radmodeling-2.1.1-py3-none-any.whl
Size 100.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6df267b1d3f0c9a19e064c0080c7111fa4ebfa7c25f39c0dcd1d673dfa6926a
BLAKE2b-256 checksum
How to use checksums
08c7f096bcb6ed2b2bd78b6811d189ccbba73cd54c16393ea9fcabb138370eaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for radmodeling 2.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for radmodeling-2.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.1.1 This release

2 release files Full provenance

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