background image
Code_Aster
®
Version
8.2
Titrate:
Procedure
IMPR_MATRICE
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U7.04.32-F1 P
age:
1/10
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A
Organization (S):
EDF-R & D/AMA














Instruction manual
U7.0- booklet: Data exchanges
Document: U7.04.32



Procedure
IMPR_MATRICE








1 Goal
To print on a file with the format
IDEAS
or
RESULT
elementary matrices and assemblies.
Impressions with the format
RESULT
are especially useful for the developers of the code at ends of
“débuggage”.
background image
Code_Aster
®
Version
8.2
Titrate:
Procedure
IMPR_MATRICE
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U7.04.32-F1 P
age:
2/10
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A
2 Syntax
IMPR_MATRICE
(
|
MATR_ELEM =_F (

#
impressions in the form of a universal file IDEAS.
/
FORMAT
=
“IDEAS”
,
[DEFECT]
STAMP = mel
,
[matr_elem_DEPL_R]
UNIT
=
/
30,
[DEFECT]
/
iunit,
[I]
VERSION =
5,
[DEFECT]

# impressions in a listing (débuggage):
/
FORMAT
=
“RESULT”,
STAMP = mel
,
/
[matr_elem_ *]
/
[vect_elem_ *]
UNIT
=
/
8, [DEFECT]
/
iunit,
[I]
#
choice
meshs
:
/ALL = “YES”,
/
|
NODE =
l_no,
[l_noeud]
|
GROUP_NO
= l_gno,
[l_group_no]
|
NET =
l_ma,
[l_maille]
|
GROUP_MA
= l_gma,
[l_group_ma]

NOM_CMP
=
l_cmp,
[l_Kn]

GRAIN
=/
“VALUE”,
[DEFECT]
/
“NODE”
,
/
“MESH”,
NB_CHIFFRE =/4,
[DEFECT]
/
nchif,
[I]
/
999
,
#
precision
max.
)
background image
Code_Aster
®
Version
8.2
Titrate:
Procedure
IMPR_MATRICE
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U7.04.32-F1 P
age:
3/10
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A
|
MATR_ASSE =_F (

# impressions in the form of a universal file IDEAS.
/
FORMAT
=
“IDEAS”
,
[DEFECT]
STAMP = chechmate
,
[matr_asse_DEPL_R]
UNIT
=
/
30,
[DEFECT]
/
iunit,
[I]
VERSION =
5,
[DEFECT]

# impressions in a listing (débuggage):
/
FORMAT
=
“RESULT”
,
STAMP = mel
,
[matr_asse_ *]
UNIT
=
/
8, [DEFECT]
/
iunit,
[I]
#
choice
nodes
:
/ALL = “YES”,
/
|
NODE =
l_no,
[l_noeud]
|
GROUP_NO
= l_gno,
[l_group_no]
|
NET =
l_ma,
[l_maille]
|
GROUP_MA
= l_gma,
[l_group_ma]
OPTION=/
“SOUS_MATRICE”
, [DEFECT]
/
“LINE”
,
/
“COLUMN”
,

NOM_CMP=
l_cmp,
[l_Kn]

GRAIN =
/“VALUE”,
[DEFECT]
/
“NODE”
,
NB_CHIFFRE =/4,
[DEFECT]
/
nchif,
[I]
/
999
,
#
precision
max.
VALE_ZERO
=
/
0.
,
[DEFECT]
/
eps,
[R]
)
)
background image
Code_Aster
®
Version
8.2
Titrate:
Procedure
IMPR_MATRICE
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U7.04.32-F1 P
age:
4/10
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A
3 Operands
3.1
Impressions in the form of a universal file IDEAS
3.1.1 Key word factor
MATR_ELEM
Allows to specify to it (S) concept (S) of type
matr_elem
to print as well as the format of impression.

3.1.1.1 Operand
FILE
FILE =
nom_fich
[KN]
Name of the file in which one wishes to see printing the data to be transferred. This name of
file must be defined beforehand by the procedures
BEGINNING
[U4.11.01],
CONTINUATION
[U4.11.03] or DEFI_FICHIER [U4.12.03].

3.1.1.2 Operand
FORMAT
Format under which one wishes to print the data.

3.1.1.3 Operand
VERSION
VERSION =
5
[DEFECT]
Number of the version of IDEAS corresponding to the format of the file used to print them
data. Only version 5 (default value) is supported for the moment.

3.1.1.4 Operand
STAMP
STAMP = mel
Name of the elementary matrices (standard
matr_elem_DEPL_R
) that one wishes to print on one
file.
3.1.2 Key word factor
MATR_ASSE
Allows to specify to it (S) concept (S) of type
matr_asse
to print as well as the format of impression.

3.1.2.1 Operand
FILE
FILE =
nom_fich
[KN]
Name of the file in which one wishes to see printing the data to be transferred. This name of
file must be defined beforehand by the procedures
BEGINNING
,
CONTINUATION
or
DEFI_FICHIER.

3.1.2.2 Operand
FORMAT
FORMAT
=
“IDEAS” [DEFECT]
Format under which one wishes to print the data. Only the format by defect
“IDEAS”
is
supported for the moment.

3.1.2.3 Operand
VERSION
VERSION =
5
[DEFECT]
Number of the version of IDEAS corresponding to the format of the file used to print them
data. Only version 5 (default value) is supported for the moment.
background image
Code_Aster
®
Version
8.2
Titrate:
Procedure
IMPR_MATRICE
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U7.04.32-F1 P
age:
5/10
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A

3.1.2.4 Operand
STAMP
STAMP = mel
Name of the assembled matrix (standard
matr_asse_DEPL_R
) that one wishes to print on one
file.
3.2
Impressions on listing
3.2.1 Operand
FORMAT = “RESULT”
It is the choice of the format
RESULT
who allows to print in “light” (on listing) the contents of
matrices (or elementary vectors).
3.2.2 What can one print?
A priori all concepts of the type
MATR_ASSE_ *
except the MATR_ASSE_GENE or
MATR_ELEM_ *
or
VECT_ELEM_ *
For
MATR_ASSE_
*, one will use the key word factor
MATR_ASSE
,
for
MATR_ELEM_ *
(or
VECT_ELEM_ *
), one will use the key word factor
MATR_ELEM
.
3.2.3 Operand
FILE
FILE =
nom_fich
[KN]
Name of the file in which one wishes to see printing the treated data. By defect, it acts
file '
RESULT
'.
3.2.4 Operand
STAMP
STAMP = chechmate
Name of the assembled or elementary matrix which one wishes to print on a file.
Note:
One cannot print the matr_asse_gene but they are simple objects
(full matrices) for which control IMPR_CO is sufficient.

3.2.5 To select the meshs or the nodes which one wants to print

3.2.5.1 Case
RESUELEM
(matrix or vector)
Choice of the elements which one wants to print:
has)
/list of meshs:
lma
only meshs of
lma
b)/
TOUT=' OUI'
all meshs
c)
/list of nodes:
lno
all meshs resting on at least
a node of the list of nodes
lno
Note:
The possibility c) makes it possible to print the matrices (or the vectors) elementary of “Lagrange” which
force a physical node which one knows the name.
background image
Code_Aster
®
Version
8.2
Titrate:
Procedure
IMPR_MATRICE
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U7.04.32-F1 P
age:
6/10
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A

3.2.5.2 Case
MATR_ASSE
Choice of the nodes which one wants to print:
has)
/list of meshs:
lma
nodes of the meshs of
lma
b)/
TOUT=' OUI'
all “physical " nodes carrying ddls
c)
/list of nodes:
lno
only nodes of
lno
.

3.2.5.3 Word
key
OPTION
By defect (
OPTION = “MATRIX”
), one prints only the terms of
MATR_ASSE
defined by
“under” matrix corresponding to the choice of the nodes which one has just made. If the user asks
(
OPTION = “LINE”
), one will print all the contents of the lines corresponding to the nodes chosen,
(in the same way for
OPTION = “COLUMN”
).
3.2.6 To select
CMPS
to print
NOM_CMP = l_kn
list components which one wants to print (by defect: all).
3.2.7 Format
of impression

3.2.7.1 General
The matrices, even if they are symmetrical, will be entirely printed: they are “rectangles”
full.
NB_CHIFFRE = nchif
nchif is the number of decimals to be written for each floating number.
VALE_ZERO = eps
One will print only the values whose absolute value is higher than
eps
. This key word is not
valid that for
MATR_ASSE
, to limit the impressions.

3.2.7.2 Case
RESUELEM
(
matr_elem
or
vect_elem
)
GRAIN = “VALUE”
one prints a value by line of listing.
Example
: RESUELEM (matrix) = mel NETS = (“M1”, “m2”), NOM_CMP= “TEMP”
M1/NO1/“TEMP”
M1/NO1/“TEMP”
12.
M1/NO1/“TEMP”
M1/NO4/“TEMP”
12.
M1/NO1/“TEMP”
M1/NO7/“TEMP”
12.
M1/NO4/“TEMP”
M1/NO4/“TEMP”
12.
M1/NO4/“TEMP”
M1/NO7/“TEMP”
12.
M2/NO4/“TEMP”
M2/NO4/“TEMP”
7.
background image
Code_Aster
®
Version
8.2
Titrate:
Procedure
IMPR_MATRICE
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U7.04.32-F1 P
age:
7/10
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A
Example
: RESUELEM (vector) = mel, MESH = “M1”, NOM_CMP= “TEMP”
M1/NO1/“TEMP”
12.
M1/NO4/“TEMP”
12.
M1/NO7/“TEMP”
12.
GRAIN = “NODE”
In this case, the “grain” of impression is the node.
Example:
RESUELEM (matrix) = mel, MESH = “M1”, NOM_CMP= (“DX”, “DZ”)
M1/NO1 X NO1
DX
DZ
DX 12.
13.
DX 13.
15.
M1/NO1 X NO4
DX
DZ
DX 12.
13.
DX 13.
15.
GRAIN = “MESH”
In this case, the “grain” of impression is the mesh.
Example
: RESUELEM = mel, MESH = “M1”, NOM_CMP= (“DX”, “DZ”)
M1
N1/DX N1/DZ N3/DX N3/DZ…
N1/DX 12. 13. 14. 15. …
N1/DZ 13. 13. 14. 15. …
N3/DX 14. 14. 14. 15. …

3.2.7.3
MATR_ASSE
For one
MATR_ASSE
, one will print only the “grains” for which at least a value is nonnull
(see key word
VALE_ZERO
in paragraph 3.2.7.1).
GRAIN = “VALUE”
one prints a value by line of listing.
Example:
MATR_ASSE=matass, NOEUD= (“NO1”, “NO3”, “NO7”), NOM_CMP= (“DX”, “DZ”),
OPTION
=
“SOUS_MATRICE”
NO1/“DX”
NO1/“DX”
12.
NO1/“DX”
NO1/“DZ”
12.
NO1/“DX”
NO3/“DX”
12.
NO1/“DX”
NO3/“DZ”
12.
NO1/“DX”
NO7/“DX”
12.
NO1/“DX”
NO7/“DZ”
12.

NO3/“DX”
NO3/“DX”
12.
NO3/“DX”
NO3/“DZ”
12.

NO7/“DZ”
NO7/“DZ”
12.
background image
Code_Aster
®
Version
8.2
Titrate:
Procedure
IMPR_MATRICE
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U7.04.32-F1 P
age:
8/10
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A
Example:
MATR_ASSE = matass, NODE = (“NO1”), NOM_CMP= (“DX”, “DZ”),
OPTION
=
“COLUMN”
NO1/“DX”
NO1/“DX”
12.
NO1/“DX”
NO1/“DZ”
12.
NO1/“DZ”
NO1/“DX”
12.
NO1/“DZ”
NO1/“DZ”
12.
NO2/“DX”
NO1/“DX”
12.
NO2/“DX”
NO1/“DZ”
12.
NO2/“DZ”
NO1/“DX”
12.
NO2/“DZ”
NO1/“DZ”
12.
NO3/“DX”
NO1/“DX”
12.
NO3/“DX”
NO1/“DZ”
12.
NO999
/“DZ”
NO1/“DX”
12.
NO999
/“DZ”
NO1/“DZ”
12.
Example:
MATR_ASSE = matass, NODE = (“NO1”), NOM_CMP= (“DX”, “DZ”),
OPTION
=
“LINE”
NO1/“DX” NO1
/“DX”
12.
NO1/“DZ” NO1
/“DX”
12.
NO1/“DX” NO1
/“DZ”
12.
NO1/“DX”
NO999/“DZ”
12.
NO1/“DZ”
NO999/“DZ”
12.
GRAIN = “NODE”
In this case, the “grain” of impression is the node.
Example:
MATR_ASSE= matass, NODE = (“NO1”, “NO3”), NOM_CMP= (“DX”, “DZ”)
NO1 X NO1
DX
DZ
DX 12.
13.
DX 13.
15.
NO1 X NO3
DX
DZ
DX 12.
13.
DX 13.
15.
NO3 X NO3
DX
DZ
DX 12.
13.
DX 13.
15.
background image
Code_Aster
®
Version
8.2
Titrate:
Procedure
IMPR_MATRICE
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U7.04.32-F1 P
age:
9/10
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A
4 Examples
One wants:
1) elementary matrices corresponding to the meshs
S1
and
S2
,
2) 1 table by mesh,
3) 2 significant digits for the floating numbers,
4) one is interested only in the components
DY
and
DRZ
.
matel = CALC_MATR_ELEM (…)
IMPR_MATRICE (
MATR_ELEM = _F (
STAMP
=
matel,
FORMAT = “RESULT”,
FILE = “RESULT”,
NET = (“S1”, “S2”),
GRAIN = “MESH”,
NOM_CMP = (“DY”, “DRX”),
NB_CHIFFRE = 2))
One obtains in the file
RESULT
:
_____________________________________________________
! LIGREL = MO .MODELE OPTION = RIGI_MECA_GE!
_____________________________________________________

_______________________________________________________________
!S1! N1/DY! N1/DRX! N2/DY! N2/DRX!
_______________________________________________________________
!N1/DY! - 5.3E-03! 5.8E-02! 5.3E-03! 5.8E-02!
_______________________________________________________________
!N1/DRX! 5.8E-02! - 2.1E+01! - 5.8E-02! 1.1E+01!
_______________________________________________________________
!N2/DY! 5.3E-03! - 5.8E-02! - 5.3E-03! - 5.8E-02!
_______________________________________________________________
!N2/DRX! 5.8E-02! 1.1E+01! - 5.8E-02! - 2.1E+01!
_______________________________________________________________

_______________________________________________________________
!S2! N2/DY! N2/DRX! N3/DY! N3/DRX!
_______________________________________________________________
!N2/DY! - 5.3E-03! 5.8E-02! 5.3E-03! 5.8E-02!
_______________________________________________________________
!N2/DRX! 5.8E-02! - 2.1E+01! - 5.8E-02! 1.1E+01!
_______________________________________________________________
!N3/DY! 5.3E-03! - 5.8E-02! - 5.3E-03! - 5.8E-02!
_______________________________________________________________
!N3/DRX! 5.8E-02! 1.1E+01! - 5.8E-02! - 2.1E+01!
_______________________________________________________________
background image
Code_Aster
®
Version
8.2
Titrate:
Procedure
IMPR_MATRICE
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U7.04.32-F1 P
age:
10/10
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A























Intentionally white left page.