Hi,
I have the following code-snippet, that seems to not deform the mesh as expected:
Code:
cf = CoefficientFunction([(0,0,1) if mat== "MovingTarget" else (0,0,0) for mat in mesh.GetMaterials()])
fes = L2(mesh, order = 1, dim=3)
u = GridFunction(fes)
u.Set(cf)
mesh.SetDeformation(u)
I also tried with H1 fes, but that had the disadvantage, that the interpolation of the cf was very useless.
Perhaps there is a fundamentally better way to achieve this moving target?