At UC Irvine, I developed and tested Julia software for growing vascular networks inside XCAT digital anatomy. My work connected vessel construction, GPU computation, numerical checks, and an interactive 3D viewer.
From arteries
to veins.
XCAT is a digital model of the body. Its large coronary vessels and heart geometry define the starting points and the tissue to serve. My code extends that geometry into arterial supply and venous drainage, then checks the resulting graph and its conservation rules.
The 3D display maps simplified v33 vessel paths onto the reference heart. It keeps branches at 200 µm and above, omits shared numerical routes, and widens the tubes for clarity.
From structure
to simulation.
GPU simulation
I extended the Julia workflow from the right leg to the heart’s fixed left anterior descending, left circumflex, right coronary, and coronary venous vessels. I moved intensive routing and branch calculations to the GPU and worked on memory use, checkpoints, and exports. The v33 construction ran in 11 minutes 59.8 seconds on one NVIDIA RTX 4090.
Make the graph checkable.
An earlier right-leg routing graph had 12.9 million nodes, but its largest connected component contained only 1.68% of them. I corrected spatial indexing and neighboring-cell searches, then checked connectivity and routes against the tissue mask. I also found and corrected artificial subdivision of fixed outlets, bringing a small validation export from about 15.1 million segments to 217,903.
Into the browser.
I built a reusable WebGL2 dashboard that retains all 1,042,480 v33 forest edges, plus 732 fixed XCAT segments and six interface connectors. It supports rotation, network filters, diameter-based line widths, and PNG export. A diameter control makes the larger branches easier to inspect without changing the underlying model.
What the v33 run checked
The construction produced 521,239 arterial and 521,241 venous forest edges. Every retained heart-muscle grid cell had one supply connection and one drainage connection. I checked connectivity, tissue coverage, flow conservation, and branch diameters under Murray’s cubic branching rule. The conservative 95th-percentile distance bound for the numerical support was 0.346 mm.
- Forest edges
- 1,042,480Arterial and venous edges combined
- Tissue grid cells
- 3,709,630Each paired with supply and drainage
- Construction time
- 11m 59.8sOn one NVIDIA RTX 4090
Assigned branch diameters
Earlier right-leg diagnostics
The right-leg trials helped me inspect how branch growth changed tissue coverage and how unevenly different roots claimed territory. This 20 µm target trial added 870,960 predicted branches and reached a p95 coverage distance of 1.414 mm. The projections and audits below show the output and the distribution behind those summary values.

Independent flow audit · v31
For an earlier v31 trial, I adapted FlowContrastSim to read the full artery-to-vein graph. Under that trial’s prescribed boundary conditions, a separate audit checked the exported pressures, flows, and conservation. It also found zero reversed tissue-exchange cells and zero net-reversed arterial or venous terminals.
| Check | Result |
|---|---|
| Nodes read | 6,930,565 |
| Hydraulic edges read | 23,435,753 |
| Input verification and load | 4.83 s |
| Independent flow audit | 0.89 s |
| Relative global mass residual | 9.998 × 10−9 |
| Local tests passed | 765 / 765 |