Modulefpreviousupnextcontents[BIG][Normal][small]
Next: 3 Manipulation of structures and miscellaneous Up: 2 Manipulation of solutions Prev: 2.9 Extrema of a D.S. B Contents


2.10 Norm and residues

2.10.1 Norm corresponding to D.S. B

Comparing the exact solution with the calculated solution consists of computing, at each node:

where is the exact solution and is the calculated solution, and printing, for each degree of freedom:

by indicating in addition the number and coordinates of the node where the maximum occurs.

Preprocessor NORMXX compares the calculated solution with the exact solution for those cases where the solution to a problem is known analytically. It calls module NORME:

      SUBROUTINE NORME (M,XM,DM,NFMAIL,NIMAIL,NFCOOR,NICOOR,NFB,NIB,
     +   NFBS,NIBS,INDICB,NSM,FONINT,SOLEX,DSOLEX)
C ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
C    AIM  : IPRINT THE EXACT SOLUTION, THE CALCULATED SOLUTION,
C    ---    THE ABSOLUTE AND RELATIVE DIFFERENCES BETWEEN THEM,
C           THE L1,L2 ERRORS AND MAX
C ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

where

Depending on the value of FONINT, functions SOLEX or DSOLEX must be written using the following format:

      FUNCTION SOLEX(I,X,Y,Z)

      DOUBLE PRECISION FUNCTION DSOLEX(I,X,Y,Z)

where I is the degree of freedom number of the node with coordinates X, Y and Z.

2.10.2 Norm corresponding to D.S. TAE

Preprocessor NORMXX compares the calculated stresses with the exact solution for those cases where the stresses of elasticity problem is known analytically, using the same method of computation as for a D.S. B as seen above. It calls module NORTAE:

      SUBROUTINE NORTAE(M,XM,DM,NFTAE,NITAE,NFTAES,NITAES,INDICB,
     +                  FONINT,SOLEX,DSOLEX,NSM,NC1)
C ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
C    AIM  : PRINT THE EXACT SOLUTION THE CALCULATED SOLUTION,
C    ---    THE ABSOLUTE AND RELATIVE DIFFERENCES BETWEEN THEM,
C           THE L1,L2 ERRORS AND MAX FOR A SOLUTION GIVEN BY TAES
C ..................................................................

where

Depending on the value of FONINT, functions SOLEX or DSOLEX must be written using the following format:

      FUNCTION SOLEX(I,X,Y,Z)

      DOUBLE PRECISION FUNCTION DSOLEX(I,X,Y,Z)

where I is the component number of the stresses treated, and X, Y and Z are the coordinates of the computational point of this stress.

2.10.3 Energy norm corresponding to D.S. B

Preprocessor NORMXX calculates the energy norm between the exact solution and the solution obtained when solving the problem, for those cases where the solution to a problem is known analytically.

It calls module ENERGI:

     

      SUBROUTINE ENERGI (M,XM,DM,NFMAIL,NIMAIL,NFCOOR,NICOOR,NFB,NIB,
     +   NFTAE,NITAE,NSM,FONINT,SOLEX,DSOLEX)
C ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
C    AIM  : CALCULATE THE ENERGY ERROR NORM
C    ---    |A ( U-UH ; U-UH )|
C ..................................................................

where

Depending on the value of FONINT, functions SOLEX or DSOLEX must be written using the following format:

      FUNCTION SOLEX(I,X,Y,Z)

      DOUBLE PRECISION FUNCTION DSOLEX(I,X,Y,Z)

where I is the number of the degree of freedom of the node with coordinates X, Y et Z.

2.10.4 Solution error for D.S. B

Module ERREUR calculates the solution error for a linear system from the solution of this system and the element matrices and right-hand-side vectors. For clamped degrees of freedom, the result of this computation indicates the reaction.

      SUBROUTINE ERREUR(M,NFTAE,NITAE,NFB,NIB,NFNDL1,NINDL1,NFBER,
     +                  NIBER,NTBER,NOT1,NOT2)
C  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
C  AIM : COMPUTE THE ERROR VECTOR.
C  ---
C  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

where

If NTBER is non-zero, the associated descriptive arrays must be input (see above).


Modulefpreviousupnextcontents[BIG][Normal][small]
Next: 3 Manipulation of structures and miscellaneous Up: 2 Manipulation of solutions Prev: 2.9 Extrema of a D.S. B Contents