pygeon.discretizations.poly_projection module
- pygeon.discretizations.poly_projection.get_PwPolynomials(poly_order, tensor_order)[source]
Returns the piecewise polynomial discretization class based on the polynomial order.
- pygeon.discretizations.poly_projection.proj_to_PwPolynomials(discr, sd, poly_order)[source]
Constructs a projection operator to piecewise polynomial spaces of a specified order.
- Parameters:
discr (pg.Discretization) – The current discretization object.
sd (pg.Grid) – The grid on which the projection is performed.
poly_order (int) – The target polynomial order for the projection.
- Returns:
A sparse matrix representing the projection operator to the specified piecewise polynomial space.
- Return type:
sps.csc_array