Numerical methods in fluid mechanics: Difference between revisions

Content deleted Content added
m clean up, added reflist
m Finite difference method: clean up spacing around commas and other punctuation fixes, replaced: ,i → , i
 
(2 intermediate revisions by 2 users not shown)
Line 13:
:<math> \lim_{\Delta x \to 0}f'(x) = \frac {f(x+\Delta x)-f(x)}{\Delta x} </math>
 
with a finite limiting process, i.e.
 
:<math> f'(x) =\frac {f(x+\Delta x) - f(x)}{\Delta x} + O(\Delta x) </math>
Line 31:
The [[CPU]] time to solve the system of equations differs substantially from method to method. Finite differences are usually the cheapest on a per grid point basis followed by the finite element method and spectral method. However, a per grid point basis comparison is a little like comparing apple and oranges. Spectral methods deliver more accuracy on a per grid point basis than either [[Finite element method|FEM]] or [[Finite difference method|FDM]]. The comparison is more meaningful if the question is recast as ”what is the computational cost to achieve a given error tolerance?”. The problem becomes one of defining the error measure which is a complicated task in general situations.
 
==<s><ref>{{Cite news|others=John Locke|title=}}</ref></s>Forward Euler approximation==
:<math> \frac {u^{n+1} -u^n}{\Delta t } \approx \kappa u^n </math>
 
Equation is an explicit approximation to the original differential equation since no information about the unknown function at the future time (''n''&nbsp;+&nbsp;1)<sub>''t''</sub> has been used on the right hand side of the equation. In order to derive the error committed in the approximation we rely again on [[Taylor series]].
 
==Backward difference==