I am a newbie in fenics and finite element methods.
I try to implement a method to estimate the elasticity parameters (young modulus and poisson ratio) of a deformable object. What I want to do is this:
An object fixed from the bottom(as a start a cube)
To apply an external force on a particular place on the top of the object and using a method like gradient descent etc. estimate the elasticity parameters by comparing the real displacement and estimated displacement.
I am looking over Hyperelasticity demo in fenics (http://fenicsproject.org/documentation/dolfin/1.0.1/python/demo/pde/hyperelasticity/python/documentation.html) but I couldn't figure out how to apply to on a particular node on the mesh and then deform the object based on that force. I think in that demo a force is applied in the -y direction on the whole mesh. There is body force vector:
B = Constant((0.0, -0.5, 0.0))
Should I change this to a vector in the same size with the mesh and put a force value to on the element of the vector which corresponds to the nodal element on the mesh.
Sorry if I don not make much sense. I may ask very trivial questions. This concepts are new for me so I am having troubles in stating what is in my head.