Hi Nico,
It is possible. You will have to set the displacement vector in the model state object, that you're using with your bricks.
But, you're using Python, right? I use C++, but it must be the same in Python.
For the details, please see the documentation on the model state class.
If you're having problems, I could send you my C++ code that does it.
Regards,
Andriy
Hi,
Is it possible to set a field on a fem explicitly, such that the
correct state is used when recomputing the tangent matrix?
For example, I would like to set the deformation of the mesh_fem mfu
that was linked to a brick as below:
gf_mesh_fem_set(mfu, 'fem', gf_fem('FEM_PK(3,1)'));
b0 = gfMdBrick('nonlinear elasticity', mim, mfu, 'SaintVenant Kirchhoff');
... setting some constraints in brick b3 ...
Here, I would like to set the deformation of mfu explicitly, to
extract the tangent matrix. Is this possible?
gf_mdstate_set(mds,'compute_tangent_matrix',b3);
gf_mdstate_get(mds,'tangent_matrix')
Thanks!
--nico
--
Nico Galoppo :: http://www.ngaloppo.org
_______________________________________________
Getfem-users mailing list
address@hidden
https://mail.gna.org/listinfo/getfem-users