|
From: | Yves Renard |
Subject: | Re: [Getfem-users] (no subject) |
Date: | Fri, 13 Oct 2017 10:47:01 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
Dear Yuri,
The different terms are automatically added to the formulation. You can add as many term you need with for instance md.add_linear_generic_assembly_brick(mim, 'your term here', region) where region is either a boundary (integration on a boundary) or a part of the domain (integration on that part of the domain). If region is not specified, by default the term is added on the whole domain (not the boundary). When you add a term on a boundary you have additionnaly access to the normal vector to the boundary with 'Normal'. The advantage of the model object is that it gather all the variables, it deals with Dirichlet and Neumann boundary conditions and you can use the standard solver with it. You can of course use lower level function of Getfem to separately make the assembly of each matrix (in the model object, all the assemblies on a same region are performed in a unique loop for performance reasons). For that, you can use the assembly module (see http://getfem.org/python/cmdref_Module%20asm.html) using also the generic assembly, but it is a little bit more difficult to use than the model object. Best regards, Yves Le 11/10/2017 à 17:50, Yuri Kulchitsky 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] |