|
From: | Yves Renard |
Subject: | Re: [Getfem-users] Conductivity values definition - Getfem / python |
Date: | Wed, 04 Feb 2015 09:29:40 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
Dear Cristian, You have several possibilities to define a coefficient whose value is different from a mesh region to another. If it is piecewise constant you can describe it on a P0 finite element method then you can obtain the degrees of freedom of a particular region with mf.basic_dof_on_region(rg). With the high level generic assembly, you can define a non-constant coefficient in a more general way by it _expression_ with respect to X, the current position on the mesh (for instance sin(X[1]) + cos(X[2]) is valid). I hope it could help you. Yves. Le 03/02/2015 21:26, Cristian Alejandro Torres Valencia 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] |