Skip to content

How to get the whole polynomial basis P(n) of a first degree tetrahedral element? #242

Answered by mscroggs
prusso630 asked this question in Q&A
Discussion options

You must be logged in to vote

For a Lagrange element of degree n on a tetrahedron, there are (n+1)(n+2)(n+3)/6 polynomials in the element (you can find this and lots more information on the DefElement Lagrange page).

element.get_basis_functions() gets the finite element basis functions of the element. You can also use element.get_polynomial_basis() to get a basis of the polynomial space on the cell. The results of both these functions will span the same set of polynomials.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mscroggs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants