CFD Simulations AC7-04: Difference between revisions

From KBwiki
Jump to navigation Jump to search
Line 49: Line 49:


===CFD post-processing===
===CFD post-processing===
In order to enable comparison with the 4D Flow MRI measurements, two main post-processing steps were implemented to be coherent with the MRI acquisition process.
'''Phase-averaging'''
First, the CFD was phase-averaged. Indeed during a conventional 4D Flow scan, the k-space (spatial frequencies space) is sequentially filled over hundreds of RF-pulses and magnetic gradients sequences. Thus it does not appear relevant to compare instantaneous CFD velocity fields with MRI measurements. Another argument is that high Reynolds number unsteady flows may lead to cycle-to-cycle fluctuations. Thereby an appropriate way seem to phase-average the simulated flow velocity field over a sufficiently representative number of cardiac cycles. The phase-averaged velocity <math>\bar{\mathbf{u}}(\mathbf{x},t)</math> at spatial coordinates <math>\mathbf{x} = (x,y,z)</math> and at time <math>t</math> was defined as:
<math>
\bar{\mathbf{u}}(\mathbf{x},t) = \frac{1}{N} \sum_{k=0}^{N-1} \mathbf{u}(\mathbf{x},t+kT)
</math>
where <math>\mathbf{u}(\mathbf{x},t)</math> refers to instantaneous velocity vector and <math>N = 30</math> the total number of cycles of period <math>T = 1s</math>. As it will be further expanded on in the numerical accuracy section, the first 10 simulated cycles were removed to cancel the effect of the arbitrary initial condition, and thus <math>N</math> corresponds to the number of cycles computed afterwards.
'''Downsampling'''
Then, both modalities have to be expressed on the same grid to allow quantitative comparison. A first possibility is to interpolate the MRI velocity fields on the finer CFD grid. Another method, which is the one chosen here, is to downsample the CFD velocity fields onto the coarse MRI grid. The idea of the downsampling method is to localize the CFD nodes within a given MRI voxel and to average the contributions of each CFD node corresponding to this MRI voxel in order to build a low resolution CFD (LR-CFD) velocity fields. The steps of the downsampling process (Fig. 6) were the following: first the MRI grid was subsampled with 5 voxels in each direction (125 subvoxels per voxel). Then the CFD solution was linearly interpolated on the subsampled Cartesian grid. Finally these interpolated velocity fields were averaged over the 125 subvoxels included in each MRI voxel, which lead to the LR-CFD velocities expressed on the MRI grid.
[[File:AC7-04_Downsampling.png|600px|center]]
<div style="text-align: center;">
'''Figure 6:''' Illustration of the downsampling process
The MRI grid is first subsampled with 5 voxels in each direction (125 subvoxels per voxel). The CFD solution is linearly interpolated on the subsampled grid, which is downsampled back to the MRI grid by averaging the velocity over the 125 subvoxels included in each MRI voxel.
</div>
===Numerical Accuracy===
===Numerical Accuracy===



Revision as of 13:19, 26 July 2021

Front Page

Description

Test Data

CFD Simulations

Evaluation

Best Practice Advice

A pulsatile 3D flow relevant to thoracic hemodynamics: CFD - 4D MRI comparison

Application Challenge AC7-04   © copyright ERCOFTAC 2021

CFD Simulations

Overview of CFD Simulation

Large Eddy Simulations were carried out using the in-house, massively parallel and multiphysics YALES2BIO solver based on YALES2 [4] developed at CORIA (Rouen, France). YALES2BIO is dedicated to the simulation of blood flows at the macroscopic and microscopic scales. The base is a solver for the incompressible Navier-Stokes equations. The equations are discretised using a finite-volume fourth-order scheme, adapted to unstructured meshes [5,6]. The divergence-free property of the velocity field is ensured thanks to the projection method introduced by Chorin [7]. The velocity field is first advanced in time using a low-storage fourth-order Runge-Kutta scheme [6,8] in a prediction step. This predicted field is then corrected by a pressure gradient, obtained by solving a Poisson equation to calculate pressure. This equation is solved with the Deflated Preconditioned Conjugate Gradient algorithm [9]. YALES2BIO was validated and successfully used in many configurations relevant to cardiovascular biomechanics (see [10] for a list of publications). The boundary conditions applied at the inlet came from the data acquired during the experiment (2D cine PC-MRI).

Simulation Case

Computational Domain

The geometry used in the calculation is the same as the one presented in the test data section. The computational domain has one inlet and one single outlet, so that the flow split at the main tube/collateral junction does not depend on the details of the outlet boundary condition. The mesh (Fig. 5) used to perform the simulation consisted of an unstructured tetrahedral mesh generated with GAMBIT 2.4.6 (ANSYS, Inc., Canonsburg, PA). The mesh includes 3,812,438 cells with an average cell volume of 38 mm3 (representative cell size of 0.7 mm).

AC7-04 Mesh.jpeg

Figure 5: Computational domain

Left: Digital geometry (Dimensions are given with respect to the center of the collateral), Right: Mesh at the inlet

Solution Strategy

The blood, or blood-mimicking fluid, is described by the incompressible Navier-Stokes equations (NSE):

where and are the velocity field, pressure field, density and kinematic viscosity of the fluid, respectively.

The governing equations are discretized and solved using the YALES2BIO solver. In the present simulation a centred fourth-order numerical scheme with an explicit fourth-order Runge-Kutta time advancement scheme was used. To ensure numerical stability, the time step was computed to keep a CFL number equal to 0.9. The pressure advancement and divergence-free condition were met thanks to a fractional-step method (Kim & Moin, 1985 [11]), a modified version of the Chorin’s algorithm (Chorin, 1968 [7]). The Sigma eddy-viscosity-based LES model (Nicoud et al., 2011 [12]) was employed to take into account the turbulence effects. This model guarantees that no eddy viscosity is applied in canonical laminar flows and is well adapted to wall-bounded flows and transitional flows [13,14].

Boundary Conditions

Zero pressure condition was prescribed at the outlet section while zero velocity was imposed at the solid boundaries.

To prescribe the velocity field at the inlet, a pixel-based inflow was derived from the 2D cine PC-MRI measurements. Beforehand the velocity field from these measurements were corrected to account for partial volume effects caused by the phantom walls and random noise. To do so a mask was applied in order to impose a linear evolution of the near-wall through-plane velocity with the constraint of zero-velocity at the wall. Thereby for the pixels located at position (where is the radius of the circular cross-sectional inlet surface and an user-defined inner radius), the masked through-plane velocity component was set equal to:

Then a 2D bilinear interpolation from this corrected velocity field onto the inlet surface of the CFD domain was performed for each of the 30 cardiac phases. Once the velocity field had been spatially interpolated, its discrete temporal evolution had to be converted into a time-continuous signal. As the flow rate delivered by the pump was periodic, a trigonometric interpolation was used by applying at each node a discrete Fourier transform of the temporally discretized velocity signal. Thereby 15 non-redundant complex Fourier coefficients were extracted and the continuous inlet velocity signal could be achieved by injected back these coefficients into a Fourier series expansion for each node of the inlet surface.

CFD post-processing

In order to enable comparison with the 4D Flow MRI measurements, two main post-processing steps were implemented to be coherent with the MRI acquisition process.

Phase-averaging

First, the CFD was phase-averaged. Indeed during a conventional 4D Flow scan, the k-space (spatial frequencies space) is sequentially filled over hundreds of RF-pulses and magnetic gradients sequences. Thus it does not appear relevant to compare instantaneous CFD velocity fields with MRI measurements. Another argument is that high Reynolds number unsteady flows may lead to cycle-to-cycle fluctuations. Thereby an appropriate way seem to phase-average the simulated flow velocity field over a sufficiently representative number of cardiac cycles. The phase-averaged velocity at spatial coordinates and at time was defined as:

where refers to instantaneous velocity vector and the total number of cycles of period . As it will be further expanded on in the numerical accuracy section, the first 10 simulated cycles were removed to cancel the effect of the arbitrary initial condition, and thus corresponds to the number of cycles computed afterwards.

Downsampling

Then, both modalities have to be expressed on the same grid to allow quantitative comparison. A first possibility is to interpolate the MRI velocity fields on the finer CFD grid. Another method, which is the one chosen here, is to downsample the CFD velocity fields onto the coarse MRI grid. The idea of the downsampling method is to localize the CFD nodes within a given MRI voxel and to average the contributions of each CFD node corresponding to this MRI voxel in order to build a low resolution CFD (LR-CFD) velocity fields. The steps of the downsampling process (Fig. 6) were the following: first the MRI grid was subsampled with 5 voxels in each direction (125 subvoxels per voxel). Then the CFD solution was linearly interpolated on the subsampled Cartesian grid. Finally these interpolated velocity fields were averaged over the 125 subvoxels included in each MRI voxel, which lead to the LR-CFD velocities expressed on the MRI grid.

AC7-04 Downsampling.png

Figure 6: Illustration of the downsampling process

The MRI grid is first subsampled with 5 voxels in each direction (125 subvoxels per voxel). The CFD solution is linearly interpolated on the subsampled grid, which is downsampled back to the MRI grid by averaging the velocity over the 125 subvoxels included in each MRI voxel.

Numerical Accuracy




Contributed by: Morgane Garreau — University of Montpellier, France

Front Page

Description

Test Data

CFD Simulations

Evaluation

Best Practice Advice

© copyright ERCOFTAC 2021