You can access the original cell index as done here: Wrong order of dofs after creating mesh from lists of points and cells - #5 by dokken
dokken
13
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
|
How to assign different material properties to elements (Linear Elasticity)
|
19 | 3863 | July 20, 2020 | |
| How to define spatially varying Young’s modulus from a NumPy array in FEniCSx? | 1 | 77 | May 12, 2025 | |
| My material is defined only with one material and not 2 | 6 | 342 | January 26, 2024 | |
|
Applying spatially varying material
|
2 | 839 | February 10, 2020 | |
| Variational formulation of elasticity problem when using different function types | 2 | 130 | July 3, 2024 |