Computing gradient on both the reference and deformed configuration in the same kernel #29655
-
Check these boxes if you have followed the posting rules.
QuestionHi all, Is it possible to a compute a gradient on the reference and on the deformed configuration in the same kernel? I normally compute gradients by just declaring a Any insight is appreciated, thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Let's say you create a material class that computes the gradient. If in your input file you have two of these objects: one that has the |
Beta Was this translation helpful? Give feedback.
Let's say you create a material class that computes the gradient. If in your input file you have two of these objects: one that has the
use_displaced_mesh=false
and the othertrue
. Then you would have two materials that store the gradient information one for deformed and another for undeformed. From there you should be able to couple them into a kernel and perform any actions needed.