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

How to obtain an abbreviation of FEM family?

+2 votes

Dear all,

please what is the best way to obtain something like CG, DG ... instead of Lagrange, Discontinuous Lagrange ... from function V.ufl_element().family()?

Thank you very much in advance!

asked Aug 24, 2014 by luk.p FEniCS User (3,470 points)

1 Answer

+3 votes
 
Best answer

Hi, I think what you are looking for is the _short_name attribute of ufl.FiniteElement

print V.ufl_element()._short_name
answered Aug 24, 2014 by MiroK FEniCS Expert (80,920 points)
selected Aug 24, 2014 by luk.p

Thank you, that was exactly what I was looking for!

...