On 7/17/24 09:15, Vinayak Vijay wrote:

In line 63, the differentiation of the energy function (psi_sd) with respect to left cauchy green tensor (b_sd) results in  the Kirchhoff stress tensor tau_sd = zero tensor. I believe this is due to the fact that tau_sd is stored as a function of F_sd (symbolic deformation gradient) and is therefore unable to recognise the dependence with b_sd (symbolic left cauchy green tensor).

How can i resolve this issue? Thanks in advance.

If I understand your question right, you have a function
  f(x)
and you are computing
  d/dy f(x)
which is indeed zero because you have not said anything about how x and y are related. If x can be expressed as a function of y, say x=g(y), then you need to tell the autodifferentiation machinery that your function f is really
  f(g(y))
i.e., everywhere where you previously used x, you need to replace it by g(y) to make it clear that f is a function of y.

Does this help?

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/202817e7-c8c9-4683-a53d-0e058412c766%40colostate.edu.

Reply via email to