comparison +grid/Staggered.m @ 1274:8aa0909125a4 feature/poroelastic

Add support for plotting and evaluating on curvilinear multiblock staggered grids
author Martin Almquist <malmquist@stanford.edu>
date Tue, 02 Jun 2020 11:44:38 -0700
parents b673081db86b
children dc0ef82e3ec7
comparison
equal deleted inserted replaced
1273:cf542444f022 1274:8aa0909125a4
2 properties 2 properties
3 gridGroups % Cell array of grid groups, each group is a cell array 3 gridGroups % Cell array of grid groups, each group is a cell array
4 nGroups % Number of grid groups 4 nGroups % Number of grid groups
5 h % Interior grid spacing 5 h % Interior grid spacing
6 d % Number of dimensions 6 d % Number of dimensions
7 logic % Grid in logical domain, if any.
7 end 8 end
8 9
9 methods 10 methods
10 11
11 % Accepts multiple grids and combines them into a staggered grid 12 % Accepts multiple grids and combines them into a staggered grid
20 for i = 1:obj.nGroups 21 for i = 1:obj.nGroups
21 obj.gridGroups{i} = varargin{i}; 22 obj.gridGroups{i} = varargin{i};
22 end 23 end
23 24
24 obj.h = []; 25 obj.h = [];
26 obj.logic = [];
25 end 27 end
26 28
27 % N returns the number of points in the first grid group 29 % N returns the number of points in the first grid group
28 function o = N(obj) 30 function o = N(obj)
29 o = 0; 31 o = 0;