mathcomp.run
Interface IteratedAssembler

All Known Implementing Classes:
FilamentAssembler, FilamentAssemblerEmpty, FixedPointAssembler, NewtonAssembler, NSMini_BUCanal, NSMiniFPIAssembler, NSMiniHomogen, NSMiniOseen, NSMiniOseenBUH, NSMiniOseenDH, NSMiniOseenLH, NSMiniOseenTesterA, NSMiniOseenTesterC, NSMiniOseenTesterD, NSMiniTube

public interface IteratedAssembler

This interface is used in problems that are solved iteratively


Field Summary
static double tolerance
          this value defines the stopping criteria for the iterations
 
Method Summary
 double getIt()
          if x(k+1)=x(k)+g(x(k)) returns 0 (NewtonAssembler), if x(k+1)=g(x(k)) returns -1 (FixedPointAssembler);
 double getOldArea()
           
 void init()
           
 int initializeFP()
          this method is used to decide if some iterations should be done using fixed point iteration before using the Newton's method, since this one only converges if the first iteration is enough close to the exact solution.
 boolean isDamped()
           
 boolean isToContinue(Vector x)
          this method defines if the iterative solver stops or continues.
 void setOldSolution(Vector x, Vector yy)
          This method is used to set the previous iteration that is used to calculate the new iteration
 

Field Detail

tolerance

static final double tolerance
this value defines the stopping criteria for the iterations

See Also:
Constant Field Values
Method Detail

setOldSolution

void setOldSolution(Vector x,
                    Vector yy)
This method is used to set the previous iteration that is used to calculate the new iteration

Parameters:
x - the previous iteration
yy - it's only used in damped Newton's method

getOldArea

double getOldArea()

isToContinue

boolean isToContinue(Vector x)
this method defines if the iterative solver stops or continues. The tolerance is used in this method

Parameters:
x - solution of the system of linear equations
Returns:
true if it should contine or false if it should stop

getIt

double getIt()
if x(k+1)=x(k)+g(x(k)) returns 0 (NewtonAssembler), if x(k+1)=g(x(k)) returns -1 (FixedPointAssembler);


isDamped

boolean isDamped()
Returns:
true if the iterative solver is damped and false if is not

initializeFP

int initializeFP()
this method is used to decide if some iterations should be done using fixed point iteration before using the Newton's method, since this one only converges if the first iteration is enough close to the exact solution.

Returns:
0 (if no iterations should be done using fixed point iteration) or the number of iterations that should be done to initialize the iterative solver

init

void init()