# advice needed in solving linear system

 Register Blogs Members List Search Today's Posts Mark Forums Read

 February 3, 2001, 07:31 advice needed in solving linear system #1 yf yap Guest   Posts: n/a dear sirs: in solving a 2 dimensional poisson equation, i obtained a set of linear equations in the following form: C1*phi[i,j] + C2*phi[i+1,j] + C3*phi[i-1,j] + C4*phi[i,j+1] + C5*phi[i,j-1] = B[i,j] -[1] C1 is always the largest. for all the equations, C1 = C2 + C3 + C4 + C5 ----------- [2] when this set of equations is solved using SOR, it is found that the solutions diverge slowly. Questions: 1) how to avoid divergent in solving all those equations? 2) does [2] still imply strongly diagonally dominance ? any advice would be greatly appreciated, thanks. regards, yfyap

 February 3, 2001, 21:16 Re: advice needed in solving linear system #2 John C. Chien Guest   Posts: n/a (1). First of all, the coefficients C1, C2, C3, C4 and C5 will all have effect on the results. (2). I would just create a five-point template problem, and check out the SOR result. You could do the hand calculations to look at the result of each iteration. Naturally, with the appropriate boundary conditions applied. (3). If the phi values are known at the boundary, then you should be able to get the solution quickly. If gradient type of b.C.'s is used, it will take longer to converge. But I guess, you can try different under-relaxation parameter values. But you still need to know the behavior of the coefficients.

 February 4, 2001, 20:24 Re: advice needed in solving linear system #3 John C. Chien (Alter Ego) Guest   Posts: n/a Check out the book: Templates for the Solution of Linear Systems in the resource section. I found it useful. You might also try some different solvers like CGSTAB, maybe even start with a brute force algorithm which always converges to see if you have set up your problem correctly.

 February 5, 2001, 00:32 Re: advice needed in solving linear system #4 Abhijit Tilak Guest   Posts: n/a hi, u will run in to trouble if C1,C2,... turn out to be negative(there are caes where they may go negative). just check that. Consider using Line Sor(LSOR) or ADI that will acclerate convergence. BTW from ur past postings looks like ur posting ur classroom course assignment questions on this forum eh? u may also consider under-relaxing as jhon said (SUR) hope that helps abhijit

 February 5, 2001, 01:21 Re: advice needed in solving linear system #5 yf yap Guest   Posts: n/a thanks, John. regards, yfyap

 February 5, 2001, 01:21 Re: advice needed in solving linear system #6 yf yap Guest   Posts: n/a dear abhijit, your valuable advice is greatly appreciated. please note that i'm not posting my assignments in this forum. for the previous postings, i feel that it is necessary for me to decribe my situations properly so that experts like your guys can have a better view of the situation. thanks. regards, yfyap

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post richard OpenFOAM Running, Solving & CFD 168 November 14, 2017 12:51 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08 lordvon OpenFOAM Running, Solving & CFD 15 October 19, 2015 13:52 jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24 vw.cfd OpenFOAM 6 August 7, 2009 05:44

All times are GMT -4. The time now is 17:58.