# Dynamic Mesh Update in FEniCS for Lagrangian Electrospinning Simulation

**URL:** <https://fenicsproject.discourse.group/t/dynamic-mesh-update-in-fenics-for-lagrangian-electrospinning-simulation/17077>\
**Category:** General\
**Tags:** mesh\
**Created:** [February 25, 2025, 4:46pm UTC](https://fenicsproject.discourse.group/t/dynamic-mesh-update-in-fenics-for-lagrangian-electrospinning-simulation/17077 "2025-02-25T16:46:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [February 25, 2025, 4:49pm UTC](https://fenicsproject.discourse.group/t/dynamic-mesh-update-in-fenics-for-lagrangian-electrospinning-simulation/17077/2 "2025-02-25T16:49:36Z")

</div>

Yes, the mesh geometry can evolve throughout the simulation.  
See for instance:

> [@Moving submesh diverges from its designated trajectory in a two-phase problem](https://fenicsproject.discourse.group/t/moving-submesh-diverges-from-its-designated-trajectory-in-a-two-phase-problem/16792/2):
>
> This is not the right thing to do, as this assumes alot of things about the ordering of degrees of freedom. Here is a minimal example that maps a displacement field from a mesh onto a submesh: """ Map degrees of freedom to the mesh geometry nodes and corresponding submesh. Author: Jørgen S. Dokken and Henrik N.T. Finsberg SPDX-License-Identifier: MIT """ from mpi4py import MPI import dolfinx import numpy as np def vertex\_to\_dof\_map\_vectorized(V): """Create a map from the vertices of th…

---

_[View the full topic](https://fenicsproject.discourse.group/t/dynamic-mesh-update-in-fenics-for-lagrangian-electrospinning-simulation/17077)._
