# MeshLevelSet¶

class MeshLevelSet(*args)

GetFEM MeshLevelSet object

General constructor for mesh_levelset objects. The role of this object is to provide a mesh cut by a certain number of level_set. This object is used to build conformal integration method (object mim and enriched finite element methods (Xfem)).

General constructor for MeshLevelSet objects

• MLS = MeshLevelSet(Mesh m) Build a new MeshLevelSet object from a Mesh and returns its handle.
adapt()

Do all the work (cut the convexes with the levelsets).

To initialice the MeshLevelSet object or to actualize it when the value of any levelset function is modified, one has to call this method.

add(ls)

Only a reference is kept, no copy is done. In order to indicate that the linked Mesh is cut by a LevelSet one has to call this method, where ls is an LevelSet object. An arbitrary number of LevelSet can be added.

WARNING

The Mesh of ls and the linked Mesh must be the same.

char()

Output a (unique) string representation of the MeshLevelSetn.

This can be used to perform comparisons between two different MeshLevelSet objects. This function is to be completed.

crack_tip_convexes()

Return the list of convex #id’s of the linked Mesh on which have a tip of any linked LevelSet’s.

cut_mesh()

Return a Mesh cut by the linked LevelSet’s.

display()

displays a short summary for a MeshLevelSet object.

levelsets()

Return a list of references to the linked LevelSet’s.

linked_mesh()

Return a reference to the linked Mesh.

memsize()

Return the amount of memory (in bytes) used by the MeshLevelSet.

nb_ls()

Return the number of linked LevelSet’s.

sup(ls)

Remove a link to the LevelSet ls.