I’m getting "module ‘dolfin.mesh’ has no attribute ‘ufl_cell’ " error while analyzing a 3D structure for linear elasticity. The error expression is like this:
AttributeError Traceback (most recent call last)
in ()
12 return lp_f
13
—> 14 V0 = TensorFunctionSpace(mesh, “DG”, 0)
15 stress_2 = local_project(stress, V0)
16
/usr/local/lib/python3.7/dist-packages/dolfin/function/functionspace.py in TensorFunctionSpace(mesh, family, degree, shape, symmetry, constrained_domain, restriction)
251
252 # Create UFL element
→ 253 element = ufl.TensorElement(family, mesh.ufl_cell(), degree,
254 shape, symmetry)
255
AttributeError: module ‘dolfin.mesh’ has no attribute ‘ufl_cell’
I’m very new to FEniCS, so as far as I understand, it is not possible to change a “mesh.ufl_cell()” in a built-in function. Might there be another reason of this error?