|
From: | Yves Renard |
Subject: | Re: [Getfem-users] about dirichlet boundary conditions |
Date: | Mon, 18 Jun 2012 12:54:02 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 |
Dear Michel Dupront, You have at least tso manner to prescribe the value only on one point. You can use the generic bricks gf_model_set(model M, 'add constraint with multipliers', string varname, string multname, spmat B, vec L) or gf_model_set(model M, 'add constraint with penalization', string varname, scalar coeff, spmat B, vec L) where you prescribe an arbitrary constraint on a variable in the form BU = L, B having an arbitrary number of lines. Of course, in that case, you have to now what degrees of freedom correspond to the point where you want to prescribe the solution. A second manner, for recent version of Getfem (the svn one) is to use one of the bricks gf_model_set(model M, 'add pointwise constraints with multipliers', string varname, string dataname_pt[, string dataname_unitv] [, string dataname_val]) or gf_model_set(model M, 'add pointwise constraints with penalization', string varname, scalar coeff, string dataname_pt[, string dataname_unitv] [, string dataname_val]) These bricks allows to set the solution on a given set of points (and possibly on a given components on a given set of points) even if these points do not correspond to degrees of freedom. Yves. Le 18/06/2012 12:07, Michel Dupront 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] |