Re: [deal.II] How to find the cell index by using global dof index

2023-12-06 Thread Wolfgang Bangerth
On 12/6/23 15:06, Lance Zhang wrote: My question is whether I can use NURBS to create the same grids and how I could create the grids with the NURBS. Can you explain what you mean by this? NURBS are basis functions, a mesh is a subdivision of a domain into cells. These are not the same thing,

Re: [deal.II] How to find the cell index by using global dof index

2023-12-06 Thread Lance Zhang
Hello Daniel, thanks for your message. I know how to find the cell index. Could I ask one more question? The question is about the grid. In code I used the function below to create the grid. template Point grid_y_transform (const Point _in) { const double = pt_in[0]; const

Re: [deal.II] How to find the cell index by using global dof index

2023-12-04 Thread Daniel Arndt
Lance, Have a look at GridTools::vertex_to_cell_map( https://www.dealii.org/current/doxygen/deal.II/namespaceGridTools.html#a9b7e2ca8ecd26a472e5225ba91a58acb ). Best, Daniel On Sun, Dec 3, 2023 at 11:38 PM Lance Zhang wrote: > Hello team, > > may I know how to find the cell index with the

[deal.II] How to find the cell index by using global dof index

2023-12-03 Thread Lance Zhang
Hello team, may I know how to find the cell index with the information of its global Dofs index? I have the global dofs index ,I would like to find which cell this global dof belongs to. Thanks in advance! Best regards Lance -- The deal.II project is located at http://www.dealii.org/ For