About geometric modeling

Hello everyone! I have a question about modeling: if my model consists of two regions with a common boundary and I want to use FEniCS to calculate heat transfer or mechanical problems, when drawing the mesh using Gmsh, should the common boundary be drawn as a single edge or as two overlapping edges (such as the interface between a solid and a liquid)? What are the differences between these two methods? If it should be drawn as two overlapping edges, then how can I match these two edges in FEniCS? I hope to get an answer, thank you!

Using single Edge (conforming boundaries) is the easiest

Is possible, But introduces a whole lot of complication, as you would need to find a way of coupling the two nonmatching boundaries in parallel.

Thank you!I would like to know which method is commonly used in most cases (assuming the geometry involves three contacting layers: solid - gas - solid, for solving a heat transfer problem).

I would mesh the boundary between different materials as a single boundary, as you otherwise add alot of mathematical and implementational issues

Thank you, I will try your suggestion! I’m glad you could answer my question in a timely manner!