You can update the mesh.coordinates() manually. I’ve also tried this, and for a vector CG1 function it yields exactly the same results. So the interpolating would yield the same thing there. But otherwise you have a bit more freedom with that approach. I dont know about other things.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Brief question on using dolfinx.fem.Expression to evaluate UFL expressions | 3 | 92 | May 21, 2025 | |
| Initial conditions for mixed elements with vector and scalar elements | 6 | 417 | June 23, 2024 | |
| Equivalent for Expression in dolfinx | 30 | 7602 | October 30, 2024 | |
| Unable to Evaluate Function at mesh points after Moving the mesh in FEniCS | 3 | 1243 | November 25, 2019 | |
| Numerical values from ufl.SpatialCoordinate | 10 | 1754 | May 10, 2024 |