view +grid/Multiblock.m @ 154:c7b2f645101f feature/grids

Added classes and functions for Cartesian and equidistant grids.
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 18 Feb 2016 16:46:02 +0100
parents 7aee9eba3bb8
children cf748f33cd5b
line wrap: on
line source

classdef Grid < grid.Grid
    % General multiblock grid
    methods (Abstract)
        % NBlocks returns the number of blocks in the grid.
        o = NBlocks(obj);

        % Grid returns the ith grid in the multiblockgrid
        gs = Grid(obj,i);

        % Grids returns a cell array of all the grids in the multiblock grid.
        gs = Grids(obj);
    end
end