Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.47 KB

normUnbalance.rst

File metadata and controls

27 lines (20 loc) · 1.47 KB

NormUnbalance

test('NormUnbalance', tol,iter,pFlag=0,nType=2,maxIncr=maxIncr)

Create a NormUnbalance test, which uses the norm of the right hand side of the matrix equation to determine if convergence has been reached.

tol Tolerance criteria used to check for convergence.
iter Max number of iterations to check

pFlag

Print flag (optional):

  • 0 print nothing.
  • 1 prin
t information on norms each time test() is invoked.
  • 2 print in
formation on norms and number of iterations at end of successful test.
  • 4 at each
step it will print the norms and also the ΔU and R(U) vectors.
  • 5 if it fa

ils to converge at end of numIter it will print an error message but return a successfull test.

nType Type of norm, (0 = max-norm, 1 = 1-norm, 2 = 2-norm). (optional)
maxIncr Maximum times of error increasing. (optional)

When using the Penalty method additional large forces to enforce the penalty functions exist on the right hand side, making convergence using this test usually impossible (even though solution might have converged).