fenics team mailing list archive
-
fenics team
-
Mailing list archive
-
Message #00520
initial function
I'm trying to use Newton's method to solve an elasticity problem (using FEniCS, of course). I want to set the initial displacement u to be a given function (for example, u0(x,y) = (x, -0.5*y)). How I can initialise the degrees of freedom vector x of the displacement u, so that it takes the values of the given initial function u0(x,y)? If there is no direct way to do that, maybe my question can be reduced to: given a component of the degrees of freedom vector x of some discrete function u, how to get the corresponding coordinates in the mesh?
Thank you!
Best,
Chong Luo
Follow ups