Appendix A. Some basic computations between reference and real elements
Volume integral
One has
∫T f(x) dx = ∫T' f'(x') |vol((∂τ(x'))/(∂x'0) ;(∂τ(x'))/(∂x'1); ...; (∂τ(x'))/(∂x'P-1 ))| dx'.
Jτ(x') := |vol((∂τ(x'))/(∂x'0) ;(∂τ(x'))/(∂x'1); ...; (∂τ(x'))/(∂x'P-1 ))| = (det(K(x')T K(x')))1/2,
∫T f(x) dx = ∫T' f'(x') Jτ(x')dx'.
Surface integral
With Γ a part of the boundary of T a real element and Γ' the corresponding boundary on the reference element T', one has
∫Γ f(x) dσ= ∫Γ' f'(x') ||B(x')n'|| Jτ(x') dσ',
∫Γ F(x).n dσ= ∫Γ' F'(x').(B(x')n') Jτ(x') dσ'.
Derivative computation
One has
∇f(x) = B(x') ∇'f'(x').
Second derivative computation
Denoting
∇2 f = ((∂2 f)/(∂xi ∂xj))ij,
X'(x') = ∑k = 0N-1 ∇'2 τk(x') (∂f)/(∂xk)(x) = ∑k = 0N-1 ∑i = 0P-1 ∇'2 τk(x') Bki (∂f')/(∂x'i)(x'),
∇'2 f'(x') = X'(x') + K(x')T ∇2 f(x) K(x'),
∇2 f(x) = B(x') (∇'2 f'(x') - X'(x')) B(x')T.
(B2(x'))ij = ∑k = 0N-1 (∂2 τk(x'))/(∂x'i / P ∂x'i mod P ) Bkj(x'),
(B3(x'))ij = Bi / N, j / P(x') Bi mod N, j mod P(x'),
H f(x) = B3(x') (H'f'(x') - B2(x')∇'f'(x')).
Example of elementary matrix
Assume one needs to compute the elementary "matrix":
t(i0, i1, ..., i7) = ∫T φi1i0 ∂i4 φi3i2 ∂2i7 / P, i7 mod P φi6i5 dx,
t'0(i0, i1, ..., i7) = ∫T' φ'i1i0 ∂i4 φ'i3i2 ∂2i7 / P, i7 mod P φ'i6i5 J(x') dx',
t'1(i0, i1, ..., i7) = ∫T' φ'i1i0 ∂i4 φ'i3i2 ∂i7 φ'i6i5 J(x') dx',
- Concerning the first term (φi1i0) nothing.
- Concerning the second term (∂i4 φi3i2) a reduction with respect to i4 with the matrix B.
- Concerning the third term (∂2i7 / P, i7 mod P φi6i5) a reduction of t'0 with respect to i7 with the matrix B3 and a reduction of t'1 with respect also to i7 with the matrix B3B2
The reductions are to be made on each integration point if the geometric transformation is non-linear. Once those reductions are done, an addition of all the tensor resulting of those reductions is made (with a factor equal to the load of each integration point if the geometric transformation is non-linear).
If the finite element is non-τ-equivalent, a supplementary reduction of the resulting tensor with the matrix M has to be made.
