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

[Howto] Implement a C++ Finite Element

+1 vote

Dear all,

I was wondering, is there some documentation on how one could implement a FE to be used in Fenics? I'm planning on using only C++ for now.

Thanks!

asked Sep 25, 2015 by senseiwa FEniCS User (2,620 points)

1 Answer

+2 votes
 
Best answer

If you would like to implement an element in C++ you would
have to do it according to the UFC interface. Look for tabulate_tensor,
evaluate_basis and similar functions. A howto for this has not
been written yet, but UFC is properly documented.

answered Sep 28, 2015 by Kent-Andre Mardal FEniCS Expert (14,380 points)
selected Sep 29, 2015 by senseiwa

Thanks for the pointer!

...