# openmsr/msre architecture

> Architecture diagram of the GitHub repository openmsr/msre, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/openmsr/msre
- Repository: https://github.com/openmsr/msre

## Overview

This repository is an MSRE engineering research collection: a detailed reactor CAD model, OpenMC analysis notebooks and geometry inputs, and separate dynamic-model implementations and benchmarks. The documented user workflow is to export CAD parts or assemblies, prepare OpenMC-readable geometry, and run reactor analyses; dynamic simulations form a separate capability. The graph preserves those branches and the heat-exchanger research material. Relationships in the dynamics branch are limited to imports and calls visible in excerpts; other notebook internals were not sampled.

Main entry points: [`h5m`](https://github.com/openmsr/msre/tree/master/h5m) (MSRE CAD model), [`openmc_notebooks/msre_criticality_test.ipynb`](https://github.com/openmsr/msre/blob/master/openmc_notebooks/msre_criticality_test.ipynb) (Criticality analysis), [`openmc_notebooks/msre_depletion_transfer_rates.ipynb`](https://github.com/openmsr/msre/blob/master/openmc_notebooks/msre_depletion_transfer_rates.ipynb) (Depletion analysis), [`dynamic_model/scipyODE_implementation/main.py`](https://github.com/openmsr/msre/blob/master/dynamic_model/scipyODE_implementation/main.py) (SciPy ODE simulation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cad["Reactor CAD"]
  node_cadmodel["MSRE CAD model"]
  node_cadgeo["Control-rod geometry"]
  node_fullgeo["Full-core geometry<br/>[msre_full.h5m]"]
end

subgraph group_openmc["OpenMC Benchmarks"]
  node_criticality["Criticality analysis"]
  node_depletion["Depletion analysis"]
  node_dockergeometry["Container geometry"]
end

subgraph group_dynamics["Dynamic Models"]
  node_dynamicparams["JITCDDE parameters<br/>[parameters.py]"]
  node_scipyparams["SciPy parameters<br/>[parameters.py]"]
  node_scipyengine["SciPy ODE simulation<br/>[main.py]"]
  node_resultsplot["Simulation plots<br/>[plot_results.py]"]
  node_u233params["U-233 parameters<br/>[parameters_U233.py]"]
  node_u235params["U-235 parameters<br/>[parameters_U235.py]"]
  node_frequency["Frequency response<br/>[frq_script.py]"]
  node_pumpbenchmark["Pump transient benchmark"]
  node_jitstudy["JITCDDE simulation study"]
end

subgraph group_thermal["Thermal Hydraulics"]
  node_heatstudy["Heat-exchanger study"]
end

node_engineer(("Engineer"))
node_onshape["Onshape CAD"]
node_converter["CAD converter"]
node_openmc["OpenMC"]

node_engineer -->|"edits model"| node_onshape
node_onshape -->|"exports parts"| node_cadmodel
node_cadmodel -->|"converts geometry"| node_converter
node_converter -.->|"writes H5M"| node_fullgeo
node_converter -.->|"writes H5M"| node_cadgeo
node_engineer -->|"runs analysis"| node_criticality
node_engineer -->|"runs analysis"| node_depletion
node_criticality -->|"uses"| node_openmc
node_depletion -->|"uses"| node_openmc
node_dynamicparams -->|"provides parameters"| node_scipyengine
node_scipyengine -.->|"produces simulation results"| node_resultsplot
node_u233params -->|"provides parameters"| node_frequency

click node_cadmodel "https://github.com/openmsr/msre/tree/master/h5m"
click node_cadgeo "https://github.com/openmsr/msre/blob/master/h5m/msre_control_rod.h5m"
click node_fullgeo "https://github.com/openmsr/msre/blob/master/h5m/msre_full.h5m"
click node_criticality "https://github.com/openmsr/msre/blob/master/openmc_notebooks/msre_criticality_test.ipynb"
click node_depletion "https://github.com/openmsr/msre/blob/master/openmc_notebooks/msre_depletion_transfer_rates.ipynb"
click node_dockergeometry "https://github.com/openmsr/msre/tree/master/msre_docker"
click node_dynamicparams "https://github.com/openmsr/msre/blob/master/dynamic_model/jitcdde_implementation/parameters.py"
click node_scipyparams "https://github.com/openmsr/msre/blob/master/dynamic_model/scipyODE_implementation/parameters.py"
click node_scipyengine "https://github.com/openmsr/msre/blob/master/dynamic_model/scipyODE_implementation/main.py"
click node_resultsplot "https://github.com/openmsr/msre/blob/master/dynamic_model/scipyODE_implementation/plot_results.py"
click node_u233params "https://github.com/openmsr/msre/blob/master/dynamic_model/msrDynamics_implementation/parameters_U233.py"
click node_u235params "https://github.com/openmsr/msre/blob/master/dynamic_model/msrDynamics_implementation/parameters_U235.py"
click node_frequency "https://github.com/openmsr/msre/blob/master/dynamic_model/msrDynamics_implementation/frq_script.py"
click node_pumpbenchmark "https://github.com/openmsr/msre/tree/master/dynamic_model/pump_transient_benchmark"
click node_jitstudy "https://github.com/openmsr/msre/blob/master/dynamic_model/jitcdde_implementation/simulation_study.ipynb"
click node_heatstudy "https://github.com/openmsr/msre/tree/master/heatexchanger"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cadmodel,node_cadgeo,node_fullgeo toneBlue
class node_criticality,node_depletion,node_dockergeometry toneAmber
class node_dynamicparams,node_scipyparams,node_scipyengine,node_resultsplot,node_u233params,node_u235params,node_frequency,node_pumpbenchmark,node_jitstudy toneMint
class node_heatstudy toneRose
class node_engineer,node_onshape,node_converter,node_openmc toneIndigo
```

## Components

### Reactor CAD

- [MSRE CAD model](https://github.com/openmsr/msre/tree/master/h5m): `h5m`
- [Control-rod geometry](https://github.com/openmsr/msre/blob/master/h5m/msre_control_rod.h5m): `h5m/msre_control_rod.h5m`
- [Full-core geometry](https://github.com/openmsr/msre/blob/master/h5m/msre_full.h5m): `h5m/msre_full.h5m`

### OpenMC Benchmarks

- [Criticality analysis](https://github.com/openmsr/msre/blob/master/openmc_notebooks/msre_criticality_test.ipynb): `openmc_notebooks/msre_criticality_test.ipynb`
- [Depletion analysis](https://github.com/openmsr/msre/blob/master/openmc_notebooks/msre_depletion_transfer_rates.ipynb): `openmc_notebooks/msre_depletion_transfer_rates.ipynb`
- [Container geometry](https://github.com/openmsr/msre/tree/master/msre_docker): `msre_docker`

### Dynamic Models

- [JITCDDE parameters](https://github.com/openmsr/msre/blob/master/dynamic_model/jitcdde_implementation/parameters.py): `dynamic_model/jitcdde_implementation/parameters.py`
- [SciPy parameters](https://github.com/openmsr/msre/blob/master/dynamic_model/scipyODE_implementation/parameters.py): `dynamic_model/scipyODE_implementation/parameters.py`
- [SciPy ODE simulation](https://github.com/openmsr/msre/blob/master/dynamic_model/scipyODE_implementation/main.py): `dynamic_model/scipyODE_implementation/main.py`
- [Simulation plots](https://github.com/openmsr/msre/blob/master/dynamic_model/scipyODE_implementation/plot_results.py): `dynamic_model/scipyODE_implementation/plot_results.py`
- [U-233 parameters](https://github.com/openmsr/msre/blob/master/dynamic_model/msrDynamics_implementation/parameters_U233.py): `dynamic_model/msrDynamics_implementation/parameters_U233.py`
- [U-235 parameters](https://github.com/openmsr/msre/blob/master/dynamic_model/msrDynamics_implementation/parameters_U235.py): `dynamic_model/msrDynamics_implementation/parameters_U235.py`
- [Frequency response](https://github.com/openmsr/msre/blob/master/dynamic_model/msrDynamics_implementation/frq_script.py): `dynamic_model/msrDynamics_implementation/frq_script.py`
- [Pump transient benchmark](https://github.com/openmsr/msre/tree/master/dynamic_model/pump_transient_benchmark): `dynamic_model/pump_transient_benchmark`
- [JITCDDE simulation study](https://github.com/openmsr/msre/blob/master/dynamic_model/jitcdde_implementation/simulation_study.ipynb): `dynamic_model/jitcdde_implementation/simulation_study.ipynb`

### Thermal Hydraulics

- [Heat-exchanger study](https://github.com/openmsr/msre/tree/master/heatexchanger): `heatexchanger`

### Other components

- **Engineer**
- **Onshape CAD**
- **CAD converter**
- **OpenMC**

## Connections

- Engineer → Onshape CAD: edits model (evidence: `README.md`)
- Onshape CAD → MSRE CAD model: exports parts (evidence: `README.md`)
- MSRE CAD model → CAD converter: converts geometry (evidence: `README.md`)
- CAD converter → Full-core geometry: writes H5M
- CAD converter → Control-rod geometry: writes H5M
- Engineer → Criticality analysis: runs analysis (evidence: `README.md`)
- Engineer → Depletion analysis: runs analysis (evidence: `README.md`)
- Criticality analysis → OpenMC: uses (evidence: `README.md`)
- Depletion analysis → OpenMC: uses (evidence: `README.md`)
- JITCDDE parameters → SciPy ODE simulation: provides parameters (evidence: `dynamic_model/scipyODE_implementation/main.py`)
- SciPy ODE simulation → Simulation plots: produces simulation results
- U-233 parameters → Frequency response: provides parameters (evidence: `dynamic_model/msrDynamics_implementation/frq_script.py`)
