|Subject:||Re: [Getfem-users] Simulating electric field distribution|
|Date:||Fri, 9 Jun 2017 11:21:29 +0200|
|User-agent:||Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1|
When you have the potential, the electric field can be obtained as a post-treatment since it is (minus) the gradient of the electric potential. You can simply interpolate it with
E = gf_model_get(md, 'interpolation', "-Grad_V', mfi);once you solved your problem (mfi is the fem on which the interpolation is performed). You have to be aware that the gradient of the potential being discontinuous across the element edges for Lagrange elements, an average is taken when interpolating on a continuous Lagrange fem (you can interpolate on a discontinuous one to have the true gradient).
Le 09/06/2017 à 04:55, Yu (Andy) Huang a écrit :
-- Yves Renard (address@hidden) tel : (33) 04.72.43.87.08 Pole de Mathematiques, INSA-Lyon fax : (33) 04.72.43.85.29 20, rue Albert Einstein 69621 Villeurbanne Cedex, FRANCE http://math.univ-lyon1.fr/~renard ---------
|[Prev in Thread]||Current Thread||[Next in Thread]|