Hello, I writing a FORTRAN code to solve 1D Navier Stokes equation, I wanna know how I can get the formula of a(i), b(i,) and c(i), the snapshot is attached, Thanks
To my knowledge, there is no standard notation of the Navier-Stokes equation involving vectors a, b, and c, and hence answering your question with certainty is difficult unless you provide information on how a, b, and c are defined here. Most likely in your 1D case, n is actually 1, and the vectors are just scalars (two of them being 1 and one being 0).
I see, these are vectors associated with the nonzero elements of the tridiagonal discretized Laplacian matrix. According to page 36 of the note, a(i)=1; b(i)=-2; c(i)=1;