Jacobians of materials with coupled variables #25796
-
|
I have a material that is a function of various solution variables ( Because these are very general materials, I don't always know what they will be functions of. Is there a way to have my kernel add the coupled solution variables for a given material property to it's own without having to add that to the input definition? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
|
Hello Computing the Jacobian inside a material is not standard. It s the kernel's role to compute the Jacobian. Did you verify that A kernel will not be able to modify the way a material property is being computed. The material property is pre-computed for all quadrature points when considering an element in the residual loop & jacobian loop Guillaume |
Beta Was this translation helpful? Give feedback.
If you use AD, it will capture that additional dependencies naturally when computeResidual is called for computing the Jacobian.
If you do not use AD, then implementing the computeOffDiagJacobian is where you need to capture all these dependencies, manually. You ll need to add the derivatives of the material properties with regards to the variables coupled in