<div dir="ltr"><div>Hi - a solver I'm testing requires all that elements in a gmsh .msh belong to a single elementary/physical region, e.g. "fluid".  For another solver, we use different regions to help adjust mesh density ("wake", "fluid", "pml"}. For example, if we specify Physicals like this:</div><div><br></div><div>Physical Surface("wake") = {ps1};</div><div>Physical Surface("fluid") = {ps2};</div><div>Physical Surface("pmlxy") = {ps3};</div><div><br></div><div>then in the mesh file, we get a PhysicalNames section like this:</div><div><br></div><div>$PhysicalNames</div><div>7</div><div>1 1 "Wall"</div><div>1 2 "Slip"</div><div>1 3 "Inflow"</div><div>1 4 "Outflow"</div><div>2 5 "wake"</div><div>2 6 "fluid"</div><div>2 7 "pmlxy"</div><div>$EndPhysicalNames</div><div><br></div><div>In the $Elements section, Physicals {5,6,7} get tags like this:</div><div><br></div><div>2 2 5 530</div><div>2 2 6 531</div><div>2 2 7 532</div><div><br></div><div>What we want is to merge all three of these 2d ("Plane Surface") regions into a single "fluid" physical, like this:</div><div><br></div><div>$PhysicalNames</div><div>5</div><div>1 1 "Wall"</div><div>1 2 "Slip"</div><div>1 3 "Inflow"</div><div>1 4 "Outflow"</div><div>2 5 "fluid"</div><div>$EndPhysicalNames</div><div><br></div><div>We can do this manually by replacing tags for physicals 6 and 7 with tags for physical 5; just wondering if gmsh has a command or plugin to do this?</div><div><div><div><br></div><div>- thanks!<br></div></div></div><div><br></div></div>