PTEMS  0.1.0-dev+git.81fd0e4
PolyTopic Element Method Solver
ptems::Polynomials< 2 > Struct Reference

Defines polynomials in the 2D on the reference square \([-1,1]^2\) or reference triangle \( Conv\{(-1,-1),(1,-1),(-1,1)\} \), where \(Conv\) is the convex hull. More...

#include <ptems/spaces/polynomials.hpp>

Inheritance diagram for ptems::Polynomials< 2 >:

Static Public Member Functions

static constexpr std::size_t NumberDoFs (const ReferenceElement< 2 > &element, std::size_t polydeg)
 Gets the number of degrees of freedom required for a polynomial of the specified degree on the specified reference element. More...
 

Detailed Description

Defines polynomials in the 2D on the reference square \([-1,1]^2\) or reference triangle \( Conv\{(-1,-1),(1,-1),(-1,1)\} \), where \(Conv\) is the convex hull.

Member Function Documentation

◆ NumberDoFs()

static constexpr std::size_t ptems::Polynomials< 2 >::NumberDoFs ( const ReferenceElement< 2 > &  element,
std::size_t  polydeg 
)
inlinestaticconstexpr

Gets the number of degrees of freedom required for a polynomial of the specified degree on the specified reference element.

Parameters
elementThe reference element (triangle or square)
polydegThe degree of the polynomial
Returns
The number of degrees of freedom

The documentation for this struct was generated from the following file: