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.2

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.2
File Size Uploaded Provenance Actions
radmodeling-2.1.2.tar.gz 107.1 kB With provenance Details for radmodeling-2.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 206.9 kB

Release files / radmodeling-2.1.2.tar.gz

Download URL radmodeling-2.1.2.tar.gz
Size 107.1 kB
Tags Source
SHA-256 checksum
How to use checksums
119cc465b822f0ecc449051000f334aa76aab5a46f0983a3b483fde5125d653c
BLAKE2b-256 checksum
How to use checksums
4f7e36aa5f01b73667028e0b13a806000da84595a5c9cd3872460bdb4f37c132
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 17, 2026.

Transparency log

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

Download URL radmodeling-2.1.2-py3-none-any.whl
Size 99.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5be52b186abaefdf2508226f08dd1212adca53524f9ae52be8e10862b9951d0f
BLAKE2b-256 checksum
How to use checksums
9e4fd568bdef2a9008f2a1e189203bca6ebf615298efb59c1370382c8979d4af
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 17, 2026.

Transparency log

Security for radmodeling 2.1.2

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.2.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 17, 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.2 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