Gradient of the shape function wrt natural coordinate system?

20 views
Skip to first unread message

Yuxiang Wang

unread,
Oct 14, 2018, 1:57:53 PM10/14/18
to deal.II User Group
Dear all,

While I can use the shape_grad function to get the gradient of the shape function with respect to the real cell coordinates, would there be a way to get the shape_grad with respect to the reference natural coordinates? For example, for shell element (that I'm working on), I have the global coordinates (x, y, z) for a point and also a natural coordinate system (r, s, t). 

One possibility is that I can use the chain rule and the jacobian matrix to get that value, but it'll be very computationally inefficient. Could anyone please help?

Best,
Shawn

Wolfgang Bangerth

unread,
Oct 14, 2018, 4:47:47 PM10/14/18
to dea...@googlegroups.com
I think you are asking for the *unmapped* shape functions as they are defined
on the reference cell. That's something you can get from the finite element
itself via the
FiniteElement::shape_grad()
function or its implementation in derived classes.

The gradient of the shape functions mapped to a particular cell in a mesh can
be obtained via FEValues::shape_grad(), which I think is what you are
referring to above.

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Yuxiang Wang

unread,
Oct 14, 2018, 10:51:24 PM10/14/18
to dea...@googlegroups.com
Exactly what I was looking for! Thank you so much Professor Bangerth.

Have a great one,
Shawn

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/-s1Dc9sbPE4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Yuxiang "Shawn" Wang, PhD
Reply all
Reply to author
Forward
0 new messages