SCOREC / core

parallel finite element unstructured meshes
Other
179 stars 63 forks source link

Wrong vertex classification on a partitioned mesh starting from a gmsh generated mesh #418

Closed zhangchonglin closed 4 months ago

zhangchonglin commented 4 months ago

This may be related to issue #415.

For a simple partitioned mesh: rectangular domain with 4 mesh parts, the vertex classification on some mesh parts are incorrect. Below is a mesh part with wrong vertex classification. @cwsmith: do you have any idea what could be wrong? Thanks!

Flatplate_vertex_class_dim_nparts=4

The procedures to generate the mesh partition file are as follows:

The gmsh mesh file is generated by doing the following:

location_of_gmsh/gmsh 2d_flatplate.geo -2

where the content of 2d_flatplate.geo is given below:

// points
Point(1) = {0, 0, 0, 0.02};
Point(2) = {1, 0, 0, 0.02};
Point(3) = {1, 0.8, 0, 0.02};
Point(4) = {0, 0.8, 0, 0.02};

// lines and circle
Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {3, 4};
Line(4) = {4, 1};
// define 1d geometry
Line Loop(1) = {4, 1, 2, 3};
// define 2d geometry
Plane Surface(1) = {1};

// define model
Physical Line("inlet") = {4};
Physical Line("outlet") = {2, 3};
Physical Line("wall") = {1};
Physical Surface("sim_domain") = {1};

// meshing the geometry
Mesh 2;
cwsmith commented 4 months ago

@zhangchonglin Is the classification of the serial mesh created by from_gmsh correct?

zhangchonglin commented 4 months ago

@cwsmith: the classification of the series mesh created by gmsh was correct. In that case, the gmsh mesh file .msh is directly read in.

cwsmith commented 4 months ago

@zhangchonglin OK. Then the problem seems to be with print_pumipic_partition or something that happens afterwards.

zhangchonglin commented 4 months ago

@cwsmith: I think that's probably is the case. Of all the 4 mesh parts, two of the mesh parts (same as the full mesh) have correct vertex classifications. See below for two mesh parts, where one has correct vertex classification, while the other has wrong vertex classification. mesh_ownership_class_dim

zhangchonglin commented 4 months ago
zhangchonglin commented 4 months ago

Flatplate_owneship_vertex_class_dim_nparts=4