Does anyone know or can provide any examples how fluid flow problem can be formulated and solved in Wolfram Language? Simplest cases of 1D or 2D flows based on Navier-Stokes equations or even their linearized version would be great to see.
Asked
Active
Viewed 4,518 times
11
-
1What have you tried? There is a simple example in the What's New in Mathematica 10, just plug into the Navier-Stokes instead of pure Stokes flow. – m0nhawk Aug 15 '14 at 07:25
-
1Change the equation to Indicial notation and follow http://mathematica.stackexchange.com/questions/15307/how-to-manipulate-gauge-theory-in-mathematica/15330#15330 and http://mathematica.stackexchange.com/questions/14654/how-to-define-the-einstein-summation-convention-in-mathematica – Basheer Algohi Aug 15 '14 at 07:40
-
Version 12 adds the requested functionality. Stationary Navier-Stokes, Transient Navier-Stokes, 3D Transient, coupled Navier-Stokes and Heat – user21 Apr 17 '19 at 08:47
1 Answers
15
This blog is a good start:
Using Mathematica to Simulate and Visualize Fluid Flow in a Box
It fully solves 2D problem of one moving boundary

and gets nice vertex flows:


There are detailed descriptions of proper equations and numerical discretization. You can generalize to 3D. I would look also in latest V10 functionality to see if anything can be used there to upgrade the methods of the blog - it was written before V10 came out. For instance, take a look at this Stokes Flow example which is a simplification of NS:

The same example is discussed in Solving Partial Differential Equations with Finite Elements tutorial
that goes a bit further and solves for pressure and other quantities:
Vitaliy Kaurov
- 73,078
- 9
- 204
- 355
-
In routine maintenance I was preparing to delete this old closed question but I noticed your answer of general interest. Since this question is otherwise abandoned would you please consider editing it to specifically fit this answer, or reposting this to a self-Q&A? – Mr.Wizard Jul 25 '15 at 13:48
-
@Mr.Wizard I edited the question, also added a new link and images in the answer at the end. Hope it'll do. – Vitaliy Kaurov Jul 26 '15 at 04:47
-
-
-
I have trouble remembering the details of site mechanics; perhaps you cannot vote to reopen since you voted to close originally. I'll just reopen directly. – Mr.Wizard Jul 26 '15 at 11:25

