Getting element/cell ID #1073
-
Hi, I want to compare some results with another code. In this context, it would be helpful to get the quadrature points in combination with the respective global element ID. Are there element IDs in Gridap? I have the following code below and it would be helpful to get the element ID for each cell data
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Can you describe what you mean by element id? Are you referring to cells/faces/dofs/points? |
Beta Was this translation helpful? Give feedback.
-
All information on the subcell-to-cell map is in the |
Beta Was this translation helpful? Give feedback.
All information on the subcell-to-cell map is in the
SubCellData
structure. In particular, you are asking for thecell_to_bgcell
array. From aSubCellTriangulation
(i.e yourΩ
), you can access it throughΩ.subcells.cell_to_bgcell
. It will also be part of yourFaceToFaceGlue
when you callget_glue(Ω,Dc)
withDc
your cell dimension. In case of doubt, just go through the code inGridapEmbedded/Interfaces/SubCellTriangulations.jl
.