Vous êtes sur la page 1sur 1

Hemodynamic Modeling of Intracranial Aneurysms Using Open Source Computational Fluid Dynamics Software

Mathew Bligh (MD) , Allan Demtrio Sales de Lima Dias (B.Eng) , Rodrigo Del Rio (B.Eng) , Julio Militzer (Ph.D) , Jai Shankar (MD)
1 2 2 3 1
1
Department of Diagnostic Radiology, Dalhousie University, Halifax, Nova Scotia, Canada; Universidade Estadual Paulista, Ilha Solteira, So Paulo, Brazil; Department of Mechanical Engineering, Dalhousie University, Halifax, Nova Scotia, Canada
2 3

INTRODUCTION SOURCE DATA MESH GENERATION POST-PROCESSING


Background Imaging Modality Meshing with VMTK Data Visualization and Analysis
Intracranial aneurysm rupture causes 80-85% of non-traumatic subarachnoid hemorrhage (SAH).1 Vascular CFD is most often performed using meshes with edge length 0.1-
Accurate surface model and mesh generation rely on cross-sectional Simulation results are visualized in Paraview, opened from the terminal
Unruptured intracranial aneurysms (UIAs) have a general population prevalence of at least 2-5%.
imaging with high spatial and contrast resolution. This can be 0.2 mm.16-17 Further increases in cell density produce diminishing returns in precision within the simulation folder using the command paraFoam.
Morbidity and mortality remain high despite improvements in diagnosis and therapy.2
accomplished with CTA, MRA or 3DRA. (model accuracy is limited largely by the spatial resolution of the source data) and significantly Velocity data can be visualized in a variety of ways using spatial mapping
Computed tomography angiography (CTA) and magnetic resonance angiography (MRA) have largely
3DRA provides the highest spatial resolution and allows easier increase computation time. over a defined volume or plane of interest.
supplanted catheter angiography in the initial acute diagnostic setting, but the latter remains important
for subsequent management.2 Ruptured middle cerebral artery vessel segmentation due to lack of interfering non-vascular Some researchers use uniform meshes, where all cells are equally sized, which is the simplest case to Streamlines and directional arrow glyphs can also be plotted to define
Current treatment options in both the acute and elective settings include surgical clipping and aneurysm with active hemorrhage. anatomy. This is the preferred source imaging of many CFD studies. produce. This can be done using vmtkmeshgenerator using a defined edge length. paths of flow. This is a useful way to communicate data and to visually
endovascular coiling or flow diverter placement.3 Ostium
However, it requires an invasive procedure and is not typically the A boundary layer (BL) can be defined to incorporate smaller cells near the vessel/aneurysm wall, assess complexity of flow.
Parent vessel
Incidental detection of UIAs is becoming more common due to prevalent use of CTA and MRA.
Dome
modality of initial detection. Ultimately, valid CFD simulations providing increased spatial resolution where accuracy is critical while not significantly inreasing Pressure and wall shear stress (WSS) data can similarly be mapped over
While the decision to treat or simply observe a UIA may be clear if the aneurysm is either large or small, derived from non-invasive imaging hold the most potential utility. the computational load.17-18 This is done within the vmtkmeshgenerator script. Boundary layers the model surface or within the flow field.
it can be very difficult for mid-sized aneurysms (such as in the 5-8 mm range) when the risk to benefit MRA can be performed using time-of-flight imaging without are not typically used at the inlet and outlet faces as this would not significantly alter the solution.
ratio is less clear.1-3
C
administration of intravenous gadolinium contrast, which may be It is critical to scale the mesh to the units used by the CFD solver prior to the simulation.
Improving rupture risk models is of great interest and high importance due to the high stakes involved in B the only feasible modality in patients with renal failure or other For example, if the units of the source data are millimetres while the solver uses metres,
therapeutic decision-making.3 contraindications. the mesh should be scaled by a factor of 0.001. This can be accomplished with the
Geometric factors such as size ratio and aspect ratio may improve prediction, but likely do not tell the A = vessel diameter For this example, a CTA of the brain demonstrating an incidental CTA of the circle of willis showing an unruptured 8 mm basilar tip vmtkmeshscaling script.
A
whole story.4-5 B = aneurysm height
C = aneurysm diameter non-ruptured 8 mm basilar tip aneurysm was used. aneurysm (arrow). This is the demonstration case. The BL provides higher near-wall
Adding hemodynamic data to rupture risk models may improve prediction, and is a primary goal of B/A = size ratio
resolution normal to the surface, where the
Source images
B/C = aspect ratio
computational modeling. flow gradient produces wall shear stress.
Uniform mesh with 0.15 mm cell edge length
Computational Fluid Dynamics (CFD) CTA studies are typically acquired using mutidetector CT with isotropic voxel
The number of divisions and relative cell
heights of the BL are user-defined.
and a three-level BL produced in VMTK.
This mesh contains 1.9 million cells.
CFD is a numerical method of solving fluid mechanics problems using the Navier-Stokes (NS) size and include axial reconstructions with 0.625-1 mm slice thickness.
equations (a series of time-dependent partial differential equations describing conservation of mass, These images are ideal for vessel segmentation. Thicker reconstructions such
momentum and energy for a viscous fluid). at 3 or 5 mm should not be used as these do not provide adequate spatial A) Sagittal cutplane displaying the inflow jet at select timepoints in the cardiac cycle; B) Normalized
Mainly applied to engineering problems until early 2000s when the spatial resolution of CT resolution for accurate modeling. time-dependent VFR; C) Surface map of WSS at corresponding time points. Note that WSS is
and MRI could provide adequate spatial resolution high-fidelity vascular modeling. CTA studies with suboptimal contrast opacification, extensive atherosclerotic normalized to density in OpenFOAM by default
CFD provides hemodynamic data with superior spatial and temporal resolution to any calcification or beam hardening artifact may also be inadequate for model
current in-vivo medical imaging technique, and has been validated against phase contrast extraction.
MRI and physical vascular phantoms.6-7
In this guide, we describe the basic approach to computational aneurysm modeling using
exclusively open source software. More detailed instruction is provided in referenced
material. Meshing with Netgen Select cutplanes can be assessed within the model volume. This is useful to define the inflow/
For additional background information, please see our other poster at ASNR 2015:
Models can be exported to the .stl format and processed using Netgen. outflow profile at the aneurysm neck. Derived data can be used to calculate changes in kinetic
Computational Flow Modeling of Intracranial Aneurysms for Rupture Prediction Note 3 mm anterior energy among other quantities.
communicating artery
This program includes a graphical user interface (GUI) with easier
aneurysm manipulation and mesh refinement capabilities. Netgen allows local
Probes can be placed at any desired location and data can be plotted over time in
manipulation of imperfections in the mesh and increased cell density at
graphical format.

SOFTWARE
locations of interest.9
Using the velocity and pressure solution, derived quantities such as WSS can be
Rotational acquisition with 3D reconstruction from a right Netgen produces a radius-adaptive mesh by
default, assigning high cell density to regions
retrospectively calculated in OpenFOAM for the entire flow environment.
internal carotid artery (ICA) contrast injection at catheter Time-of-flight MRA axial maximal intensity projection (MIP) of higher surface curvature. This can also be
angiography. showing a 1.5 cm basilar tip aneurysm (arrow). accomplished with VMTK using the terminal.

All software packages described in this guide are available for free download. Please see the available documentation Streamlines can be color-mapped
to velocity
for details on download, installation and use. Many

OPERATING SYSTEM (OS)


The chosen CFD package (OpenFOAM, see below) is native to Linux, an open source OS that
ANEURYSM SEGMENTATION CFD SIMULATION
& MODEL PROCESSING
supports many other engineering and multiphysics software packages. Velocity streamlines are a useful visual tool to communicate flow
Ubuntu (Canonical, Lexington, MA, USA) is a popular Linux build and is used by our group. Setting Up the Simulation Folder WSS and other calculated data can be plotted
vs time at a selected cell surface. This allows
patterns, but do not necessarily represent the entire flow field. They
can help define the number of vortices within the aneurysm.
An alternative option is CAE (Computer Aided Engineering) Linux (NRCTech, Lausanne, focused investigation of a point of interest
Switzerland), which comes with a wide variety of computer aided design (CAD) and CFD software OpenFOAM is operated via command line entry at the terminal. All required input files must be
such as a known rupture point.
pre-installed. This includes OpenFOAM and modeling/meshing applications such as Salome and present in the active folder, defining boundary conditions, mesh geometry, timestep information and
solver variables.10
Netgen. However, user support for CAE Linux is limited.
Linux can be installed alongside other operating systems. Alternatively, Linux can be run on a
Volume of Interest (VOI) extraction Many solvers are included in OpenFOAM, and it is possible to users to generate their own. Of key

CONCLUSIONS
virtual machine within another OS environment using a tool such as VirtualBox (Oracle, Redwood importance is whether or not turbulance modeling is needed. This depends on the Reynolds number,
Digital Imaging and Communications in Medicine (DICOM) images are exported
Shores, CA, USA). However, this is less desirable due to reduced system resources. which relates inertial to viscous forces and predicts the likelihood of turbulent flow:
from the Picture Archiving and Communication System (PACS) for processing
in VMTK. These contain Hounsfield unit density information needed for vessel
segmentation.8
ANEURYSM/VESSEL SEGMENTATION & MODEL Using the vmtkimagevoiselector script, a VOI containing the aneurysm and parent
vessel(s) is selected for subsequent processing. The included parent vessel should
where v=velocity, d
h
=hydraulic diameter (simply diameter for a round pipe), =kinematic viscosity CFD can be used to assess the hemodynamic environment within intracranial aneurysms. Many studies
have been conducted aiming to identify hemodynamic risk factors for aneurysm rupture with some success.
CREATION ideally consist of at least a 10:1 length-to-diameter ratio for subsequent flow modeling, Typical vascular simulations fall in the laminar flow range (Re < 2300) and turbulence modeling is not
One of two outlet boundaries displayed in VMTK
using vmtkmeshboundaryinspector Flow complexity, inflow jet impingement, WSS and hydrostatic pressure all likely play a role but the exact
but this may not be feasible depending on anatomy. required. contribution of these factors has not been fully determined.
Vascular Modeling Toolkit (VMTK, Orobix, Bergamo, Italy) is an open source package of scripts Volumetric CT DICOM data are reviewed in The pimpleFoam solver is an efficient, robust algorithm for transient incompressible flows that has the
for visualization, volume of interest (VOI) selection, aneurysm and vessel segmentation, model three planes and a VOI is selected advantage of an adjustable timestep. This can operate with or without turbulence modeling. Further study is required to elucidate high-risk hemodynamic factors before CFD can be incorporated routinely
pre-processing and mesh generation.8 into rupture prediction for UIAs.
Accepts DICOM files from CTA, MRA and three-dimensional rotational angiography (3DRA) Aneurysm & Vessel Segmentation Boundary Conditions Because many commercial CFD packages are expensive and not available to all interested researchers, we used
studies and provides a wealth of image and model processing tools. exclusively open source software to demonstrate the ability to produce CFD simulations without committing to
Intuitive viewer application allows easy manipulation of image sets and model files. Vascular structures are extracted from the VOI using the vmtklevelsetsegmentation The flow must be defined in relation to velocity or pressure at the inlet, outlet
script. This can be accomplished using one or more of several supported region-growing additional financial cost.
Exports to proprietary mesh formats for use with various commercial packages. and vessel wall. Pulsatile flow at the inlet approximating that expected in the
algorithms. ICA or vertebral artery (VA) distribution is typically employed. This is usually This guide provides a basic overview of the key components of CFD simulation for intracranial aneurysms, with
For this example, the fast marching algorithm was used, which requires user selection of derived from studies of normal subjects as it is unfeasible to obtain reliable data the goal of introducing interested researchers to the process. More detailed instruction for each step can be
MESH GENERATION seed and target points. The region covered by an advancing front between seed and target from each patient for simulation purposes. found in the documentation for the respective software packages, which can be accessed through the provided
points is included in the initial model. The aneurysm-vessel complex can be segmented in Ford et al. (2005) measured ICA and VA volume flow rates (VFR) for 17 young, matrix barcodes. For additional information, check out CFD Online, an extensive free resource with an active
The region-growing algorithm propagates a front multiple steps using this algorithm. online community.
VMTK can be used for mesh generation and allows incorportation of boundary layers, healthy subjects using phase contrast MRI, reported as mean normalized VFR
between seed and target nodes to define a volume. The raw segmented volume is then deformed to create a regular, smooth surface for at 17 feature points over the cardiac cycle. This data can be interpolated using Downloadable cubic
radius adaptive cell cell size and inlet/outlet extensions.8
subsequent processing. This is accomplished by defining degrees of propagation, the cubic spline method to estimate VFR across the cardiac cycle with desired splines spreadsheet Disclosure statement: None of the authors have any commercial interest
Netgen (developed by Joachim Schberl at Johannes Kepler University, Linz, Austria) is regularization and attenuation within the vmtklevelsetsegmentation program. This may program with examples
temporal resolution. Absolute VFRs are also reported by Ford et al. and can be Post-coiling digital subtraction angiogram (DSA) in any of the software discussed in this exhibit.
another open source meshing tool that integrates well with VMTK. It provides a graphical result in loss of aneurysm features and difficult with poor quality source data.8 demonstrating the treated unruptured basilar tip aneurysm.
user interface (GUI) and allows easy manipulation of mesh cell density and boundary multiplied by the normalized waveform and inlet cross section to determine
velocity.19 Example file located in
conditions.9 Surface Smoothing and Clipping Alternatively, inlet velocities between simulations can be normalized to acheive the simulation directory
defining the velocity

REFERENCES
Irregularities in the surface model are reduced using the a defined WSS at the parent vessel wall shortly beyond the boundary.16 boundary conditions.
Where multiple inlets exist, relative contribution can be estimated in proportion
COMPUTATIONAL SIMULATIONS vmtksurfacesmoothing script. This further refines the surface to
allow high quality mesh generation. Smoothing parameters can be to boundary area but accuracy may be limited as the aneurysm inflow/outflow
Further instruction is
found in the OpenFOAM
profile can be significantly affected by variation in this balance20. documentation and
adjusted to avoid loss of true surface features.
OpenFOAM (OpenCFD, ESI Group, Paris, France) is a well-established C++-based open The outlet boundary can be defined by zero pressure as the flow is driven by the example cases.
To define inlet and outlet boundary surfaces, the ends of the parent vessels are
source CFD software package with numerous applications capable of solving a multitude removed using vmtksurfaceclipper. Boundaries can then be recognized and are inlet condition. The wall boundary is defined as zero velocity (no slip). 1. Brown, R. D., & Broderick, J. P. (2014). Unruptured intracranial aneurysms: epidemiology, natural history, management options, and familial screening. The Lancet Neurology, 13(4), 393404.

of computational fluid problems.10 incorporated into the mesh.8


2. Qureshi, A. I., Janardhan, V., Hanel, R. A., & Lanzino, G. (2007). Comparison of endovascular and surgical treatments for intracranial aneurysms: an evidence-based review. The Lancet Neu-
rology, 6(9), 816825.
Incorporates pre- and post-processing capabilities. Simulation Parameters 3. Greving, J. P., Wermer, M. J. H., Brown, R. D., Morita, A., Juvela, S., Yonekura, M., Algra, A. (2014). Development of the PHASES score for prediction of risk of rupture of intracranial aneu-
rysms: a pooled analysis of six prospective cohort studies. The Lancet Neurology, 13(1), 5966.
Large online community with many tutorials and in-person courses available for Surface map showing areas affected Clipping vessel ends opens the 4.
5.
Rahman M, Smietana J, Hauck E, et al. Size ratio correlates with intracranial aneurysm rupture status: a prospective study. Stroke. 2010;41(5):916-20.
Sadasivan C, Fiorella DJ, Woo HH, Lieber BB. Physical factors effecting cerebral aneurysm pathophysiology. Ann Biomed Eng. 2013;41(7):1347-65.
researchers.11 by smoothing algorithm. model and defines inlet/outlet Density () and kinematic viscosity () for blood can be defined as =1056 kg/m3 and =3.5x10-3 N/m2s.17 6. Bords, R., Seshadhri, S., Janiga, G., Skalej, M., & Thvenin, D. (2012). Experimental validation of numerical simulations on a cerebral aneurysm phantom model. Interventional Medicine and
boundaries. Many solvers require input of a fixed timestep, which defines the frequency of calculations and has major Applied Science, 4(4), 193205.
Results have been shown to compare well with other available commercial packages for implications for computation time. The maximum timestep to permit a convergent solution is defined by the
7. Berg P, Stucht D, Janiga G, Beuing O, Speck O, Thvenin D. Cerebral blood flow in a healthy Circle of Willis and two intracranial aneurysms: computational fluid dynamics versus four-dimen-

Flow Extensions
sional phase-contrast magnetic resonance imaging. J Biomech Eng. 2014;136(4)
vascular CFD.12 Courant number (C), which relates maximum velocity to cell edge length: 8. Vascular Modeling Toolkit Tutorials. Available at: http://www.vmtk.org/tutorials/. Accessed March 30, 2015.
9. Netgen Mesh Generator. Available at: http://sourceforge.net/projects/netgen-mesher/. Accessed March 30, 2015.
10. OpenFOAM Documentation. Available at: http://www.openfoam.org/docs/. Accessed March 30, 2015.
Because flow at the boundaries is user-defined across the whole surface, it is 11. OpenFOAM Wiki: http://openfoamwiki.net/index.php/Main_Page. Accessed March 30, 2015.
12. Berg, P., Janiga, G., & Thvenin, D. (2012). Detailed Comparison Of Numerical Flow Predictions In Cerebral Aneurysms Using Different CFD Software. In Conference on Modelling Fluid Flow
POST-PROCESSING desirable to increase the boundary remoteness from the aneurysm to allow
flow to develop into a realistic profile. 13.
(CMFF 12) (pp. 128-135). Budapest, Hungary: J. Vad.
The ParaView Guide. Available at: http://www.paraview.org/paraview-guide/. Accessed March 30, 2015.
where u=velocity, t=timestep, x=cell edge length and Cmax=maximum Courant number 14. Jeong W, Rhee K. Hemodynamics of cerebral aneurysms: computational analyses of aneurysm progress and treatment. Comput Math Methods Med. 2012;2012:782801.
Because the shape and velocity of the aneurysm inflow jet can significantly 15. CFD Online: History of CFD. Available at: http://www.cfd-online.com/Wiki/History_of_CFD. Accessed March 5 23, 2015.
Paraview (Kitware, Clifton Park, New York, USA) is an open source data analysis and affect hemodynamics, flow development is best accomplished using
16. Cebral JR, Mut F, Weir J, Putman C. Quantitative characterization of the hemodynamic environment in ruptured and unruptured brain aneurysms. AJNR
pimpleFoam incorporates two different solvers (pisoFoam and simpleFoam) and has the advantage of a variable Am J Neuroradiol. 2011;32(1):145-51.
visualization application that comes packaged with OpenFOAM.13 native vessel geometry. If this is not possible, tubular extensions can be time-step that adjusts as required to maintain C Cmax.10-11
17. Miura Y, Ishida F, Umeda Y, et al. Low wall shear stress is independently associated with the rupture status of middle cerebral artery aneurysms. Stroke.
2013;44(2):519-21.
Hemodynamic data easily displayed and analyzed using a variety of techniques, including added to the boundaries using vmtkflowextensions.8 Simulations are typically run for 2-3 cardiac cycles. This ensures established flow at the beginning of the final 18. Goubergrits L, Schaller J, Kertzscher U, ven den Bruck N, Poethkow K, Petz, C, Hege H, Spuler A. Statistical wall shear stress maps of ruptured and un-
ruptured middle cerebral artery aneurysms. J R Soc Interface. 2012;9(69):677-88.
surface and volume mapping as well as graphical analysis of probe points placed within the cycle, which is used in further analysis. It is typically unnecessary to continue simulations beyond 2-3 cycles 19. Ford MD, Alperin N, Lee SH, Holdsworth DW, Steinman DA. Characterization of volumetric flow rate waveforms in the normal internal carotid and verte-
OpenFOAM Wiki is a useful
flow environment. Tubular flow extensions can be added if needed to develop the flow and this multiplies computation time without changing the result.16-17 resource containing user guides 20.
bral arteries. Physiol Meas. 2005;26(4):477-88.
Karmonik C, Yen C, Grossman RG, et al. Intra-aneurysmal flow patterns and wall shear stresses calculated with computational flow dynamics in an anteri-
profile. However, it is preferable to use anatomic geometry where Models can be exported from VMTK
Using pimpleFoam, the initial timestep can be set to a default value, which will accommodate to satisfy the and an active discussion forum or communicating artery aneurysm depend on knowledge of patient-specific inflow rates. Acta Neurochir (Wien) 2009;151:47985.
possible to accurately model the parent/aneurysm relationship. to formats readable by Netgen
Courant number as needed.

Vous aimerez peut-être aussi