Diff of /trunk/doc/cookbook/einsteinETA.tex

revision 2904 by jfenwick, Thu Jan 28 02:03:15 2010 UTC revision 2905 by gross, Tue Feb 2 04:26:42 2010 UTC
# Line 11  Line 11
11  %  %
12  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13
14  \section{The Einstein Summation Convention}  \chapter{Appendix: The Einstein Summation Convention}
15
16  The Einstein Summation Convention (ESC) is a notational convention that is prefered by the \esc developers. It is a condensed and practical way to deal with multi-dimensional and convoluted PDEs. By suppressing the need to write out the many terms of each problem it is possible to increase efficiency and reduce the number of errors created through poor working. According to the convention, when an index variable appears twice in a single term, it implies that we are summing over all of its possible values.  The Einstein Summation Convention (ESC) is a notational convention that is prefered by the \esc developers. It is a condensed and practical way to deal with multi-dimensional and convoluted PDEs. By suppressing the need to write out the many terms of each problem it is possible to increase efficiency and reduce the number of errors created through poor working. According to the convention, when an index variable appears twice in a single term, it implies that we are summing over all of its possible values.
17  So we have;  So we have;
18
19  a_1\frac{\partial^2 f}{\partial x_1^2} + a_2\frac{\partial^2 f}{\partial x_2^2} = a_i\frac{\partial^2 f}{\partial x_i^2}  a\hackscore{1}\frac{\partial^2 f}{\partial x\hackscore{1}^2} + a\hackscore{2}\frac{\partial^2 f}{\partial x\hackscore{2}^2} = a\hackscore{i}\frac{\partial^2 f}{\partial x\hackscore{i}^2}
20
21
22  For a scalar function $f(x_1,x_2,..x_i)$ and a vector $\mathbf{u}(u_1,u_2,..u_i)$ with $u_i(x_1,x_2,..x_i)$, we have the following notation:  For a scalar function $f(x\hackscore{1},x\hackscore{2},..x\hackscore{i})$ and a vector $\mathbf{u}(u\hackscore{1},u\hackscore{2},..u\hackscore{i})$ with $u\hackscore{i}(x\hackscore{1},x\hackscore{2},..x\hackscore{i})$, we have the following notation:
23
24  \mathbf{u}=\sum_{i}u_ie^i = u_ie^i  \mathbf{u}=\sum\hackscore{i}u\hackscore{i}e^i = u\hackscore{i}e^i
25
26
27  \mathbf{grad}(f) = \mathbf{\nabla}(f) = \sum_{i}\frac{\partial f}{\partial x_i}e^i = (\partial_i f)e^i = f_{,i}e^i  \mathbf{grad}(f) = \mathbf{\nabla}(f) = \sum\hackscore{i}\frac{\partial f}{\partial x\hackscore{i}}e^i = (\partial\hackscore{i} f)e^i = f\hackscore{,i}e^i
28
29
30  div(\mathbf{u}) = \mathbf{\nabla}.\mathbf{u} = \sum_{i}\frac{\partial u_i}{\partial x_i} = \partial_i u_i = u_{i,i}  div(\mathbf{u}) = \mathbf{\nabla}.\mathbf{u} = \sum\hackscore{i}\frac{\partial u\hackscore{i}}{\partial x\hackscore{i}} = \partial\hackscore{i} u\hackscore{i} = u\hackscore{i,i}
31
32
33  div(\mathbf{grad}(f)) = \nabla^2 f = \Delta f = \sum_{i}\frac{\partial^2 f}{\partial x_i^2} = f_{,ii}  div(\mathbf{grad}(f)) = \nabla^2 f = \Delta f = \sum\hackscore{i}\frac{\partial^2 f}{\partial x\hackscore{i}^2} = f\hackscore{,ii}
34

Legend:
 Removed from v.2904 changed lines Added in v.2905