svVascularize

Quick-start

Tip: This installation guide assumes you’re already comfortable with at least the basics of Python environments and package managers (e.g. pip or conda).
  • If you’re not sure whether Python is installed, or you’d prefer an “all-in-one” setup that manages interpreters and packages, consider installing Anaconda Distribution.
  • Alternatively, grab the latest official installer for Windows, macOS, or Linux from python.org and follow their platform-specific instructions before returning here.

If you are running Python 3.9-3.12 on x86-64 or Apple Silicon:

python -m pip install --upgrade pip  # upgrade installer
python -m pip install svv

This installs the core pre-built synthetic vascular-generation wheel from PyPI.

Need hemodynamics solvers? They are not included by default—see Optional solvers.

System requirements

Building from Source | Obtaining C++17 compiler tool-chains:

  • Windows 10/11: Download Visual Studio 2022 Community and install the “Desktop development with C++” workload.
  • macOS 11+: xcode-select --install for the Command-Line Tools, then brew install cmake ninja.
  • Ubuntu/Debian: sudo apt update && sudo apt install build-essential cmake ninja-build

After the tool-chain is in place, pip install svv will fall back to a source build automatically if no wheel matches your platform.

Choosing an installation method

MethodProsCons
Pip wheels (recommended)Fast, no compilerNo GPU/MPI extras
CondaHandles system libsFeedstock under review
Build from sourceFull controlSlowest; needs tool-chain

Installing with pip

The PyPI wheels are pre-built for every major OS and Python 3.9 – 3.12, so installs are fast and compiler-free. This route is ideal for:

Create a virtual environment first (recommended):

# Linux/macOS
python3 -m venv ~/.venvs/svv
source ~/.venvs/svv/bin/activate
pip install svv
# Windows (PowerShell)
py -m venv %USERPROFILE%\venvs\svv
%USERPROFILE%\venvs\svv\Scripts\Activate.ps1
pip install svv
Tip: Use a fresh venv or virtualenv environment for each project. Isolating dependencies prevents version clashes between svv and other python packages you might already use or need later.

Installing with conda

conda can install not only Python packages but also the C/C++ and Fortran libraries many scientific tools depend on. It excels when you need:

Until the official conda-forge feedstock is merged, you can still use a conda environment and install from PyPI inside it:

conda create -n svv python=3.11 pip
conda activate svv
pip install svv

Once the feedstock lands you'll be able to swap the final line for:

conda install -c conda-forge svv

Building from source

For advanced users and developers who want to customize svv or contribute to svv.

git clone https://github.com/SimVascular/svVascularize.git
cd svVascularize
python -m pip install -e .[dev]

Optional Hemodynamic CFD / ROM solvers

The svVascularize Python API is solver-agnostic. For flow analysis you can link to the SimVascular solver family shown in the table:

SolverDimensionBest for…Core deps
svZeroDSolver 0D lumped fast circuit models, boundary conditions NumPy & SciPy wheels
svOneDSolver 1D compliant tube network wave propagation, pulse-wave PETSc + MPI, petsc4py
svMultiPhysics 3D FEM / FSI full spatial-resolved Navier–Stokes + wall mechanics CMake ≥ 3.20, VTK ≥ 9, MPI, BLAS, LAPACK

svZeroDSolver

Pre-built wheels do not yet exist for this solver; however, installation can be accomplished in nearly the same way via pip and git:

pip install git+https://github.com/simvascular/svZeroDSolver.git

The solver exposes a run_lv_model() helper that you can couple to an svv-generated network in < 1 s.

svOneDSolver

This solver relies on PETSc and MPI. The easiest route is to download the pre-built binaries from SimTK. These binaries are compatible with Ubuntu 18/20, macOS Catalina, and Windows 10.

Warning: If you attempt a source build for a python interface, make sure mpi4py and SWIG are on your PATH first, otherwise the build will fail with missing headers.
Building from source: The python interface can be built from source code using the available CMake option buildPy; however, python bindings for the latest macOS, Linux, or Windows platforms have not been tested.

svMultiPhysics

Full 3D CFD/FSI binaries are published on SimTK. Download the latest installer for macOS/Linux platforms:

svMultiPhysics on Windows: There is currently no Windows version of svMultiPhysics. However, it can be run from a Windows Subsystem for Linux version 2 (WSL2) terminal.

Verifying the installation

After installing svVascularize, verify the installation version by running the following scripts in the Python interpreter.

import svv
print(svv.__version__)

To test that individual components of the package are correctly installed and operational run the test suite associated with the module from the terminal or shell.

python -m svv.tests

Troubleshooting & FAQ

DLL load failed? Check bitness and Python version.