How to add a new node to the current mesh?

I have a mesh structure where I have placed a source at a certain point. By deforming the mesh domain, as expected, the source point is also moved. Is there a way to keep the source point fixed without generating a new mesh domain (e.g. by gmsh), and deform the mesh structure?
Is there any way to add a new node to the dolfinx.mesh.Mesh (not the gmsh mesh)?


By adding a new node to the mesh, you would have to introduce new cells, i.e. both the mesh topology (cell->node connectivity) and mesh geometry (the physical nodes) has to change, and for that to happen, you would need to re-create a mesh with the modified topology and geometry.

1 Like

Can I combine two mesh structure, one to be deformed and the other fixed??

You can always move the geometry back and forth for the different purposes (i.e. modify the entries of mesh.geometry.x[:,:]

1 Like