Non-conformal mesh contacts

Numerical methods and mathematical models of Elmer
kevinarden
Posts: 2418
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Non-conformal mesh contacts

Post by kevinarden »

The whole case is here
https://github.com/mrkearden/case
Tapegoji
Posts: 28
Joined: 12 May 2024, 00:22
Antispam: Yes

Re: Non-conformal mesh contacts

Post by Tapegoji »

Thank you very much for doing that. It makes sense. I was using gmsh fragment option that does the same thing. However, there were some issues with that.

I noticed that you have Mortar BC = 3 in the boundary condition. but I did not see any boundaries named 3. did you use mortar boundary in this case?


! pos
Boundary Condition 1
Target Boundaries(1) = 1
Name = "VoltageP"
Potential = 1
Mortar BC = 3
End
kevinarden
Posts: 2418
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Non-conformal mesh contacts

Post by kevinarden »

No I did not the mesh was conforming
Tapegoji
Posts: 28
Joined: 12 May 2024, 00:22
Antispam: Yes

Re: Non-conformal mesh contacts

Post by Tapegoji »

Sometimes, I have a mesh that is non-conformal. If you don't mind can you try it with mortar bc and see if that works?

I really appreciate it
raback
Site Admin
Posts: 4851
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Non-conformal mesh contacts

Post by raback »

Hi

Just some thoughts about meshing vs. mortar methods:

Meshing may be tedious and then there is a hope that one could use existing pieces of meshes and glue them together. In finite element methods you can do the glueing using so called mortar finite elements. These basically integrate over the shared boundary with the Galerkin method creating a weak condition between the two boundaries. Another alternative is to find the nodes (or even edges) directly in the mesh creating a strong projector between the values. This introduces significant errors.

Both of these methods introduce a constraint matrix and even if you are succesfull in creating the conditions you end up with a saddle-point problem which is considerably more challenging solve. You may in some cases perform elimination but this is still partly work in progress.

Hence, if possible, I would try to use conformal meshes. Those provide optimal accuracy. Only if you truly have rotating/sliding BC's are these BC's impossible to avoid. Time spent in meshing will be gained in more robust numerics.

-Peter
Tapegoji
Posts: 28
Joined: 12 May 2024, 00:22
Antispam: Yes

Re: Non-conformal mesh contacts

Post by Tapegoji »

Thank you Peter,

I spent some time and made the mesh conformal. I am still figuring out how to make mortar bc works in this case, just for future reference.
kevinarden
Posts: 2418
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Non-conformal mesh contacts

Post by kevinarden »

Here is an example of a mortar connection.
mortar_case.zip
(37.01 KiB) Downloaded 4 times
Tapegoji
Posts: 28
Joined: 12 May 2024, 00:22
Antispam: Yes

Re: Non-conformal mesh contacts

Post by Tapegoji »

Thank you
Post Reply