Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1.  
  2. The theorem states that the surface integral of a vector field times the unit normal equals the volume integral of the divergence of the same vector field. As this is true for \emph{any} vectorfield, we can choose a vectorfield with special properties. Assume that $\mathbf{F}$ has constant divergence, that is $\nabla \cdot \mathbf{F} = c$. Then the volume integral becomes
  3. \begin{equation}
  4. \int_V \nabla \cdot \mathbf{F}\ d\tau=\int_V c \ d\tau=c\int_V d\tau=cV
  5. \end{equation}
  6. We see that we can compute the volume (times a constant) with this integral. And equation \ref{eq:divergencetheorem} links this integral to the surface integral. After careful consideration we choose $\mathbf{F} =\bar{\mathbf{F}}=(x,y,z)$, and calculate the divergence
  7. \begin{eqnarray}
  8. \nabla \cdot \bar{\mathbf{F}}&=& \\
  9. \nonumber & = & \nabla \cdot (x, y, z) \\
  10. \nonumber & = & \left (\frac{\partial}{\partial{x}},\frac{\partial}{\partial{y}},\frac{\partial}{\partial{z}} \right ) \cdot (x,y,z)\\
  11. \nonumber & = &\frac{\partial{x}}{\partial{x}} + \frac{\partial{y}}{\partial{y}}+\frac{\partial{z}}{\partial{z}}\\
  12. \nonumber & = & 3
  13. \end{eqnarray}
  14. We note that our related surface integral will compute $3V$ ($c=3$) and finally we develop a discrete formula by approximating the integral as a Riemann sum over each face:
  15. \begin{eqnarray}
  16. \nonumber
  17. 3V &=& \int_V \nabla \cdot \bar{\mathbf{F}}\ d\tau = \int_S \bar{\mathbf{F}} \cdot \mathbf{n}\ dA\\
  18. & \approx&\sum_{i \in S} \bar{\mathbf{F}}(f_i) \cdot \mathbf{n}(f_i) A(f_i)
  19. \label{eq:volume}
  20. \end{eqnarray}
  21. Here we used $\bar{\mathbf{F}}(f_i)$ to denote the vector field evaluated at the $i$:th face $(f_i)$, and similarly for the normal and area. At this point we have not yet decided where to evaluate the vector field, it is only specified that it should be done somewhere on the face. Remember that the face normal and area are constant over the face. The vector field is not though; but it can be shown that any point (on the face) will do in the limit. We chose the centroid of the triangle giving rise to
  22. \begin{eqnarray}
  23. 3V = \sum_{i \in S} \frac{(\mathbf{v}_1+\mathbf{v}_2+\mathbf{v}_3)_{f_i}}{3} \cdot \mathbf{n}(f_i) A(f_i),
  24. % V = \sum_{i \in S} (\mathbf{v}_1 +\mathbf{v}_2 + \mathbf{v}_3)_{f_i} \mathbf{n}_i \cdot A_i
  25. \end{eqnarray}
  26. where $\mathbf{v}_1$, $\mathbf{v}_2$ and $\mathbf{v}_3$ are the vertices of the $i$:th triangle. The error of this approximation decreases as the area of the largest triangle goes to zero. Try to compose a formula that evaluates $\bar{\mathbf{F}}$ at other points
  27. as well and see if you can improve on the results.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement