Repository navigation
Home
Adrià Lleal Sirvent edited this page May 28, 2026
·
4 revisions
Welcome to the PFC-Tritium-Transport wiki!
PFC-Tritium-Transport estimates hydrogen (H/D/T) inventory in Plasma Facing Components for custom reactor and plasma scenarios. It drives FESTIM simulations through the HISP backend, assembling bin geometry, material properties, and pulse sequences from a compact set of CSV and Python input files.
# 1. Clone
git clone --branch main https://github.com/iterorganization/PFC-Tritium-Transport.git
cd PFC-Tritium-Transport
# 2. Ensure flexible channel priority (required for setuptools resolution)
conda config --set channel_priority flexible
# 3. Create environment (pins FESTIM, FEniCSx, PETSc, pandas, numpy, …)
conda env create -f PFC-TT.yml
conda activate PFC-TT
# 4. Register the repo path (needed by HISP at runtime)
conda env config vars set PFC_TT_PATH="$(pwd)"
conda deactivate && conda activate PFC-TT
# 5. Install HISP and h_transport_materials
pip install --no-deps git+https://github.com/AdriaLlealS/hisp.git@main
pip install h_transport_materialsSee README.md for full prerequisites.
A complete working example is in input_files_example/.
conda activate PFC-TT
python main.py
# Input folder name: input_files_example
# Simulation ID : 1| Page | Contents |
|---|---|
| Architecture | Data flow, module responsibilities, plugging in a new backend |
| Input-Files-Reference |
input_table.csv, materials.csv, mesh.py column reference |
| Pulses-and-Scenarios |
Pulse / Scenario classes, all pulse types, pulse definition modes |
| Pulse-Scaling-Factors |
heat_scaling, flux_scaling, ion_scaling_factor explained |
| Implantation-Calculator | Range, width, reflection coefficient — models, inputs, how they feed into FESTIM |
| Temperature-Models | Built-in W / B / SS models, custom temperature_models.py
|
| Running-on-Cluster | SLURM script usage, folder structure, monitoring jobs |
| Results | Output folder layout, JSON format, plotting scripts |
| Troubleshooting | Common errors and fixes |