Skip to content

Computing barycentric coordinates in Tensor Product Cells#246

Draft
achanbour wants to merge 45 commits intomainfrom
achanbour/bary-coords-fiat
Draft

Computing barycentric coordinates in Tensor Product Cells#246
achanbour wants to merge 45 commits intomainfrom
achanbour/bary-coords-fiat

Conversation

@achanbour
Copy link
Copy Markdown

This is the first part of PR #245 concerning changes to FIAT only. In particular, I have extended FIAT to enable the computation of barycentric coordinates on tensor product cells.

The main distinction lies in how barycentric coordinates are represented in simplicies vs tensor product cells. For simplicies, there is one barycentric coordinate per vertex so the default ordering of these coordinates follows the vertex ordering. For tensor product cells, there is one barycentric coordinate per facet so the natural ordering is that of facets.

First, to enable facet ordering in simplicies, I have added a facet ordering permutation in SimplicialComplex.compute_barycentric_coordinates. Then, since barycentric coordinates in tensor product cells are computed recursively on each factor, having facet ordering on the simplicies that form each factor ensure that we obtain facet ordering on the tensor-product cell as a whole.

achanbour and others added 30 commits February 9, 2026 12:12
…ion to handle nested tensor-product cells + added tests
Co-authored-by: Pablo Brubeck <brubeck@protonmail.com>
@pbrubeck
Copy link
Copy Markdown

pbrubeck commented May 8, 2026

Looks like you are including commits form #240. Are they needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants