The solving speeds of svSolver and svFSI in fluid problems

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
Li Xia
Posts: 11
Joined: Sun Sep 03, 2023 12:14 am

The solving speeds of svSolver and svFSI in fluid problems

Post by Li Xia » Thu Jan 25, 2024 1:01 am

Hello,

I have recently been studying fluid problems. Both svSolver and svFSI can be used in fluid problems. svFSI is more standardized in code writing, more widely used and maintained, which has attracted my attention. Consequently, I wanted to compare the results of svSolver and svFSI in terms of speed and periodicity in fluid problems.

Under the same conditions, including the same grid, step size, number of cores, and boundary conditions, using the default solving method, svSolver and svFSI have shown consistent results in the first two cycles, with good periodicity. However, in terms of solving speed, svSolver took approximately 45 minutes for the first cycle and 25 minutes for the second, while svFSI took around 6 hours for both the first and second cycles, indicating a significant difference in speed.

I'm curious if the two sets of codes handle fluid problems in the same way. Can using Trilinos significantly accelerate the solving speed of svFSI?

Code: Select all

# Part of svFSI.inp
# Equations
Add equation: fluid {
   Coupled: 1
   Min iterations: 3
   Max iterations: 10
   Tolerance: 1e-3
   Backflow stabilization coefficient: 0.2

   Density: 1.06
   Viscosity: Constant {Value: 0.04}

   Output: Spatial {
      Velocity: t
      Pressure: t
      Traction: t
      WSS: t
   }

   LS type: NS
   {
      Max iterations:      10
      NS-GM max iterations: 3
      NS-CG max iterations: 500
      Tolerance:           1D-3
      NS-GM tolerance:     1D-3
      NS-CG tolerance:     1D-3
      Krylov space dimension: 50
   }
Best Regards,
Li Xia

User avatar
David Parker
Posts: 1730
Joined: Tue Aug 23, 2005 2:43 pm

Re: The solving speeds of svSolver and svFSI in fluid problems

Post by David Parker » Mon Jan 29, 2024 1:05 pm

Hi Li Xia,

We have seen that svFSI and svSolver have about the same execution speed for CFD computations. You didn't give any information about mesh sizes, the number of cores used and the platform you used to make the comparison and how you did the timings, perhaps some dependency there.

The Trilinos preconditioners do improve performance for solid mechanics problems, less so for CFD I think.

Cheers,
Dave

User avatar
Li Xia
Posts: 11
Joined: Sun Sep 03, 2023 12:14 am

Re: The solving speeds of svSolver and svFSI in fluid problems

Post by Li Xia » Tue Jan 30, 2024 3:57 am

Hi Dave,

I simulated the cerebral vascular system using svSolver and svFSI with the same grid consisting of 3.25 million cells on the Beijing Super Cloud Computing platform, utilizing 32 cores for testing. I estimated the simulation speed by comparing the times of the files generated by both (restart.xx.xx files for svSolver and vtu files for svFSI), and there is a significant difference in the time for each step, which can also be observed from the histor.dat file (refer to the two images below). The time step is 0.002, and the boundary condition is Resistance BC.

Best Regards,
Li Xia
Attachments
svSolver.png
svSolver.png (77.14 KiB) Viewed 294 times
svFSI.png
svFSI.png (61.79 KiB) Viewed 294 times

User avatar
David Parker
Posts: 1730
Joined: Tue Aug 23, 2005 2:43 pm

Re: The solving speeds of svSolver and svFSI in fluid problems

Post by David Parker » Tue Jan 30, 2024 1:53 pm

Hi Li Xia,

Your svFSI simulation is not converging in 10 iterations so your simulation is not setup correctly.

Cheers,
Dave

POST REPLY