Coordinate transformation for line integrals; quadrature rules

Click For Summary
SUMMARY

This discussion focuses on the implementation of a discontinuous finite element method for computing line integrals over mesh edges using 1D quadrature rules. The user is attempting to evaluate the integral \(\int_{e}f(x,y)ds\) but is encountering issues with the mapping from the interval [-1,1] to the line segment \(e\). The correct approach requires incorporating the transformation factor, specifically the derivative of the mapping, which the user has overlooked. The user seeks guidance on the proper transformation and additional resources for finite element methods (FEM).

PREREQUISITES
  • Understanding of discontinuous finite element methods (FEM)
  • Familiarity with numerical integration techniques, specifically 1D quadrature rules
  • Knowledge of affine mappings and their derivatives
  • Basic concepts of line integrals in calculus
NEXT STEPS
  • Research the application of transformation factors in numerical integration
  • Study the implementation of quadrature rules in finite element analysis
  • Learn about affine mappings and their role in FEM
  • Explore advanced topics in FEM through 'Applied Finite Element Analysis' by Larry J. Segerlind
USEFUL FOR

Mathematicians, engineers, and software developers working on finite element analysis, particularly those implementing numerical methods for line integrals in computational simulations.

hkcool
Messages
10
Reaction score
0
Hi all,

The context of this problem is as follows: I'm trying to implement a discontinuous finite element method and the formulation calls for the computation of line integrals over the edges of the mesh.

Anyway, more generally, I need to evaluate \int_{e}f(x,y)ds, where e is a line segment (corresponding to the edge of a 2D-mesh element). I'm trying to compute this integral numerically using a 1D-quadrature rule on the interval [-1,1], but I think perhaps my mapping is incorrect.

To begin, let \mathbf{\hat{x}}_{g} be a quadrature point on the interval [-1,1] (i.e. \mathbf{\hat{x}}_{g} = (\hat{x}_{g},0)) with corresponding quadrature weight w_{g}. Now there exists an affine mapping \zeta: [-1,1] \to e. Thus, \mathbf{x}_{g} = \zeta(\mathbf{\hat{x}}_{g}) is on the line segment e.

But I'm confused how the integral should look now:
<br /> \int_{e}f(x,y)ds \approx \sum_{k=1}^{n_{g}}w_{k}f(\mathbf{x}_{g})?<br />

I know if I was trying to actually map the line of integration from e to [-1,1] then I would need to multiply the integrand by \zeta&#039;, the derivative of the transformation, but that's not exactly what I'm trying to do here.

The problem: Using the quadrature rule as given above is actually not correct since my implementation in my code produces the wrong results using this quadrature rule. I'm assuming I'm missing some transformation factor, but am at a loss as to what it should be.

Also, if there is a section of this message board that is more tailored to finite elements and has experience users that can answer specific questions about FEM, I would be extremely grateful to be pointed in the right direction!
 
Physics news on Phys.org

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K