Mercurial > repos > public > sbplib
changeset 573:efe2dbf9796e feature/utux2D
Remove data input from boundary condition function
author | Martin Almquist <martin.almquist@it.uu.se> |
---|---|
date | Sun, 03 Sep 2017 21:27:09 +0200 |
parents | 4a73b2aab91f |
children | 39554f2de783 |
files | +scheme/Utux.m |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
diff -r 4a73b2aab91f -r efe2dbf9796e +scheme/Utux.m --- a/+scheme/Utux.m Thu Aug 31 14:57:34 2017 +0200 +++ b/+scheme/Utux.m Sun Sep 03 21:27:09 2017 +0200 @@ -60,12 +60,11 @@ % data is a function returning the data that should be applied at the boundary. % neighbour_scheme is an instance of Scheme that should be interfaced to. % neighbour_boundary is a string specifying which boundary to interface to. - function [closure, penalty] = boundary_condition(obj,boundary,type,data) + function [closure, penalty] = boundary_condition(obj,boundary,type) default_arg('type','dirichlet'); - default_arg('data',0); tau =-1*obj.e_l; closure = obj.Hi*tau*obj.e_l'; - penalty = 0*obj.e_l; + penalty = -obj.Hi*tau; end @@ -91,7 +90,7 @@ end methods(Static) - % Calculates the matrcis need for the inteface coupling between boundary bound_u of scheme schm_u + % Calculates the matrices needed for the inteface coupling between boundary bound_u of scheme schm_u % and bound_v of scheme schm_v. % [uu, uv, vv, vu] = inteface_coupling(A,'r',B,'l') function [uu, uv, vv, vu] = interface_coupling(schm_u,bound_u,schm_v,bound_v)