Flow4D
Python code for processing 4D flow dicoms and write velocity profiles for CFD simulations.
Install / Use
/learn @saitta-s/Flow4DREADME
flow4D
This repository can be used to work with 4D flow MRI acquisitions for CFD applications. <br/>
Features
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
Installation
To run the scripts you need a python interpreter. The use of a conda environment is strongly recommended.
Dependencies
- vmtk (optional, only required for centerline extraction)
- pydicom
- pyvista
Read and process 4D flow dicom files
python dicoms_to_vtk.py
Interactive plane selection and velocity profile extraction
python plane_selection.py
Map precomputed velocity profiles to a target inlet shape
python mapping.py
