Mercurial > repos > public > sbplib
comparison +grid/Grid.m @ 427:a613960a157b feature/quantumTriangles
merged with feature/beams
author | Ylva Rydin <ylva.rydin@telia.com> |
---|---|
date | Thu, 26 Jan 2017 15:59:25 +0100 |
parents | c5ca9bbfed41 |
children | 763d50caddf3 |
comparison
equal
deleted
inserted
replaced
426:29944ea7674b | 427:a613960a157b |
---|---|
1 classdef Grid < handle | |
2 % General d dimensional grid with n points | |
3 methods (Abstract) | |
4 % n returns the number of points in the grid | |
5 o = N(obj) | |
6 | |
7 % d returns the spatial dimension of the grid | |
8 o = D(obj) | |
9 | |
10 % points returns a n x d matrix containing the coordinates for all points. | |
11 X = points(obj) | |
12 | |
13 % Restricts the grid function gf on obj to the subgrid g. | |
14 gf = restrictFunc(obj, gf, g) | |
15 | |
16 % Projects the grid function gf on obj to the grid 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) | |
24 end | |
25 end |