Mercurial > repos > public > sbplib
comparison +multiblock/Grid.m @ 189:6054dcd3c8a9 feature/grids
Added a class for boundary groups. Added methods stubs and failing tests.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 04 Mar 2016 17:20:30 +0100 |
parents | 1fc2eeb4f4e6 |
children | 6fb354955c37 |
comparison
equal
deleted
inserted
replaced
188:c5ca9bbfed41 | 189:6054dcd3c8a9 |
---|---|
13 % connections -- NxN upper triangular cell matrix. connections{i,j} | 13 % connections -- NxN upper triangular cell matrix. connections{i,j} |
14 % specifies the connection between block i and j. If | 14 % specifies the connection between block i and j. If |
15 % it's empty there is no connection otherwise it's a 2 | 15 % it's empty there is no connection otherwise it's a 2 |
16 % -cell-vector with strings naming the boundaries to be | 16 % -cell-vector with strings naming the boundaries to be |
17 % connected. (inverted coupling?) | 17 % connected. (inverted coupling?) |
18 function obj = Grid(grids, connections) | 18 function obj = Grid(grids, connections, boundaryGroup) |
19 obj.grids = grids; | 19 obj.grids = grids; |
20 obj.connections = connections; | 20 obj.connections = connections; |
21 | 21 |
22 obj.nPoints = 0; | 22 obj.nPoints = 0; |
23 for i = 1:length(grids) | 23 for i = 1:length(grids) |
91 function I = whatGrid(p) | 91 function I = whatGrid(p) |
92 % Find what grid a point lies on | 92 % Find what grid a point lies on |
93 end | 93 end |
94 | 94 |
95 end | 95 end |
96 | |
97 function bs = getBoundaryNames(obj) | |
98 bs = []; | |
99 end | |
100 | |
101 % Return coordinates for the given boundary | |
102 function b = getBoundary(obj, name) | |
103 b = []; | |
104 end | |
96 end | 105 end |
97 end | 106 end |