Mercurial > repos > public > sbplib
comparison +grid/Grid.m @ 200:ef41fde95ac4 feature/beams
Merged feature/grids into feature/beams.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 13 Jun 2016 16:59:02 +0200 |
parents | c5ca9bbfed41 |
children | 763d50caddf3 |
comparison
equal
deleted
inserted
replaced
181:419ec303e97d | 200:ef41fde95ac4 |
---|---|
13 % Restricts the grid function gf on obj to the subgrid g. | 13 % Restricts the grid function gf on obj to the subgrid g. |
14 gf = restrictFunc(obj, gf, g) | 14 gf = restrictFunc(obj, gf, g) |
15 | 15 |
16 % Projects the grid function gf on obj to the grid g. | 16 % Projects the grid function gf on obj to the grid g. |
17 gf = projectFunc(obj, gf, g) | 17 gf = projectFunc(obj, gf, g) |
18 | |
19 % Return the names of all boundaries in this grid. | |
20 bs = getBoundaryNames(obj) | |
21 | |
22 % Return coordinates for the given boundary | |
23 b = getBoundary(obj, name) | |
18 end | 24 end |
19 end | 25 end |
20 | |
21 | |
22 %% Should it be able to return a cell size aswell? For an equidistant grid this would be know | |
23 %% for other grids the constructor would have to make something up. | |
24 %% For example the grid.Cartesian constructor would take a h (1 x d) vector as an in parameter. | |
25 | |
26 | |
27 %Should define boundaries somehow, look in stitchSchemes. |