Mercurial > repos > public > sbplib
comparison +scheme/Heat2dVariable.m @ 724:a9e8c9d71307 feature/poroelastic
Modify penalty for Neumann in Head2d so that data is for normal derivative and not u_x or u_y.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Wed, 14 Mar 2018 13:04:25 -0700 |
parents | 60eb7f46d8d9 |
children | e9e15d64f9f9 |
comparison
equal
deleted
inserted
replaced
689:60eb7f46d8d9 | 724:a9e8c9d71307 |
---|---|
186 penalty = nj*Hi*d{j}*kappa_gamma*H_gamma; | 186 penalty = nj*Hi*d{j}*kappa_gamma*H_gamma; |
187 | 187 |
188 % Free boundary condition | 188 % Free boundary condition |
189 case {'N','n','neumann','Neumann'} | 189 case {'N','n','neumann','Neumann'} |
190 closure = -nj*Hi*e{j}*kappa_gamma*H_gamma*(d{j}' ); | 190 closure = -nj*Hi*e{j}*kappa_gamma*H_gamma*(d{j}' ); |
191 penalty = nj*Hi*e{j}*kappa_gamma*H_gamma; | 191 penalty = Hi*e{j}*kappa_gamma*H_gamma; |
192 % penalty is for normal derivative and not for derivative, hence the sign. | |
192 | 193 |
193 % Unknown boundary condition | 194 % Unknown boundary condition |
194 otherwise | 195 otherwise |
195 error('No such boundary condition: type = %s',type); | 196 error('No such boundary condition: type = %s',type); |
196 end | 197 end |