Please post your code with triple backquotes ``` not quotes to have proper code formatting. Your error is not related to finite element basis functions but to the mathematical shape of objects incovled in the form. For instance, D*grad(u)*v*dx
is not a valid expression since D
is a scalar, grad(u)
a vector and v
a scalar.
1 Like