Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 3.95 KB

README.md

File metadata and controls

72 lines (50 loc) · 3.95 KB

Welcome to CFD Python

Hello! Welcome to the 12 steps to Navier-Stokes. This is a practical module that is used in the beginning of an interactive Computational Fluid Dynamics (CFD) course taught by Prof. Lorena Barba between 2009 and 2013 at Boston University (Prof. Barba since moved to the George Washington University). The course assumes only basic programming knowledge (in any language) and of course some foundation in partial differential equations and fluid mechanics. The practical module was inspired by the ideas of Dr. Rio Yokota, who was a post-doc in Prof. Barba's lab, and has been refined by Prof. Barba and her students over several semesters teaching the course. The course is taught entirely using Python and students who don't know Python just learn as we work through the module.

Installing Python

The core of this mini-course is built around Jupyter(formerly IPython) notebooks, an interactive computational environment that is run in a web-browser.

Anaconda

We highly recommend that you install the Anaconda Python Distribution.

You can download and install Anaconda on Windows, OSX and Linux. To ensure that it's up to date, run (in a terminal)

conda update conda
conda update jupyter numpy sympy scipy matplotlib

If you prefer Miniconda (a mini version of Anaconda), to install all the necessary libraries to follow this course, run (in a terminal)

conda update conda
conda install jupyter
conda install numpy scipy sympy matplotlib

Without Anaconda

If you already have Python installed, you can install the notebooks using pip

pip install jupyter

Please also make sure that you have the necessary libraries installed by running

pip install numpy scipy sympy matplotlib

Running a notebook server

Once jupyter is installed, just open up a terminal and then run

jupyter notebook

to start up a jupyter session in your browser!

Lessons