Hi
I want to solve a elasticity problem in a 2 dimensional domain. My equation is:
We can write it in this form which is the equation I am trying to solve : (eq.*)
In general
and C is a tensor of rank 4 that can be written in a 66 matrix. But in plane-stress case it reduces to a 33 matrix.
This is a part of my code:
C= Constant(((E11,E12,0),(E12,E22,0),(0,0,E33)))
domain = mshr.Rectangle(Point(0,0), Point(10,5))
mesh = mshr.generate_mesh(domain, 60)
V=VectorFunctionSpace(mesh1, 'CG', 1)
u = TrialFunction(V)
v = TestFunction(V)
a =.....+dt*dt*inner(C*grad(u), grad(v))*dx+.....
The problem is that the C tensor (which is a 33 matrix) in my weak form can not be multiplied by the displacement. Because I only have two dimensions and displacement is a 21 vector . That is why I get "mismatch.shape" error in the line where I have defined "a" according to (eq.*). Could you help me to resolve this issue?