view +grid/Grid.m @ 186:1fc2eeb4f4e6 feature/grids

Moved multiblock grid to the multiblock package. Continued implementation. Added multiblock diffOp and removed some functions no longer needed.
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 03 Mar 2016 20:03:06 +0100
parents c2db0294f8ed
children c5ca9bbfed41
line wrap: on
line source

classdef Grid < handle
    % General d dimensional grid with n points
    methods (Abstract)
        % n returns the number of points in the grid
        o = N(obj)

        % d returns the spatial dimension of the grid
        o = D(obj)

        % points returns a n x d matrix containing the coordinates for all points.
        X = points(obj)

        % Restricts the grid function gf on obj to the subgrid g.
        gf = restrictFunc(obj, gf, g)

        % Projects the grid function gf on obj to the grid g.
        gf = projectFunc(obj, gf, g)
    end
end