comparison +multiblock/+domain/Rectangle.m @ 1132:375f73edbbd4 feature/laplace_curvilinear_test

Improve Rectangle.show()
author Martin Almquist <malmquist@stanford.edu>
date Mon, 27 May 2019 16:34:38 -0700
parents 4bb298faa8dc
children
comparison
equal deleted inserted replaced
1131:ea225a4659fe 1132:375f73edbbd4
91 for j = 1:nx 91 for j = 1:nx
92 S_id = flat_index(m,j,ny); 92 S_id = flat_index(m,j,ny);
93 N_id = flat_index(m,j,1); 93 N_id = flat_index(m,j,1);
94 S{j} = {S_id,'s'}; 94 S{j} = {S_id,'s'};
95 N{j} = {N_id,'n'}; 95 N{j} = {N_id,'n'};
96 end 96 end
97 boundaryGroups.E = multiblock.BoundaryGroup(E); 97 boundaryGroups.E = multiblock.BoundaryGroup(E);
98 boundaryGroups.W = multiblock.BoundaryGroup(W); 98 boundaryGroups.W = multiblock.BoundaryGroup(W);
99 boundaryGroups.S = multiblock.BoundaryGroup(S); 99 boundaryGroups.S = multiblock.BoundaryGroup(S);
100 boundaryGroups.N = multiblock.BoundaryGroup(N); 100 boundaryGroups.N = multiblock.BoundaryGroup(N);
101 boundaryGroups.all = multiblock.BoundaryGroup([E,W,S,N]); 101 boundaryGroups.all = multiblock.BoundaryGroup([E,W,S,N]);
151 axis equal 151 axis equal
152 return 152 return
153 end 153 end
154 154
155 if gridLines 155 if gridLines
156 m = 10; 156 if isempty(varargin)
157 for i = 1:obj.nBlocks 157 m = 10;
158 obj.blockTi{i}.show(m,m); 158 for i = 1:obj.nBlocks
159 obj.blockTi{i}.show(m,m);
160 end
161 else
162 m = varargin{1};
163 for i = 1:obj.nBlocks
164 obj.blockTi{i}.show(m{i}(1),m{i}(2));
165 end
159 end 166 end
160 end 167 end
161
162 168
163 switch label 169 switch label
164 case 'name' 170 case 'name'
165 labels = obj.blockNames; 171 labels = obj.blockNames;
166 case 'id' 172 case 'id'