1
$\begingroup$

I am developing an Abaqus UEL with 3D 8 nodes brick elements and I need second order derivatives of the shape functions, I have already mapped the first order derivatives from the element coordinates to the physical coordinates through: $\frac{\partial N}{\partial \textbf{X} } = J^{-1} \frac{\partial N}{\partial \textbf{x}} $ where $N$ are the shape functions, $X$ the physical coordinates, $x$ the local coordinates and the Jacobian matrix is $J_{ij}=\frac{\partial N}{\partial x_i} X_j$.

How can I compute and implement the second order derivatives of the shape functions with respect to global coordinates?

$\endgroup$
2
  • $\begingroup$ Apply the first order operator twice? $\endgroup$
    – ConvexHull
    Commented Feb 1, 2021 at 17:42
  • $\begingroup$ Can you comment a little bit on the problem that you want to solve? $\endgroup$
    – nicoguaro
    Commented Feb 1, 2021 at 17:51

2 Answers 2

6
$\begingroup$

You want to compute the following (let me use $\nabla$ instead of your $\frac{\partial}{\partial\textbf{X}}$ for derivatives in real space and $\hat\nabla$ instead of $\frac{\partial}{\partial\textbf{x}}$ for derivatives on the reference cell) $$ (\nabla^2 N)_{ij} = \nabla_i(\nabla_j N) = [J^{-1}]_{ik} \hat\nabla_k ([J^{-1}]_{jl} \hat\nabla_l N). $$ By the product rule, this is $$ (\nabla^2 N)_{ij} = [J^{-1}]_{ik} [J^{-1}]_{jl} (\hat\nabla^2 N)_{kl} + [J^{-1}]_{ik} \hat\nabla_k[J^{-1}]_{jl} \hat\nabla_l \hat N. $$ You know $J^{-1}$ here from computing the first derivatives, and computing the derivatives $\hat\nabla^2 N$ is easy because it happens on the reference cell. The difficulty is the derivative of the inverse of the Jacobian: $$ \hat\nabla [J^{-1}]. $$ This has a simple solution: We know $$ \hat\nabla [JJ^{-1}]=0 $$ and so $$ J \hat\nabla [J^{-1}] + [\hat\nabla J] [J^{-1}] = 0. $$ which you can solve for $$ \hat\nabla [J^{-1}] = -[J^{-1}] [\hat\nabla J] [J^{-1}] $$ where $\hat\nabla J$ is simply the second derivative of the transformation, and is as easily computed as $J$ was in the first place.

$\endgroup$
-3
$\begingroup$

While the answer of Wolfgang Bangerth is mathematically sound, it should be noted that doing this for shape functions of an 8 node brick would result in a 0 tensor. The shape functions are all linear, and hence, the second order derivatives are all 0. You would probably need to use higher order elements like a 27 node brick (better than the 20 node serendipity elements IMO) to have second derivatives of the shape functions.

$\endgroup$
2
  • 2
    $\begingroup$ That is not correct. The shape functions are not linear, they are trilinear, which implies cubic polynomials because of the crossed terms $xyz$. Furthermore, $J^{-1}$ is not a polynomial, in general. So, the product of $J^{-1} \hat\nabla$ is a rational function and its gradient is different from 0. $\endgroup$
    – nicoguaro
    Commented Aug 18, 2022 at 14:31
  • $\begingroup$ Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. $\endgroup$
    – Community Bot
    Commented Aug 18, 2022 at 16:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.