Skip to main content

PathSim-Fusion Logo

Fusion fuel cycle and balance-of-plant blocks for PathSim

PyPI License

Homepage • Documentation • GitHub


PathSim-Fusion extends the PathSim simulation framework with specialized blocks. All blocks follow the standard PathSim block interface and can be connected into simulation diagrams.

Blocks

Block Description Key Parameters
IonisationChamber Flow-through tritium ionisation chamber (signal = ε(c)·c, flux passes through) detection_efficiency, func_efficiency, detection_threshold
Bubbler4 Four-vial tritium sampling bubbler (soluble + insoluble chains, catalytic conversion, scheduled vial replacement) conversion_efficiency, vial_efficiency, replacement_times
GLC Counter-current bubble-column gas–liquid contactor for tritium extraction from LiPb (Malara 1995, on BVP1D) P_in, L, D, T, BCs
FuelCycleComponent Lumped fuel cycle component with a residence time (dI/dt = inflows + S − (1+ε)·I/τ − λ·I; outputs inventory, outflow, loss) tau, loss_fraction, decay_constant, source_term, initial_value
BreedingBlanket Breeding blanket, residence time model (outputs inventory, outflow, loss) tau
PlasmaFacingComponent First wall or divertor, residence time model tau
TokamakExhaustProcessing Exhaust processing (fuel cleanup), residence time model tau
DetritiationSystem Detritiation system, residence time model tau
TritiumExtractionSystem Tritium extraction, residence time model with an extraction efficiency (outlets extracted, residual) tau, efficiency
HeatExchangerPermeation Heat exchanger tritium holdup with a permeated fraction (outlets permeated, returned) tau, permeation_fraction
FusionChamberPump Fusion chamber vacuum pump with direct internal recycling (outlets recycled, exhaust) tau, dir_fraction
IsotopeSeparationSystem Isotope separation, residence time model with a waste fraction (outlets product, waste) tau, waste_fraction
StorageAndManagement Fuel storage: accumulates its inflows, withdrawals are negative inflows, decays decay_constant, initial_value
Plasma Plasma fuel holdup, residence time model tau
FuellingSystem Fuelling system, residence time model tau
DirectInternalRecycling Direct internal recycling loop, residence time model tau
IsotopeAdjustmentSystem Isotope adjustment system, residence time model tau
SecondaryPump Backing and roughing pumps, residence time model tau
CoolantPurification Coolant purification system, residence time model tau
WaterDetritiationSystem Water detritiation system, residence time model tau
GasDetritiationSystem Gas detritiation system, residence time model tau
AirDetritiationSystem Air detritiation system, residence time model tau
Stack Stack: accumulates the tritium released to the environment decay_constant, initial_value

Install

pip install pathsim-fusion

Quick Example

from pathsim import Simulation, Connection
from pathsim.blocks import Constant, Source, Scope
from pathsim_fusion import IonisationChamber

flux = Source(lambda t: 1e-3 * float(t > 1))  # tritium flux, step at t = 1
flow = Constant(0.5)  # carrier gas flow rate
ic = IonisationChamber(detection_efficiency=0.9)
sco = Scope(labels=["flux", "signal"])

sim = Simulation(
    blocks=[flux, flow, ic, sco],
    connections=[
        Connection(flux, ic["flux_in"], sco[0]),
        Connection(flow, ic["flow_rate"]),
        Connection(ic["signal"], sco[1]),
    ],
    dt=0.01,
)
sim.run(5)
sco.plot()

Development

pip install -e ".[test,lint]" mypy
ruff check .                # lint
ruff format .               # format
mypy src/pathsim_fusion    # type check
pytest tests/ -v            # run tests

License

MIT

Metadata

Release files for pathsim-fusion 0.2.0

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

Source distribution (sdist)

Source distribution for pathsim-fusion 0.2.0
File Size Uploaded Provenance Actions
pathsim_fusion-0.2.0.tar.gz 93.5 kB With provenance Details for pathsim_fusion-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pathsim-fusion 0.2.0
File Interpreter ABI Platform Actions
pathsim_fusion-0.2.0-py3-none-any.whl Python 3 none any Details for pathsim_fusion-0.2.0-py3-none-any.whl

Total release size: 147.5 kB

Release files / pathsim_fusion-0.2.0.tar.gz

Download URL pathsim_fusion-0.2.0.tar.gz
Size 93.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bb6d8e1bd19e0e69df930b200b7fea70a97c9316afe440e1c54b5e7513e27b34
BLAKE2b-256 checksum
How to use checksums
5723c173670e566899b43289fae33c9e2e661b64db557e56923a9686c1291bfe
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 25, 2026.

Transparency log

Release files / pathsim_fusion-0.2.0-py3-none-any.whl

Download URL pathsim_fusion-0.2.0-py3-none-any.whl
Size 54.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28396a500bec0dbc60ac68db4db170a6411ba292d679885b1b336048278bbefb
BLAKE2b-256 checksum
How to use checksums
1490ac49b5b1f316399be22de50eceefaf1acdcc5feb55e5328999aa3f73cf14
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 25, 2026.

Transparency log

Security for pathsim-fusion 0.2.0

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 pathsim_fusion-0.2.0.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 25, 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.

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