dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #20834
[Question #142105]: Making scalar values with Frobenius inner product of two 2nd order tensors
New question #142105 on DOLFIN:
https://answers.launchpad.net/dolfin/+question/142105
Hi.
I want to calculate a scalar value(strain energy) with two 2nd-order tensors.
In the FFC User manual,
dot(A, B) = A:B =sum(A_ij*B_ij) #When A and B are 2nd-order tensors.
But it seems not working. When I tried to project the result error poped up.
Error message is
'ufl.log.UFLException: Shape mismatch.'
My code is written below.
Q = FunctionSpace(mesh, "CG", 1)
P=dot(A, B)
ans = project(P, Q)
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.
Follow ups