This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Implementing elements from femtable.org

0 votes

Hi,

I am using in python the following line for creating a space for a scalar field:

FunctionSpace(mesh, 'CG', 1)

Will this implementation be deprecated in the future versions?

How is the new implementation according to the femtable.org ?

In the documentation FunctionSpace has three arguments, mesh, element, dofmap. The first argument is clear. The second argument shall be

FiniteElement('P', domain=mesh, degree=1)

according to the documentation. Or actually it should be

FiniteElement('P', tetrahedron, 1, 0)

according to the periodic table. The third arguments isn't clear to me. How to get the dofmap in python?

asked Dec 22, 2015 by emek FEniCS Novice (170 points)
...