comparison +sbp/D4Variable.m @ 330:25b01643e438 feature/beams

Added a string method to OpSet.
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 29 Sep 2016 12:56:37 +0200
parents 31d6698c1edf
children 42c89b5eedc0
comparison
equal deleted inserted replaced
329:bf801c3709be 330:25b01643e438
14 e_l, e_r % Left and right boundary operator 14 e_l, e_r % Left and right boundary operator
15 d1_l, d1_r % Left and right boundary first derivative 15 d1_l, d1_r % Left and right boundary first derivative
16 d2_l, d2_r % Left and right boundary second derivative 16 d2_l, d2_r % Left and right boundary second derivative
17 d3_l, d3_r % Left and right boundary third derivative 17 d3_l, d3_r % Left and right boundary third derivative
18 borrowing % Struct with borrowing limits for different norm matrices 18 borrowing % Struct with borrowing limits for different norm matrices
19 order
19 end 20 end
20 21
21 methods 22 methods
22 function obj = D4Variable(m, lim, order) 23 function obj = D4Variable(m, lim, order)
23 x_l = lim{1}; 24 x_l = lim{1};
44 else 45 else
45 error('Invalid operator order.'); 46 error('Invalid operator order.');
46 end 47 end
47 48
48 obj.m = m; 49 obj.m = m;
50 obj.order = order;
49 51
50 obj.H = H; 52 obj.H = H;
51 obj.HI = HI; 53 obj.HI = HI;
52 obj.D1 = D1; 54 obj.D1 = D1;
53 obj.D2 = D2; 55 obj.D2 = D2;
60 obj.d2_l = d2_l; 62 obj.d2_l = d2_l;
61 obj.d2_r = d2_r; 63 obj.d2_r = d2_r;
62 obj.d3_l = d3_l; 64 obj.d3_l = d3_l;
63 obj.d3_r = d3_r; 65 obj.d3_r = d3_r;
64 end 66 end
67
68 function str = string(obj)
69 str = [class(obj) '_' num2str(obj.order)];
70 end
65 end 71 end
66 end 72 end