Computing barycentric coordinates in Tensor Product Cells#246
Draft
Computing barycentric coordinates in Tensor Product Cells#246
Conversation
…ts of different sizes
…ion to handle nested tensor-product cells + added tests
…ation works properly for symbolic points
…ds to work on different array shapes
…xpressions representing point sets
…rately with singleton contractions
…ons work on GEM tensor expressions
…_barycentric_coordinates in tp cells
Co-authored-by: Pablo Brubeck <brubeck@protonmail.com>
…plicies and tensor product cells
… sub-entities of simplicies + added notes + modified test checking facet ordering of bary coords on tp cells
|
Looks like you are including commits form #240. Are they needed? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.