Dear All,
<div> I hope you're having a nice day. </div><div> I'm still working on this Poisson solver example, and I still have a little confusion on the boundary condition. I wonder if I have a 17*17 grid. (index i = 0~16 and j = 0~16, solving for variable 'u')</div>
<div>1) If a Dirichlet BC applied on the left boundary, i.e. u= 1, is that all values with u[i= 0][] = 1 or with u[i= -1][] = 1 (where, u[i=-1][] are ghost grids left next to grid of u[i= 0][]).</div><div><div>2) If a Neumann BC applied on the right boundary, i.e. du/dx = 0, is that (u[i=16][]-u[i=15][])/dx= or (u[i=17][]-u[i=16][])/dx = 0 (where u[i =17][] are ghost grids right next to grid of u[i = 16][]).</div>
<div> Thank you so much.</div><div><br></div><div>best,</div><div>Alan</div><div><br></div></div>