Mercurial > repos > public > sbplib
comparison +multiblock/+domain/Annulus.m @ 1343:09a5783a3d37 feature/D2_boundary_opt
Improve on default choice of number of grid points for each block
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 14 Oct 2022 14:42:32 +0200 |
parents | 4d472d020ccf |
children |
comparison
equal
deleted
inserted
replaced
1342:d1dad4fbfe22 | 1343:09a5783a3d37 |
---|---|
66 obj.c_inner = c_inner; | 66 obj.c_inner = c_inner; |
67 obj.c_outer = c_outer; | 67 obj.c_outer = c_outer; |
68 end | 68 end |
69 | 69 |
70 function ms = getGridSizes(obj, m) | 70 function ms = getGridSizes(obj, m) |
71 ms = {[m m], [m m]}; | 71 mx = m; |
72 % Use same grid spacing along inner | |
73 % half circle as in radial direction | |
74 ds = pi*(obj.r_inner); | |
75 dr = (obj.r_outer-obj.r_inner); | |
76 my = ceil(ds/dr*(mx-1))+1; | |
77 | |
78 ms = {[mx my], [mx my]}; | |
72 end | 79 end |
73 end | 80 end |
74 end | 81 end |