Vulpes  0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
vulpes::assemble::GatheredMonomial< Dim > Struct Template Reference

Represents a monomial after the "gathering" process for face integrals. More...

#include <integrator_qfree.hpp>

Public Attributes

uint16_t integr_id
 A unique ID representing the part of the monomial to be integrated (e.g., \(x^\alpha y^\beta\)).
std::array< uint8_t, Dim *2 > evalut_id
 A unique ID for the common evaluation part of the monomial (e.g., the term \(J^2 T^1\) in \(J^2 T^1 (c_1 J + c_2 T)\)).
std::vector< std::pair< double, std::array< uint8_t, Dim *2 > > > gather
 A collection of remaining terms. Each pair contains a coefficient and the exponents of the non-common evaluation part.

Detailed Description

template<std::size_t Dim>
struct vulpes::assemble::GatheredMonomial< Dim >

Represents a monomial after the "gathering" process for face integrals.

Template Parameters
DimThe spatial dimension of the problem.

A monomial from a face expression involving a neighbor cell is "lifted" into a higher dimensional space (that is the space where the extra variables are the parameters of the physical (cartesian) mapping of the cell). This struct helps to factorize and group terms of this lifted monomial.

E.g., in 2D we have P(x, y, j1, j2, t1, t2) where X = (x, y) are physical coordinate, J is the diagonal of the Jacobian and T the translation. Then, P must be integrated in the X variable and evaluated in the J and T variables. We write P as \( P = X^\Alpha * J^\Beta * T^\Gamma * (\sum c_k * J^\Delta_Jk * T^\Delta_Tk) \) where \(\Alpha, \Beta, \Gamma, \Delta_Jk, \Delta_Tk\) are multi-indices

Member Data Documentation

◆ evalut_id

template<std::size_t Dim>
std::array<uint8_t, Dim * 2> vulpes::assemble::GatheredMonomial< Dim >::evalut_id

A unique ID for the common evaluation part of the monomial (e.g., the term \(J^2 T^1\) in \(J^2 T^1 (c_1 J + c_2 T)\)).

◆ gather

template<std::size_t Dim>
std::vector<std::pair<double, std::array<uint8_t, Dim * 2> > > vulpes::assemble::GatheredMonomial< Dim >::gather

A collection of remaining terms. Each pair contains a coefficient and the exponents of the non-common evaluation part.

◆ integr_id

template<std::size_t Dim>
uint16_t vulpes::assemble::GatheredMonomial< Dim >::integr_id

A unique ID representing the part of the monomial to be integrated (e.g., \(x^\alpha y^\beta\)).


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