TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Faster Fluid Dynamics on the GPU

3 pointsby CowFreedomover 3 years ago

1 comment

CowFreedomover 3 years ago
Variations of the Navier-Stokes equations are ubiquitious in many domains in scientific computing. [Chapter 38. Fast Fluid Dynamics Simulation on the GPU](<a href="https:&#x2F;&#x2F;developer.download.nvidia.com&#x2F;books&#x2F;HTML&#x2F;gpugems&#x2F;gpugems_ch38.html" rel="nofollow">https:&#x2F;&#x2F;developer.download.nvidia.com&#x2F;books&#x2F;HTML&#x2F;gpugems&#x2F;gpu...</a>) in GPU Germs is concerned with solving these equations efficiently on the GPU.<p>There, the numerical version of Poisson&#x27;s equation involves solving a massive but sparse linear system,<p>&lt;img src=&quot;<a href="https:&#x2F;&#x2F;latex.codecogs.com&#x2F;svg.image?Ax=b" rel="nofollow">https:&#x2F;&#x2F;latex.codecogs.com&#x2F;svg.image?Ax=b</a>&quot; title=&quot;Ax=b&quot;&#x2F;&gt;<p>In GPU Germs this system is solved with Jacobi iterations. These work well for many applications but might converge slowly, especially for large matrices. In GPU Germs it is mentioned in passing, that multigrid schemes are a possible way to solve such matrices more efficiently.<p>It took me some time to understand the concepts but I now have a working GPU accelerated multigrid formulation for the Poisson problem. In some situations, this has accelerated my simulations at times more than twofold. In order to help you avoid making the same mistakes that I did, I published my notes and source code on<p>[keinefirma.xyz&#x2F;documents&#x2F;fluid_tutorial](keinefirma.xyz&#x2F;documents&#x2F;fluid_tutorial)<p>For now, I continuously update these notes and rectify errors and more.<p>I hope to help somebody with this!