Using Hexahedron Element
I am trying to use a hexahedron element, but thing goes wrong when I compile using FFC. No problem arises when I use a tetrahedron element. This is the my ufl code:
-------
element = VectorElement("CG", "hexahedron", 1)
u = TrialFunction(
v = TestFunction(
f = Coefficient(
#g = Coefficient(
mu = Constant(
lmbda = Constant(
def epsilon(v):
return 0.5*(grad(v) + grad(v).T)
def sigma(v):
return 2.0*mu*epsilon(v) + lmbda*tr(
a = inner(sigma(u), epsilon(v))*dx
L = inner(f, v)*dx
-------
And this is the error I got while compiling
//...
Compiler stage 4: Generating code
-------
Generating code for 3 elements
*** FFC: 'hexahedron'
*** FFC: To get more information about this error, rerun FFC with --verbose.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- UFL Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Anders Logg
- Solved:
- Last query:
- Last reply: