--
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 the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/CAFYG0Dajn4umL%3DoRx57-PSVpvRswNqHVCinpG-8xZ%3Da5t3RwAA%40mail.gmail.com.
You may be comparing the gradient on reference and real cells. They will differ by some factor due to the mapping.FE.shape_grad gives gradient on reference cellhttps://dealii.org/current/doxygen/deal.II/classFiniteElement.html#aaaafefdf45fc2a5e7db18acb64063f5dFEValues.shape_grad gives gradient on real cell
On 17-Oct-2019, at 9:51 AM, het patel <het...@gmail.com> wrote:
Hello Deal.II users
I recently started learning to use deal.II and was going through step-3 tutorial. I was checking shape_value() and shape_grad() function values to see which lagrange shape function it is calculating and I found that values of the gradient to be different.
For e.g. at gauss point ( -0.577, -0.577) it gave gradient as [ -0.788675 , -0.788675] whereas it should be [-0.394 , -0.394 ] according to my calculation. Am I making mistake somewhere ?
Sincerely
Het Patel--
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 the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dea...@googlegroups.com.
On 17-Oct-2019, at 11:19 PM, het patel <het...@gmail.com> wrote:That is a nice piece of information. Yes, it is doing integration on the real cell. I didn't knew that there was something like FE.shape_grad for integration on the reference cell. I thought it did by default isoparametric mapping with FEValues and JxW was for the mapping.
-Het