Skip to content

Enhancements for replacing grids functionality #1264

Open
@jhabriel

Description

@jhabriel

The replacing grids and interfaces functionality has two important restrictions:

  1. Some of the methods assume that the new grids are Gmsh-generated, which is no longer true in the case of grids created via AMR routines.
  2. Replacement is limited to mixed-dimensional grids whose ambient dimension is 2.

The first restriction can be tackled with careful geometric sanity checks, whereas the second restriction is more challenging, although it seems that the current implementation can be extended with some effort to the 3d case.

Another point to consider is whether it makes sense to centralise this functionality into a new class that manages the grid replacement process. Currently, the functionality depends on several methods/functions that are located in different parts. These are: grids.md_grid.replace_subdomains and interfaces(), grids.mortar_grid.update_mortar, grids.mortar_grid.update_primary, grids.mortar_grid.update_secondary, and grids.match_grids. Not sure whether the update methods are used in other parts or only for replacement.

PD: Since I will have to address the two aforementioned restrictions for my AMR project, it could be a good opportunity to incorporate these changes into PorePy.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions