【诠释版】12 steps to Navier-Stokes —— Introduction and Step 1【待修改】

这篇博客介绍了Lorena Barba的《12 steps to Navier-Stokes》系列的诠释版,旨在通过Python实现Navier-Stokes求解器。内容包括对1-D线性对流方程的介绍,使用Python实现基本的数值方法,并通过Matplotlib进行结果可视化。适合具备基础编程和偏微分方程知识的读者。
摘要由CSDN通过智能技术生成

Preface

现在计划将LorenaABarba的《12 steps to Navier-Stokes》系列做一个诠释版。不做完全翻译版的目的是感觉现阶段我的翻译水平并不能完全驾驭作者想要表达的。为了不改变经典的原貌,只做部分注释。在这个过程中大家共同进步。

Introductions

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 since Spring 2009 at Boston 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 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.

This IPython notebook will lead you through the first step of programming your own Navier-Stokes solver in Python from the ground up(从头开始). We’re going to dive right in. Don’t worry if you don’t understand everything that’s happening at first, we’ll cover it in detail as we move forward and you can support your learning with the videos of Prof. Barba’s lectures on YouTube.(需要翻墙,视频中包含详细的推导过程)

For best results, after you follow this notebook, prepare your own code for Step 1, either as a Python script or in a clean IPython notebook.

To execute this Notebook, we assume you have invoked the notebook server using: ipython notebook.(原作者采用IPython,笔者采用Anaconda来替代,版本为Anaconda3,其中Python版本为3.5.1)


Step 1: 1-D Linear Convection

The 1-D Linear Convection equation(对流方程) is the simplest, most basic model that can be used to learn something about CFD. It is surprising that this little equation can teach us so much! Here it is:

ut+cux=0

With given initial conditions (understood as a wave), the equation represents the propagation of that initial wave with speed c , without change of shape. Let the initial condition be u(x,0)=u0(
  • 4
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值