Lecture 22.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Lecture 22.ppt

Lecture 22 MA471 Fall 2003 Advection Equation Recall the 2D advection equation: We will use a Runge-Kutta time integrator and spectral representation in space. Periodic Data Let’s assume we are given N values of a function f at N data points on the unit interval. For instance N=8 on a unit interval: Discrete Fourier Transform We can seek a trigonometric interpolation of a function f as a linear combination of N (even) trigonometric functions: Such that: Transform The interpolation formula defines a linear system for the unknown fhat coefficients: Code for the DFT Code for Inverse DFT Fast Fourier Transform See handout Spectral Derivative We can differentiate the interpolant by: Detail We note that the derivative of the k=(N/2) mode is technically: However, as we show on the next slide – this mode has turning points at all the data points. Real Component of N/2 Mode Modified Derivative Formula So we can create an alternative symmetric derivative formula: Spectral Differentiation Scheme Use an fft to compute: Differentiate in spectral space. i.e. compute: cont 3) Then: 4) Summary: a) fft transform data to compute coefficients b) scale Fourier coefficients c) inverse fft (ifft) scaled coefficients Final Twist Matlab stores the coefficients from the fast Fourier transform in a slightly odd order: The derivative matrix will now be a matrix with diagonal entries: Spectral Differentiation Code Two-Dimensional Fourier Transform We can now construct a Fourier expansion in two variables for a function of two variables.. The 2D inverse discrete transform and discrete transform are: Advection Equation Recall the 2D advection equation: We will use a Runge-Kutta time integrator and spectral representation in space. Runge-Kutta Time Integrator We will now discuss a particularly simple Runge-Kutta time integrator introduced by Jameson-Schmidt-Turkel The idea is each time step is divided into s substeps, which taken together approximate the update t

文档评论(0)

gshshxx + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档