comparison +scheme/LaplaceCurvilinear.m @ 946:706d1c2b4199 feature/utux2D

Raname opts to type in a bunch of interface methods
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 05 Dec 2018 15:57:41 +0100
parents 31186559236d
children a0b3161e44f3
comparison
equal deleted inserted replaced
945:af397cc35239 946:706d1c2b4199
381 % Returns the boundary ops and sign for the boundary specified by the string boundary. 381 % Returns the boundary ops and sign for the boundary specified by the string boundary.
382 % The right boundary is considered the positive boundary 382 % The right boundary is considered the positive boundary
383 % 383 %
384 % I -- the indices of the boundary points in the grid matrix 384 % I -- the indices of the boundary points in the grid matrix
385 function [e, d, gamm, H_b, I] = get_boundary_ops(obj, boundary) 385 function [e, d, gamm, H_b, I] = get_boundary_ops(obj, boundary)
386
387 % gridMatrix = zeros(obj.m(2),obj.m(1));
388 % gridMatrix(:) = 1:numel(gridMatrix);
389 ind = grid.funcToMatrix(obj.grid, 1:prod(obj.m)); 386 ind = grid.funcToMatrix(obj.grid, 1:prod(obj.m));
390 387
391 switch boundary 388 switch boundary
392 case 'w' 389 case 'w'
393 e = obj.e_w; 390 e = obj.e_w;
417 case {'w','e'} 414 case {'w','e'}
418 gamm = obj.gamm_u; 415 gamm = obj.gamm_u;
419 case {'s','n'} 416 case {'s','n'}
420 gamm = obj.gamm_v; 417 gamm = obj.gamm_v;
421 end 418 end
422
423 end 419 end
424 420
425 function N = size(obj) 421 function N = size(obj)
426 N = prod(obj.m); 422 N = prod(obj.m);
427 end 423 end