Click here to read what the information on this page means.
This element is implemented in
Symfem and
(legacy) UFL.
↓ Show implementation detail ↓↑ Hide implementation detail ↑Symfem | "direct serendipity" ↓ Show Symfem examples ↓↑ Hide Symfem examples ↑Before running this example, you must install Symfem: pip3 install symfem This element can then be created with the following lines of Python: import symfem
# Create direct serendipity degree 1 on a quadrilateral element = symfem.create_element("quadrilateral", "direct serendipity", 1)
# Create direct serendipity degree 2 on a quadrilateral element = symfem.create_element("quadrilateral", "direct serendipity", 2)
# Create direct serendipity degree 3 on a quadrilateral element = symfem.create_element("quadrilateral", "direct serendipity", 3) This implementation is used to compute the examples below and verify other implementations. |
(legacy) UFL | "Sdirect" ↓ Show (legacy) UFL examples ↓↑ Hide (legacy) UFL examples ↑Before running this example, you must install (legacy) UFL: pip3 install setuptools pip3 install fenics-ufl-legacy This element can then be created with the following lines of Python: import ufl_legacy
# Create direct serendipity degree 1 on a quadrilateral element = ufl_legacy.FiniteElement("Sdirect", "quadrilateral", 1)
# Create direct serendipity degree 2 on a quadrilateral element = ufl_legacy.FiniteElement("Sdirect", "quadrilateral", 2)
# Create direct serendipity degree 3 on a quadrilateral element = ufl_legacy.FiniteElement("Sdirect", "quadrilateral", 3) |
- Arbogast, Todd and Tao, Zhong. Direct serendipity and mixed finite elements on convex quadrilaterals, arΧiv: 1809.02192, 2018. [BibTeX]
Element added | 27 May 2021 |
Element last updated | 27 September 2024 |