|
From: | Yves Renard |
Subject: | Re: [Getfem-users] Pure Advection Stationary Problem |
Date: | Tue, 21 Mar 2017 14:31:21 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
Dear Simone Di Gregorio,
You are of course right saying that the approximation of transport equation with a finite element method may induce some instabilities. This is true except in certain cases where the coercivity is preserved (for instance with a Dirichlet condition at the right end point and a with monotone velocity field). Adding the viscous term solves the problem of course for beta large enough as you explain. Your formulation seems to be perfectly correct to me. The only thing is that it seems to me that it is transposed. I would instead write asm_real_or_complex_1_param(M,mim,mf,mf_data,V,rg, "a=data$1(#2);" "M$1(#1,#1)+=comp(Grad(#1).Base(#1).Base(#2))(:,i,:,i,p).a(p);") because there is a test function for each line of the linear system (not for each column). Of course, this is the _expression_ for a 1D (straight) domain. A suggestion : you should pass to the high level generic assembly which is more easy to work with (and is now faster). Best regards, Yves Le 16/03/2017 à 10:11, Simone Di Gregorio 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] |