Keywords: ccx

Next: Loading Up: Theory Previous: Diffusion mass transfer in Contents

## Convergence criteria

To find the solution at the end of a given increment a set of nonlinear equations has to be solved. In order to do so, the Newton-Raphson method is applied, i.e. the set of equations is locally linearized and solved. If the solution does not satisfy the original nonlinear equations, the latter are again linearized at the new solution. This procedure is repeated until the solution satisfies the original nonlinear equations within a certain margin. Suppose iteration has been performed and convergence is to be checked. Let us introduce the following quantities:

- : the average flux for field at the end of iteration . It is defined by:

  | (46)

  where represents all elements, all nodes belonging to a given element, all degrees of freedom for field belonging to a given node and is the flux for a given degree of freedom of field in a given node belonging to a given element at the end of iteration . Right now, the flux in CalculiX is the force for mechanical calculations and concentrated heat flux for thermal calculations. They are assumed to belong to one and the same field , i.e. for thermomechanical calculations forces and concentrated heat flux are indiscriminately summed. This means that there is only one field .

- : the iteration-average of the average flux for field of all iterations in the present increment up to but not including iteration .

- : the largest residual flux (in absolute value) of field at the end of iteration . For its calculation each degree of freedom is considered independently from all others:

  | (47)

  where denotes the change due to iteration .

- : the largest change in solution (in absolute value) of field in the present increment including iteration . :

  | (48)

  where denotes the change due to the present increment. In mechanical calculations the solution is the displacement, in thermal calculations it is the temperature.

- : the largest change in solution (in absolute value) of field in iteration . :

  | (49)

Now, two constants and are introduced: is used to check convergence of the flux, serves to check convergence of the solution. Their values depend on whether zero flux conditions prevail or not. Zero flux is defined by

| (50)

The following rules apply:

- if( ) (no zero flux):

  - if ( ) , .
  - else , .

- else (zero flux) ,

The values in square brackets are the default values. They can be changed by using the keyword card *CONTROLS. Now, convergence is obtained if

| (51)

AND at least one of the following conditions is satisfied:

- | (52)

  The left hands side is an estimate of the largest solution correction in the next iteration. This condition only applies if no gas temperatures are to be calculated (no forced convection).
- . If this condition is satisfied, the increment is assumed to be linear and no solution convergence check is performed. This condition only applies if no gas temperatures are to be calculated (no forced convection).
- (zero flux conditions). This condition only applies if no gas temperatures are to be calculated (no forced convection).
- .

If convergence is reached, and the size of the increments is not fixed by the user (no parameter DIRECT on the *STATIC, *DYNAMIC or *HEAT TRANSFER card) the size of the next increment is changed under certain circumstances:

- if( ): , where is the increment size relative to the step size (convergence was rather slow and the increment size is decreased).
- if( ) AND the same applies for the previous increment: (convergence is fast and the increment size is increased).

If no convergence is reached in iteration , the following actions are taken:

- if , too many iterations are needed to reach convergence and any further effort is abandoned: CalculiX stops with an error message.
- if AND AND AND AND AND then:
  - if the parameter DIRECT is active, the solution is considered to be divergent and CalculiX stops with an error message.
  - else, the size of the increment is adapted according to and the iteration of the increment is restarted.
- if , the number of iterations is estimated needed to reach convergence. roughly satisfies:

  | (53)

  from which can be determined. Now, if

  | (54)

  (which means that the estimated number of iterations needed to reach convergence exceeds ) OR , the increment size is adapted acording to and the iteration of the increment is restarted unless the parameter DIRECT was selected. In the latter case the increment is not restarted and the iterations continue.

- if none of the above applies iteration continues.

Next: Loading Up: Theory Previous: Diffusion mass transfer in Contents