Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALE : Move mesh nodes independently #46

Open
KikeM opened this issue Nov 27, 2021 · 0 comments
Open

ALE : Move mesh nodes independently #46

KikeM opened this issue Nov 27, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@KikeM
Copy link
Owner

KikeM commented Nov 27, 2021

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

@KikeM KikeM added the enhancement New feature or request label Nov 27, 2021
@KikeM KikeM self-assigned this Nov 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant