Skip to content

Solution of the acoustic wave equation in 3D using finite-difference method using GPU.

Notifications You must be signed in to change notification settings

maksimbaz/acoustic_wave_cuda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solution of the acoustic wave equation in 3D using finite difference method.

Equation

$$\frac{\partial^2u}{\partial x^2} + \frac{\partial^2u}{\partial y^2} + \frac{\partial^2u}{\partial z^2} = \frac{1}{c^2} \cdot \frac{\partial^2u}{\partial t^2}$$

where
$u = u(x,y,z,t)$ - displacement vector (or acoustic pressure)
$c$ - speed of sound

This program runs on GPU. So, the nvcc compiler is used.

compile it with

nvcc main_proj.cu -o main_proj

and run wih

./main_proj

Result

This program outputs .vtk file that can be opened in ParaView.

Visualization

Collected data are presented in the root folder as two animations in .ogv format. You can open it using any video player.

About

Solution of the acoustic wave equation in 3D using finite-difference method using GPU.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages