This repository can be used to work with 4D flow MRI acquisitions for CFD applications.
The main provided functionalities enable to:
- read 4D flow dicom files and generate .vtk files that can be visualized in Paraview;
- extract velocity profiles from 4D flow and map them to the inlet of a target model;
- write boundary conditions files for multiple CFD software, including Fluent, CFX, Star-CCM+, OpenFoam, SimVascular
To run the scripts you need a python interpreter. The use of a conda environment is strongly recommended.
- vmtk (optional, only required for centerline extraction)
- pydicom
- pyvista
python dicoms_to_vtk.py
python plane_selection.py
python mapping.py