Would it be possible to update one mesh based on two different level-set solutions?

Dear developers:

I have two enquiries:

  1. We hope to solve some multi-material problem. The material’s interfaces are described by the level-set functions. We want to know the possibility if MMG2D/MMG3D can update one mesh based on two different level-set functions, and to define the interface labels/region labels?
  2. Our another interest is to refine the mesh alongside the fluid-solid boundary. And this boundary is described by the level-set function. Also, we hope the refinement elements can be distributed uniformly along the boundary. We guess that one possible way is to update mesh firstly based on an implicit solution (level set), secondly based on a solution (velocity gradient). Or is there any other way to achieve this goal?

Sincerely yours,
Hao

Hi,

  1. It is not possible to discretize more than 1 level-set value in one call. You will need to discretize each level-set successively and to preserve the first discretized value using the remaping of the references by a .mmg2d file (How to keep original region label after MMG update).

  2. I am not sure to understand this question: you want to discretize the level-set and to respect a size map defined on the intial mesh?

Regards,

Dear Algiane,

  1. I see, let me try the proposed schematic;
  2. I think the link you sent to me right now: https://www.mmgtools.org/local-parameters-for-bound can perfectly address our issue. In that case we can get the refined mesh alongside the level set interface uniformly, so we do not have to refine a second time based on the solution file.

Sincerely yours,
Hao