HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
barbagroup
CFDPython
Jupyter Notebook2016–2021
barbagroup / CFDPython

CFDPython

A sequence of Jupyter notebooks featuring the "12 Steps to Navier-Stokes" http://lorenabarba.com/

8Distinct people
8Mentions
0Explicit recommenders
4.2KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A sequence of Jupyter notebooks featuring the "12 Steps to Navier-Stokes" http://lorenabarba.com/

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 12:54:37 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year8 dated mentions

Observed mentions: 2016-10-16 00:23:04 UTC to 2021-07-07 13:48:59 UTC.

012342016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 comments20162017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments2021

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC211
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC000
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC110
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC000
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC101
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC404

What Hacker News says

8 sources
There are many different ways to do what you'd like. The easiest starting point would probably be this tutorial: https://github.com/barbagroup/CFDPython But that won't handle turbulence. The real "turbulence problem" is that computing actual turbulent flows requires enormous computational resources. So instead of solving the Navier-Stokes equations, related equations with lower computational cost are solved. Because of how these equations are developed, they require modeling of "unclosed" terms, and this is a likely source of inaccuracy. If you want something relatively simple, you could take the RANS approach and use the Spalart-Allmaras model: https://www.cfd-online.com/Wiki/Introduction_to_turbulence/R... https://www.cfd-online.com/Wiki/Spalart-Allmaras_model How to implement the changes to the final part of Lorena Barba's tutorial sho
Read the rest
uld be fairly obvious by the time you get there.
In Poisson's Equation
So, you actually mean that you hope not to see equations. But it's the equations that are the real meat of these things. Pictures are pretty, but they are generated from the equations, and the equations capture the understanding and the modelling. The equations are the content, it's the equations that let us do calculations, predictions, and quantitative analysis. What would you hope to see instead? I don't understand what you're asking for. Are you asking to understand these things without doing the actual mathematics? That would seem rather ambitious, so I'm guessing I don't know what you're asking for. I see elsewhere you've pointed here: https://github.com/barbagroup/CFDPython That amounts to an entire course on the subject. So if you're asking to have that sort of thing instead of a page that shows the equations and the maths, t
Read the rest
hen you're asking that someone produce an entire course on the subject, instead of just a primer. That feels like someone complaining that an overview page isn't a degree level textbook. So I guess I still don't understand what you're asking for.
In Complexity Explained
I sniff an air of condescension; what’s your goals therein? Are you posturing your ‘maths’ knowledge? I thought I was explicit in my criticism of “notation only” explanations, but perhaps a positive example would be more explicit. https://github.com/barbagroup/CFDPython This repo explains computational fluid dynamics (an example of a complex system!) from “what is a python function” to “2d Navier stokes”. It shows the work of how to discretize ‘latex beautified’ notation, shows the relationship between the computations and the notation, and even explains when their LaTex strays from “conventional use of notation” and why. The authors even throw in traditional handwritten board lecture videos if that helps you learn better. complexityexplained reads like it’s written by the Spider-Man points at Spider-Man meme.
In Complexity Explained
I've been taking a similar approach and pursuing this topic by getting into Computational Fluid Dynamics and understanding physics in code first, then trying to bridge the code to the more rigorous mathematical representation. This is after I tried reading a bunch of physics books and, while interesting, I couldn't really get my head around "Ok, so how would I program something like that?" But then there's this, you might find it interesting, it helped me understand how everything fits together a lot more: https://github.com/barbagroup/CFDPython Also, physics is a big area, so this is just one part, specifically the physics of fluid simulation. But there's a big market behind CFD too, so you could do worse in picking something with some directly practical application.
In Ask HN: How to self-study physics?

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.