I want to integrate a polynomial expression over a 4-node element in 3D. Several books on FEA cover the case where integrating is performed over an arbitrary flat 4-noned element.The usual procedure in this case is to find Jacobi matrix and use it's determinant to change the integration basis to the normalized one in which I have the simpler integration limits [-1;1] and the Gauss-Legendre quadrature technique is used easily.In other words $\displaystyle\int_S f(x,y)\ \mathrm{d}x\,\mathrm{d}y\,$  is reduced to the form of $\displaystyle\int^{-1}_{1}\int^{-1}_{1} \tilde{f}(e,n)\ \left|\det(J)\right|\,\mathrm{d}e\,\mathrm{d}n$But in 2D case I change the flat arbitrary element to the flat one but well-shaped square 2 by 2.3D 4-noded element isn't flat in general but I supposeit still can be mapped with 2D coordinate system which is somehowrelated to cartesian coordinate system. I can't figure out howto express {x,y,z} in terms of {e,n} and what would be the sizeof the Jacobi matrix in this case (it's supposed to be square).
How to integrate polynomial expression over 3D 4-node element?
finite element;quadrature
You're integrating a function on a 2-dimensional manifold embedded in $\mathbb{R}^{3}$; books in analysis on manifolds (like Munkres' accessible book, or Lee's books on manifolds) are helpful in discussing the theory defining this type of integral.Let's suppose that $f$ is a real-valued function defined on the manifold $\mathcal{M}$, which is your 4-node 3-D element.You want to calculate:\begin{align}\int_{\mathcal{M}} f \,\mathrm{d}S.\end{align}Suppose that $\varphi$ is a function that maps $[-1,1]^{2}$ to $\mathcal{M}$. Then\begin{align}\int_{\mathcal{M}} f \,\mathrm{d}S = \int_{[-1,1]^{2}} f(\varphi(x,y))\Big(\det\big(\mathrm{D}\varphi^{\mathrm{T}}(x,y)\mathrm{D}\varphi(x,y)\big)\Big)^{1/2}\, \mathrm{d}x \,\mathrm{d}y\end{align}(I used this set of notes to refresh my memory.) Above, $\mathrm{D}\varphi$ is the Jacobian matrix of $\varphi$, and $\mathrm{D}\varphi^{\mathrm{T}}$ is its transpose.Once you can write the integral over $[-1,1]^{2}$, then you can use numerical methods to evaluate it.Some comments:I'm pretty sure your 4-node 3-D element is a manifold. If it is, the function $\varphi$ exists (by definition), is piecewise continuous (for topological manifolds), and is invertible. It's up to you to find a function with those properties.The argument above assumes that $\mathcal{M}$ is a smooth manifold, which implies that there exists a $\varphi$ that is continuously differentiable. In your case, the element you describe may not be continuously differentiable. If that is true, you could probably still partition your manifold into two smooth manifolds, and then the argument above still holds. Again, you must find $\varphi$ satisfying the properties of invertibility and continuous differentiability.