Skip to content

ALE : Move mesh nodes independently #46

@emvalbuena

Description

@emvalbuena

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions