Computational Physics (CompPhys), Computational Fluid Dynamics (CFD)

I went through Ch.10 of Hjorth-Jensen (2015) and wrote up as many C++ scripts to illustrate all the (serial) PDE solvers: forward, backward Euler, Crank-Nicolson, Jacobi method.

Cpp/progs/ch10pde of CompPhys github repository

Lid-driven cavity with incompressible, viscous fluid on a 512×512 staggered grid, in CUDA C++11, with finite difference method for 2-dim., unsteady Navier-Stokes equations solver

cf. https://github.com/ernestyalumni/CUDACFD_out/tree/master/NavSt2DIncompFiniteDiff

u_re1000_t014u_re1000_t024u_re1000_t034u_re1000_t044u_re1000_t054u_re1000_t064u_re1000_t074u_re1000_t084u_re1000_t094uv_re1000_t014uv_re1000_t024uv_re1000_t034uv_re1000_t044uv_re1000_t054uv_re1000_t064uv_re1000_t074uv_re1000_t084uv_re1000_t094

Compare this with pp. 69 of Ch. 5, Example Applications of Griebel, Dornsheifer, Neunhoeffer.

 

Michael Griebel, Thomas Dornsheifer, Tilman Neunhoeffer.  Numerical Simulation in Fluid Dynamics: A Practical Introduction (Monographs on Mathematical Modeling and Computation).  SIAM.  1997.

Advertisements

2 thoughts on “Computational Physics (CompPhys), Computational Fluid Dynamics (CFD)

  1. Congrats for your blog! I found it accidentally and I added it to my bookmarks. I was looking for the lid-driven cavity case in FD coded in OOP-C++ instead of cuda. I want to learn how to write my own cfd codes in multiple CPU’s. Would you have any related material?
    Thanks!
    Cheers

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s