Mercurial > repos > public > sbplib
comparison +scheme/Wave2d.m @ 55:a8ed986fcf57
Minor renaming and clean up in 2d wave schemes.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 12 Nov 2015 09:47:04 -0800 |
parents | 48b6fb693025 |
children | 459eeb99130f |
comparison
equal
deleted
inserted
replaced
54:2194cd385419 | 55:a8ed986fcf57 |
---|---|
1 classdef SchmWave2d < noname.Scheme | 1 classdef Wave2d < scheme.Scheme |
2 properties | 2 properties |
3 m % Number of points in each direction, possibly a vector | 3 m % Number of points in each direction, possibly a vector |
4 h % Grid spacing | 4 h % Grid spacing |
5 x,y % Grid | 5 x,y % Grid |
6 X,Y % Values of x and y for each grid point | 6 X,Y % Values of x and y for each grid point |
20 d1_w, d1_e, d1_s, d1_n | 20 d1_w, d1_e, d1_s, d1_n |
21 gamm_x, gamm_y | 21 gamm_x, gamm_y |
22 end | 22 end |
23 | 23 |
24 methods | 24 methods |
25 function obj = SchmWave2d(m,xlim,ylim,order,alpha) | 25 function obj = Wave2d(m,lim,order,alpha) |
26 default_arg('a',1); | 26 default_arg('alpha',1); |
27 | |
28 xlim = lim{1}; | |
29 ylim = lim{2}; | |
27 | 30 |
28 if length(m) == 1 | 31 if length(m) == 1 |
29 m = [m m]; | 32 m = [m m]; |
30 end | 33 end |
31 | 34 |