SkillAgentSearch skills...

Flow4D

Python code for processing 4D flow dicoms and write velocity profiles for CFD simulations.

Install / Use

/learn @saitta-s/Flow4D
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

flow4D

This repository can be used to work with 4D flow MRI acquisitions for CFD applications. <br/>

Cite the code: DOI <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
View on GitHub
GitHub Stars26
CategoryDevelopment
Updated18d ago
Forks7

Languages

Python

Security Score

90/100

Audited on Mar 13, 2026

No findings