The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
Kick off your book project in 2 hours, get started with GhostAI in 2 hours, or do both! Free live workshops, on Zoom. You’ll leave with a real book project and a clear plan to keep going. Saturday, June 27, 2026.
From Hello World to Lattice Boltzmann in 20 Hands-On Chapters
SoftFlow simulates soft particles in microfluidic flow using two coupled methods:
- Lattice Boltzmann Method (LBM): A mesoscopic fluid solver on the D2Q9 lattice.
Instead of solving the Navier-Stokes equations directly, LBM tracks particle distribution
functions that collide and stream on a discrete grid.
- Immersed Boundary Method
(IBM): Represents deformable particles as Lagrangian membrane nodes immersed in the
Eulerian fluid. Forces are spread from membrane to fluid; velocities are interpolated from
fluid to membrane.
Don’t worry if these terms are unfamiliar — the book introduces them gradually, with
everyday analogies and step-by-step code.
Minimum price
$15.00
$29.00
About the Book
Most C++ textbooks teach the language in isolation — sorting arrays, counting words,
building toy calculators. You learn the syntax, but not why it matters.
This book is different. Every concept — from cout to templates, from pointers to
multithreading — is taught through a single, real project: SoftFlow, a 2D simulator of
deformable particles flowing through microfluidic channels.
By the end, you will have built a working Lattice Boltzmann + Immersed Boundary
Method simulator from scratch. Along the way, you’ll learn modern C++17, computational
physics, and software engineering practices used in real research code.
About the Author
Dr. Ram Chand is a computational physicist, scientific programmer, and educator serving as Chairperson of the Department of Natural Sciences at The Begum Nusrat Bhutto Women University, Sukkur, Sindh, Pakistan.
He earned his PhD in Computational Physics, where his doctoral research centered on mesoscopic simulation of soft deformable particles in microfluidic channel flows using the Lattice Boltzmann Method coupled with the Immersed Boundary Method — the very physics that powers the SoftFlow simulator built throughout this book.
Dr. Chand is an expert in modern C++ and Python, with years of experience developing high-performance simulation codes for complex fluid systems. His technical repertoire spans object-oriented design, parallel computing with OpenMP, Python-C++ interoperability via pybind11, and Machine Learning applications in physics-informed modeling.
His research interests include:
- Lattice Boltzmann simulations of non-Newtonian and multiphase flows
- Immersed Boundary Methods for fluid-structure interaction
- Machine Learning for surrogate modeling in computational fluid dynamics
- High-performance scientific computing and code optimization
As an academic leader, Dr. Chand is committed to transforming how computational physics is taught in developing regions. He believes that project-based learning — writing real simulation code rather than toy examples — produces deeper understanding and stronger programmers. This book is a direct product of that philosophy.
Dr. Chand has authored multiple research publications in computational physics and actively mentors students in scientific computing, open-source development, and research methodology.
Contact: Department of Natural Sciences, The Begum Nusrat Bhutto Women University, Sukkur, Sindh, Pakistan
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.
Learn more about writing on Leanpub
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.