Code_Aster ®
Version
8.2
Titrate:
Procedure IMPR_RESU with format “CASTEM”


Date:
22/02/06
Author (S):
Key COURTEOUS Mr.
:
U7.05.11-J1 Page: 1/6

Organization (S): EDF-R & D/AMA

Handbook of Utilization
U7.0- booklet: Data exchanges
Document: U7.05.11

Procedure IMPR_RESU with format “CASTEM”

1 Goal

To write a grid and/or results of a calculation on a file with format “CASTEM”.

Currently this procedure makes it possible to write with the choice:

·
a grid,
·
fields with the nodes (of displacements, temperatures, clean modes, modes
statics,…),
·
fields by elements with the nodes (of constraints, generalized efforts, variables
interns…), if these fields by elements do not have under points.

For the concepts of the result type, one can print only part of information, in
selecting the fields and the sequence numbers which one wishes to exploit.

Handbook of Utilization
U7.0- booklet: Data exchanges
HT-62/06/004/A

Code_Aster ®
Version
8.2
Titrate:
Procedure IMPR_RESU with format “CASTEM”


Date:
22/02/06
Author (S):
Key COURTEOUS Mr.
:
U7.05.11-J1 Page: 2/6

2 Syntax

IMPR_RESU
(


MODELE= MO,
[model]

FORMAT
=/“CASTEM”,

UNITE
= links,
[I]

NIVE_GIBI
=/3,
/
10,
[DEFAUT]

RESU = (_F (

| MAILLAGE
=
MA,
/
[grid]
/
[skeleton]



| /CHAM_GD = CH_GD,


/
RESULTAT
=
RESU,






# Extraction of a field of size of resu








/
TOUT_CHAM
=
/“YES”, [DEFECT]






/“NON”,







/

NOM_CHAM = l_nomsymb, [l_K16]








/

TOUT_ORDRE =
“OUI”,
[DEFAUT]







/

NUME_ORDRE =
lordre, [l_I]
/
LIST_ORDRE =
lenti,
[listis]







/

NUME_MODE
=
lmode,
[l_I]
/
NOEUD_CMP
=
lnoecmp,
[l_K16]
/
NOM_CAS =
ncas,
[l_K16]
/
ANGL =
langl,
[l_K16]
/
/
FREQ =
lfreq,
[l_R]
/
LIST_FREQ
=
lreel,
[listr8]
/
INST =
linst,
[l_R]
/
LIST_INST
=
lreel,
[listr8]









| PRECISION =/prec,
[R]
/
1.0D-3,
[DEFAUT]









|
CRITERION =/“RELATIVE”, [DEFECT]
/
“ABSOLU”
,


| PARTIE
=/“REEL”,
/
“IMAG”,


# Selection of the components



/
TOUT_CMP
=
“OUI”,
[DEFAUT]



/
NOM_CMP =
l_nomcmp,
[l_K8]




))




)
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-62/06/004/A

Code_Aster ®
Version
8.2
Titrate:
Procedure IMPR_RESU with format “CASTEM”


Date:
22/02/06
Author (S):
Key COURTEOUS Mr.
:
U7.05.11-J1 Page: 3/6

3
Formats of writing and logical unit

Procedure IMPR_RESU makes it possible to write a grid and/or values of results to the format of
software CASTEM 2000 developed by the ECA for a graphic visualization by GIBI. Software
GIBI (operators of postprocessing of CASTEM 2000) is usable free with Code_Aster.

One asks for the creation of a file ASCII, which could be read again by GIBI. In GIBI, the second reading of
file is made by commands OPTI REST FORM “*** .cast”; and REST FORM; (them *** replace it
name of the file of the cast type given by the user in astk).
UNITE is worth by defect 37 and corresponds to the cast type in astk.

NIVE_GIBI
=/3,
/
10,
[DEFAUT]

Operand NIVE_GIBI makes it possible to choose level GIBI of impression of the grid and/or of
results. Level 10 (by defect) corresponds to version GIBI-98, but the files thus
generated can be read again by the more recent versions of GIBI. Version GIBI installed in
the Aster environment is version GIBI-2000.

4 Word
key
RESU

This key word factor makes it possible to specify the results to print and the format according to which one wants them
to print.

5
Impression of the grid: operands MAILLAGE/MODELE

This argument makes it possible to print the grid with format “CASTEM”. The impression of the grid cannot
to be asked that only once and before any other result.

Concept of the model type is optional in the majority of the impressions.
It is however obligatory, with format “CASTEM”, during the impression of a field per element (it is
transferred as an object CASTEM of the grid type).

With format “CASTEM”, one prints:

·
for each group of Aster meshs an object CASTEM of the grid type and of the same name,
·
an object CASTEM of the grid type containing all the meshs of the grid and accessible by
the name of the Aster grid,
·
and, if operand MODELE were specified, an object CASTEM of the grid type containing all
meshs affected in the Aster model and accessible by the name from the Aster model.

Note:

If the grid were generated with Ideas or GMSH, Ideas classification or GMSH is not
retranscribed with format CASTEM. The classification of the nodes in CASTEM is identical to
the classification of the nodes in Aster.

Handbook of Utilization
U7.0- booklet: Data exchanges
HT-62/06/004/A

Code_Aster ®
Version
8.2
Titrate:
Procedure IMPR_RESU with format “CASTEM”


Date:
22/02/06
Author (S):
Key COURTEOUS Mr.
:
U7.05.11-J1 Page: 4/6

6 Operands
CHAM_GD and RESULTAT

The values of the computed fields are stored in structures of data called fields of
size. These fields of size can be directly accessible (concept CHAM_GD) where
to find in a structure of data gathering several fields of size (concept
result).

·
a field of size is a structure of data which makes it possible to store definite fields
with the nodes (cham_no_ *) or fields defined by elements (cham_elem_ *). For the fields
by elements, one distinguishes the fields defined in the nodes from the elements and the fields defined in
points of GAUSS of the elements (the latter are not displayable with GIBI). For
to visualize fields by elements at the points of GAUSS, the user can however use
MACR_ECLA_PG which makes it possible to build a new grid by bursting each mesh of
old grid out of N smaller meshs and a field with the nodes with identical values in
each node node of the mesh. That functions only for elements 2D
isoparametric and HEXA8 in 3D and for constraints and variables internal,
·
a concept result is composed of one or more fields of size. For example, with
each step of calculation one stores in the structure of data result, the field of size
displacement. This structure is indexed by a matric structure of command 2, of which an index
is, for example, the list of the moments of calculation and the other the whole of the computed fields
(displacements, constraints, deformations,…).

One reaches in this case a field of size by specifying a value of a variable of access
(sequence number, moment, frequency, number of mode…) and a field name (“DEPL”,
“SIGM_ELNO_DEPL”,…). There are several types of concept result: evol_elas,
evol_noli, mode_meca,…. With each one corresponds a list of fields and a list of variables
licit accesses (cf [U5]).

Taking into account the structure of data result, one understands easily that the possibilities
of impression which one lays out are those of the fields of size, supplemented by
specific possibilities.

Note:

With format “CASTEM” one can treat only the fields with the nodes or the fields by
element defined in the nodes (in this case one must obligatorily specify the name of a model
Aster by operand MODELE).

6.1 Operand
CHAM_GD

A field with the Aster nodes of name U is retranscribed with format “CASTEM” in a champoint in the same way
name. In CASTEM 2000, one can thus reach this field by the name U and one can carry out on it
field all operations allowed on champoints. It will be noted however that them
components of the fields of size DEPL which are in Aster DX, DY, DZ, DRX, DRY, DRZ will be
in CASTEM UX, UY, UZ, X-ray, RY, RZ. For all the other components the name of the component
in CASTEM will be defined by the first four characters of the name of the component in Aster.
All the champoints are defined compared to the Aster grid.

Some possible operations in GIBI on an object of the champoint type and named U:

·
Creation and visualization of an object of the type deformed

DEF1
=
DEFORME
MAILLAGE
U
AMPLI
COULEUR;
TRAC DEF1;
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-62/06/004/A

Code_Aster ®
Version
8.2
Titrate:
Procedure IMPR_RESU with format “CASTEM”


Date:
22/02/06
Author (S):
Key COURTEOUS Mr.
:
U7.05.11-J1 Page: 5/6

·
Creation of an object of the vector type

VEC1
=
VECTEUR
U
UX
UY
UZ
AMPLI
COULEUR;
TRAC VEC1 GRID
;

·
Creation of an object of the champoint type by extraction on a champoint

DEPX
=
EXCO
UX
U
;
TRAC DEPX GRID
;

A field by element with the nodes of name CHAM in Aster is written with format “CASTEM” in one
chamelem of the same name. In CASTEM 2000, one can thus reach this field by the name cham
and one can carry out on this field all the operations allowed on chamelem the nodes. One
will note however that components of the fields of size SIGM which are in Aster SIXX,
SIYY, SIZZ, SIXY, SIYZ, SIXZ will be in CASTEM SMXX, SMYY, SMZZ, SMXY, SMYZ, SMXZ.
components of size VARI will be named V1, V2,… Pour all the other components it
name of the component in CASTEM will be obtained by concatenation of the two first and two
last letters of the name of the component in Aster. All the chamelem with the nodes are defined
compared to the Aster model.

Some possible operations in GIBI on an object of the cham_elem type and named CHAM:

All the processing on chamelem require the preliminary creation of an object CASTEM of
type models (nothing to see with the Aster model) what can be made by the command:

MODCAST
=
MODE
MODELE
MECANIQUE
ELASTIQUE
;

·
Creation of an object of the chamelem type by extraction on a chamelem

SIGXX
=
EXCO
SMXX CHAM;
TRAC EYE SIGXX
MODCAST GRID
;

·
Creation of an object of the chamelem type by operation on a chamelem

TRE1 =
TRESCA
CHAM MODCAST;
(constraints
of
Tresca)

6.2 Operand
RESULTAT

Operand RESULTAT makes it possible to print the fields contained in a concept result. One can
for example to choose to print only certain fields (Cf. the following key word: NOM_CHAM).

With format “CASTEM”, the concept result of name TITI is written in the form of an object CASTEM of
type counts (table) of the same name than the concept Aster result.

The first index of the table is an entirety I which can take the value of the sequence numbers Aster
(TITI. 1 is also a table).

The second table is subscripted by a chain made up of the reference symbol Aster U = TITI. 1.
DEPL (field of displacements to the sequence number 1), SIG = TITI. 2. SIGM_ELNO_DEPL
(stress field to the sequence number 2).

Example:

In Aster:




IMPR_RESU (RESU = (_F (RESULT = TITI, NUME_ORDRE = (1,2),
NOM_CHAM=
(“DEPL”, “SIGM_ELNO_DEPL”)))

In CASTEM:





U = TITI. 1. DEPL;
(object CASTEM of the champoint type)




SIG = TITI. 2. SIGM_ELNO_DEPL;

(object CASTEM of the type
chamelem)
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-62/06/004/A

Code_Aster ®
Version
8.2
Titrate:
Procedure IMPR_RESU with format “CASTEM”


Date:
22/02/06
Author (S):
Key COURTEOUS Mr.
:
U7.05.11-J1 Page: 6/6

7
Extraction of a field of size

7.1 Operands
TOUT_CHAM/NOM_CHAM

Cf document [U4.71.00].

7.2 Operands TOUT_ORDRE/NUME_ORDRE/LIST_ORDRE/
NUME_MODE/INST/LIST_INST/FREQ/LIST_FREQ/
NOEUD_CMP/NOM_CAS/ENG/PRECISION/CRITERION

Cf document [U4.71.00].

8
Selection on the components

Another manner of reducing the volume of the impressions is to print only the values of
certain components (for example that displacement following axis X: component DX).

One cannot print complex fields with format CASTEM, it is thus necessary, for such fields,
to select the PARTIE REELle or IMAGinaire to be printed.

8.1 Operand
TOUT_CMP

This key word makes it possible to indicate that one wishes to print all the components of the field. It is
default value.

8.2 Operand
NOM_CMP

This key word makes it possible to choose the list of the components of the CHAM_GD (cham_no and/or cham_elem) or
of all the fields of the concept result which one wishes to print.

Key words TOUT_CMP and NOM_CMP cannot be used simultaneously.

These components are described in the specific documentation of the elements.

9 Remark

In Aster, there are fields by elements with under points (as well for fields by
elements with the nodes that for fields by elements at the points of Gauss).

Format “CASTEM”, IMPR_RESU does not allow the impression of these fields by elements with under
points.

Handbook of Utilization
U7.0- booklet: Data exchanges
HT-62/06/004/A

Outline document