emvalbuena / romtime

Unsteady Finite Element Reduced Order Model for Time Moving Domains
1 stars 1 forks source link

ALE : Move mesh nodes independently #46

Open emvalbuena opened 2 years ago

emvalbuena commented 2 years ago

Apparently, I should be able to change the mesh nodes by simply operating on the mesh coordinates.

If this is true, as long as I take into account the mesh orientation (right to left), I can manually introduce the displacement field (and hence not requiring the use of interpolation).

mesh = UnitSquareMesh(10, 10)
for x in mesh.coordinates():
    x[0] += 0.1*x[1]

From: https://fenicsproject.org/qa/11133/moving-mesh-to-specific-points/

More evidence in the same direction: https://fenicsproject.discourse.group/t/coordinate-update/799/13