# nSweep replaces in number of iterations and role of maxIter in the situation

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

 May 20, 2013, 12:03 nSweep replaces in number of iterations and role of maxIter in the situation #1 Senior Member     Ehsan Join Date: Oct 2012 Location: Iran Posts: 2,186 Rep Power: 16 Hi I have set variables in fvSolution as this: Code: ```U { solver smoothSolver; smoother DICGaussSeidel; nSweeps 10; tolerance 1e-8; relTol 0; maxIter 25000; }``` and whenever I change nSweep,in the terminal "No iterations ..." changes and becomes equal to what I have set in nSweeps,what does it mean while iterations are very lower than tolerance,but solver still needs to update preConditioner equations?why and what does it mean?and then whats the role of maxIter? Code: ```Expression totalPressure_left : average=473553.3429 Expression totalTemperature_left : average=595.0042888 Expression totalEnthalpy_left : average=309719.6059 Mean and max Courant Numbers = 0.04351780419 0.366134735 deltaT = 1.123595506e-08 Time = 1.07191e-05 diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0 diagonal: Solving for rhoUx, Initial residual = 0, Final residual = 0, No Iterations 0 diagonal: Solving for rhoUy, Initial residual = 0, Final residual = 0, No Iterations 0 smoothSolver: Solving for Ux, Initial residual = 1.439461739e-06, Final residual = 8.556082957e-18, No Iterations 10 smoothSolver: Solving for Uy, Initial residual = 8.303623243e-07, Final residual = 1.628563749e-17, No Iterations 10 diagonal: Solving for rhoE, Initial residual = 0, Final residual = 0, No Iterations 0 smoothSolver: Solving for h, Initial residual = 4.149100952e-07, Final residual = 1.97049636e-16, No Iterations 10 smoothSolver: Solving for gas, Initial residual = 0.001321839765, Final residual = 8.537893492e-18, No Iterations 10 ExecutionTime = 1262.37 s ClockTime = 1744 s``` thanks. __________________ Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked.