Yes, thank you for the warning, that could be an issue indeed. In my case I am using P2 elements, I'll check the best way to approach this, thank you!
Il giorno venerdì 4 aprile 2025 alle 18:29:26 UTC+2 Wolfgang Bangerth ha scritto: > On 4/4/25 10:25, Sclah wrote: > > ** > > > > Yes! Thank you very much, I was indeed missing the mathematical > derivation. > > I better checked my computations and I actually need: > > /div([I + grad(u)]^{-T})/ instead of /div([I + grad(u)]^{-1})/ but > following > > your steps that leads to a similar result: > > /div([I + grad(u)]^{-T}) = - Finv [grad(grad(u)^T)] Finv/ > > Then I guess that using get_function_hessians() on /u/ is what I need to > > assemble correctly my weak form. > > Yes. I imagine you're aware of that, but if you're using the usual set of > finite elements, the gradient is discontinuous and so the second > derivatives > are not defined at cell interfaces; in general, the second derivative of > the > finite element solution is a poor approximation of the second derivative > of > the exact solution. (In the extreme case, if you were using linear > elements on > triangles, then the gradient is constant and the second derivative is > always > zero.) > > Best > W. > > -- > ------------------------------------------------------------------------ > Wolfgang Bangerth email: bang...@colostate.edu > www: http://www.math.colostate.edu/~bangerth/ > > > -- 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+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/dealii/4014bdaa-ef6c-42e8-a824-f811b0a47127n%40googlegroups.com.