Vulpes  0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
fe_modal_simplex.hpp File Reference
#include <algorithm>
#include <vector>
#include <Eigen/Dense>
#include "vulpes/fe/fe_space.hpp"
#include "vulpes/fe/fe_spaces/fe_lagrange_simplex.hpp"
#include "vulpes/polynomials/ndpolynomial.hpp"
Include dependency graph for fe_modal_simplex.hpp:

Go to the source code of this file.

Classes

class  vulpes::fe::FeSpaceModalP< Dim, DofPolicy >
 Modal FE Space on simplex elements. More...

Namespaces

namespace  vulpes
namespace  vulpes::fe
namespace  vulpes::fe::internal

Typedefs

template<std::size_t Dim>
using vulpes::fe::FeSpaceModalLegendreDP = FeSpaceModalP<Dim, DofPolicyFeSpaceDP<Dim>>
 Modal DiscontinuousLegendre FE Space on simplex elements with optimal conditioning for simplex elements.

Functions

template<typename T>
T vulpes::fe::internal::jacobiP (const T &x, std::size_t alpha, std::size_t beta, std::size_t N)
 Evaluate the Jacobi Polynomial of degree N and parameters (alpha,beta) at point x.
template<typename T>
T vulpes::fe::internal::simplex2DP (const Eigen::Vector< T, 2 > &ab, const std::array< std::size_t, 2 > &ij)
 Evaluate the 2D modal basis functions on simplex elements in barycentric coordinates.
template<typename T>
T vulpes::fe::internal::simplex3DP (const Eigen::Vector< T, 3 > &abc, const std::array< std::size_t, 3 > &ijk)
 Evaluate the 3D modal basis functions on simplex elements in barycentric coordinates.
template<typename T>
Eigen::Vector< T, 2 > vulpes::fe::internal::rs2ab (const Eigen::Vector< T, 2 > &rs)
 Map from (r,s) to (a,b) coordinates for 2D simplex.
template<typename T>
Eigen::Vector< T, 3 > vulpes::fe::internal::rst2abc (const Eigen::Vector< T, 3 > &rst)
 Map from (r,s,t) to (a,b,c) coordinates for 3D simplex.
template<typename T, std::size_t Dim>
T vulpes::fe::internal::evalSimplex (const Eigen::Vector< T, Dim > &x, std::size_t n)
 Evaluate the modal basis function of index n at point x in the Dim-simplex.
template<typename T, std::size_t Dim>
Eigen::Vector< T, -1 > vulpes::fe::internal::interpolateFunctionAtNodes (const std::vector< Eigen::Vector< T, Dim > > &nodes, const std::function< T(const Eigen::Vector< T, Dim > &)> &f, std::size_t deg)
 Interpolate a function f at given nodes in the Dim-simplex and return the coefficients of the interpolating polynomial.