<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265235</link>
    <title>MATLAB Central Newsreader - Convergence of a finite difference approximation</title>
    <description>Feed for thread: Convergence of a finite difference approximation</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 07 Nov 2009 13:01:04 -0500</pubDate>
      <title>Convergence of a finite difference approximation</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265235#692876</link>
      <author>Martin Reavy</author>
      <description>As part of the coursework for one of my university courses, I've been asked to find the roots of a finite difference approximation of pressure across a Michell bearing section (ie. find peak pressure). Matlab isn't taught as part of this course (or any of my others for that matter), but is taken as assumed knowledge. Naturally I'm stumped. I've simplified my f.d.a down to:&lt;br&gt;
&lt;br&gt;
Pn = (Pn+1 + Pn-1)/2 + [3C(Pn+1 - Pn-1)]/[800(h + xC)] + K/[4(h + xC)^3]&lt;br&gt;
&lt;br&gt;
where C, h and K are constants, with 0&amp;lt;x&amp;lt;0.1 along 21 grid points (including the zero).&lt;br&gt;
&lt;br&gt;
As far as I understand, I need a code which calculates Pn for each value of x, with initial values of P0 and P21 equal to zero, which takes the previous value of Pn and uses it as Pn-1. The first time round, Pn+1 will be assumed zero, but for the second round of iterations it will use the values calculated from the previous round, and this will continue until the solution has converged. As such, I'll need to store the calculated values of Pn in an array, to be used in the next round of calculations. Once the solution has converged, I need to use Matlab to plot a graph of pressure distribution, and state the number of iterations needed for convergence. Having never used Matlab, I don't have the blindest idea how to do this, although I'm assured by the lecturer that it's a fairly simple piece of code(!).&lt;br&gt;
&lt;br&gt;
As this is for a university assignment, I DON'T want someone to produce a nice working code for me, but rather a list of the commands needed to solve the problem, and a short summary of how to use them. Hopefully someone understands my description and can help me out.&lt;br&gt;
&lt;br&gt;
Thanks.</description>
    </item>
  </channel>
</rss>

