generalized_inner_product() and handling of symmetric tensors #1886
Unanswered
jiyanshagarwal
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Hi @jiyanshagarwal Mike |
Beta Was this translation helpful? Give feedback.
1 reply
-
@jiyanshagarwal to get correct matrix multiplication, you can define your stress tensor as a 3x3 matrix and your surface normal as a 3x1 matrix. See example below, let me know if this works for you.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I am working on a script with pyDPF-core and had a question about how generalized_inner_product() works. I am computing the traction vector from the stress vector and surface normal. However, when I use the generalized_inner_product() operator, I got unexpected results.
Made a minimal example:
Output:
[[6. 6.5 8.5]
[0. 0. 0. ]]
Expected Output:
[[11. 11. 14.]
[0. 0. 0. ]]
This confirmed that when acting on fields with nature=symmatrix, generalized_inner_product() divides the off-diagonal components by 2 before computing the product.
Wanted to know if this is intended behavior. Is there some property I can set to get around this?
Beta Was this translation helpful? Give feedback.
All reactions