comparison +grid/Grid.m @ 886:8894e9c49e40 feature/timesteppers

Merge with default for latest changes
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Thu, 15 Nov 2018 16:36:21 -0800
parents 763d50caddf3
children
comparison
equal deleted inserted replaced
816:b5e5b195da1e 886:8894e9c49e40
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 grid.boundaryIdentifiers of all boundaries in a cell array.
20 bs = getBoundaryNames(obj)
21
22 % Return coordinates for the given boundary
23 b = getBoundary(obj, name)
24 end
25 end