Toggle menu
71
399
28
3.6K
Medusa: Coordinate Free Meshless Method implementation
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

1D MLSM and FDM comparison: Difference between revisions

From Medusa: Coordinate Free Meshless Method implementation
No edit summary
No edit summary
Line 16: Line 16:


== Dirichlet case ==
== Dirichlet case ==
Precision and execution time are summarised in graphs below.
[[File:dircmp.png|600px]][[File:dirtimecmp.png|600px]]

Revision as of 09:37, 13 March 2017

Different numerical approaches to solving a Dirichlet or Neumann problem

<math> \begin{align*}

 \text{Dirichlet} && \text{Neumann} \\
 f(x) &= 2x^2+5 \text{ on } (0, 1) &   f(x) &= 2x^2+5 \text{ on } (0, 1)  \\
 f(0) &= 1 & f'(0) &= 1 \\
 f(1) &= 1 & f(1) &= 1 \\
 f(x) &= \frac{1}{6} \left(x^4+15 x^2-16 x+6\right) & f(x) &= \frac{1}{6} \left(x^4+15 x^2+6 x-16\right) 

\end{align*} </math>

were analysed. Theoretically, FDM and MLSM should match completely. This is practivaly demonstrated up to certain discretization level.

The interval <math>[0, 1]</math> was always discretized uniformly using $N$ nodes, <math>x_i = a+i h, h = (b-a)/N</math>.

Dirichlet case

Precision and execution time are summarised in graphs below.