warp.fem.ElementBasis#

class warp.fem.ElementBasis(*values)[source]#

Choice of basis function to equip individual elements

__init__(*args, **kwds)[source]#

Attributes

LAGRANGE

Lagrange basis functions \(P_k\) for simplices, tensor products \(Q_k\) for squares and cubes

SERENDIPITY

Serendipity elements \(S_k\), corresponding to Lagrange nodes with interior points removed (for degree <= 3)

NONCONFORMING_POLYNOMIAL

Simplex Lagrange basis functions \(P_{kd}\) embedded into non conforming reference elements (e.g. squares or cubes).

NEDELEC_FIRST_KIND

Nédélec (first kind) H(curl) shape functions.

RAVIART_THOMAS

Raviart-Thomas H(div) shape functions.

LAGRANGE = 'P'#

Lagrange basis functions \(P_k\) for simplices, tensor products \(Q_k\) for squares and cubes

SERENDIPITY = 'S'#

Serendipity elements \(S_k\), corresponding to Lagrange nodes with interior points removed (for degree <= 3)

NONCONFORMING_POLYNOMIAL = 'dP'#

Simplex Lagrange basis functions \(P_{kd}\) embedded into non conforming reference elements (e.g. squares or cubes). Discontinuous only.

NEDELEC_FIRST_KIND = 'N1'#

Nédélec (first kind) H(curl) shape functions. Should be used with covariant function space.

RAVIART_THOMAS = 'RT'#

Raviart-Thomas H(div) shape functions. Should be used with contravariant function space.