Code_Aster
®
Version
8.2
Titrate:
Procedure
IMPR_RESU
with format “CASTEM”
Date:
22/02/06
Author (S):
COURTEOUS Mr.
Key
:
U7.05.11-J1
Page
:
1/6
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.05.11
Procedure
IMPR_RESU
with format “CASTEM”
1 Goal
To write a mesh and/or results of a calculation on a file with the format
“CASTEM”
.
Currently this procedure makes it possible to write with the choice:
·
a mesh,
·
fields with the nodes (of displacements, temperatures, clean modes, modes
statics,…),
·
fields by elements with the nodes (of stresses, generalized efforts, variables
interns…), if these fields by elements do not have under points.
For the concepts of the type
result
, one can print only part of information, in
selecting the fields and the sequence numbers which one wishes to exploit.
Code_Aster
®
Version
8.2
Titrate:
Procedure
IMPR_RESU
with format “CASTEM”
Date:
22/02/06
Author (S):
COURTEOUS Mr.
Key
:
U7.05.11-J1
Page
:
2/6
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A
2 Syntax
IMPR_RESU
(
MODELE= MO,
[model]
FORMAT
=/“CASTEM”,
UNIT
= links,
[I]
NIVE_GIBI
=/3,
/
10,
[DEFECT]
RESU = (_F (
|
MESH
=
MA,
/
[mesh]
/
[skeleton]
|
/CHAM_GD = CH_GD,
/
RESULT
=
RESU,
# Extraction of a field of size of resu
/
TOUT_CHAM
=
/“YES”, [DEFECT]
/“NOT”,
/
NOM_CHAM = l_nomsymb, [l_K16]
/
TOUT_ORDRE =
“YES”,
[DEFECT]
/
NUME_ORDRE =
lordre, [l_I]
/
LIST_ORDRE =
lenti,
[listis]
/
NUME_MODE
=
lmode,
[l_I]
/
NOEUD_CMP
=
lnoecmp,
[l_K16]
/
NOM_CAS =
ncas,
[l_K16]
/
ENG =
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,
[DEFECT]
|
CRITERION =/“RELATIVE”, [DEFECT]
/
“ABSOLUTE”
,
|
PART
=/“REAL”,
/
“IMAG”,
#
Selection of the components
/
TOUT_CMP
=
“YES”,
[DEFECT]
/
NOM_CMP =
l_nomcmp,
[l_K8]
))
)
Code_Aster
®
Version
8.2
Titrate:
Procedure
IMPR_RESU
with format “CASTEM”
Date:
22/02/06
Author (S):
COURTEOUS Mr.
Key
:
U7.05.11-J1
Page
:
3/6
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A
3
Formats of writing and logical unit
Procedure
IMPR_RESU
allows to write a mesh 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 an ASCII file, which could be read again by GIBI. In GIBI, the second reading of
file is made by controls OPTI REST FORM “*** .cast”; and REST FORM; (them *** replace it
name of the file of the type
cast
given by the user in astk).
UNIT is worth by defect 37 and corresponds to the cast type in astk.
NIVE_GIBI
=/3,
/
10,
[DEFECT]
Operand NIVE_GIBI makes it possible to choose level GIBI of impression of the mesh 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 mesh: operands
MESH
/
MODEL
This argument makes it possible to print the mesh with the format
“CASTEM”
. The impression of the mesh cannot
to be asked that only once and before any other result.
The concept of the type
model
is optional in the majority of the impressions.
It is however obligatory, with the format
“CASTEM”
, during the impression of a field per element (it is
transferred as an object CASTEM of the mesh type).
With the format
“CASTEM”
, one prints:
·
for each group of meshs Aster an object CASTEM of the mesh type and of the same name,
·
an object CASTEM of the mesh type containing all the meshs of the mesh and accessible by
the name of the mesh Aster,
·
and, if the operand
MODEL
was specified, an object CASTEM of the mesh type containing all
meshs affected in the model Aster and accessible by the name from the model Aster.
Note:
If the mesh 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.
Code_Aster
®
Version
8.2
Titrate:
Procedure
IMPR_RESU
with format “CASTEM”
Date:
22/02/06
Author (S):
COURTEOUS Mr.
Key
:
U7.05.11-J1
Page
:
4/6
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A
6 Operands
CHAM_GD
and
RESULT
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 of the 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 mesh by bursting each mesh of
old mesh 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 stresses and variables internal,
·
a concept
result
is composed of one or more fields of size. For example, with
each pitch 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, stresses, 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
, it is understood easily that the possibilities
of impression which one lays out are those of the fields of size, supplemented by
specific possibilities.
Note:
With the 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 the operand
MODEL
).
6.1 Operand
CHAM_GD
A field with the nodes Aster of name
U
is retranscribed with the 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
who 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 mesh.
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
=
DEFORM
MESH
U
AMPLIFIER
COLOR;
TRAC DEF1;
Code_Aster
®
Version
8.2
Titrate:
Procedure
IMPR_RESU
with format “CASTEM”
Date:
22/02/06
Author (S):
COURTEOUS Mr.
Key
:
U7.05.11-J1
Page
:
5/6
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A
·
Creation of an object of the vector type
VEC1
=
VECTOR
U
UX
UY
UZ
AMPLIFIER
COLOR;
TRAC VEC1 MESH
;
·
Creation of an object of the champoint type by extraction on a champoint
DEPX
=
EXCO
UX
U
;
TRAC DEPX MESH
;
A field by element with the nodes of name
CHAM
in Aster is written with the 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 the components of the fields of size
SIGM
who are in Aster
SIXX
,
SIYY
,
SIZZ
,
SIXY
,
SIYZ
,
SIXZ
will be in CASTEM
SMXX
,
SMYY
,
SMZZ
,
SMXY
,
SMYZ
,
SMXZ
.
components of the size
VARI
will be named
V1
,
V2
,… For 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 model Aster.
Some possible operations in GIBI on an object of the type
cham_elem
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 control:
MODCAST
=
MODE
MODEL
MECHANICS
RUBBER BAND
;
·
Creation of an object of the chamelem type by extraction on a chamelem
SIGXX
=
EXCO
SMXX CHAM;
TRAC EYE SIGXX
MODCAST MESH
;
·
Creation of an object of the chamelem type by operation on a chamelem
TRE1 =
TRESCA
CHAM MODCAST;
(stresses
of
Tresca)
6.2 Operand
RESULT
The operand
RESULT
allows 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 the 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
result
Aster.
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 channel 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)
Code_Aster
®
Version
8.2
Titrate:
Procedure
IMPR_RESU
with format “CASTEM”
Date:
22/02/06
Author (S):
COURTEOUS Mr.
Key
:
U7.05.11-J1
Page
:
6/6
Instruction manual
U7.0- booklet: Data exchanges
HT-62/06/004/A
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 the axis
X
: component
DX
).
One cannot print complex fields with format CASTEM, it is thus necessary, for such fields,
to select the Real or Imaginary PART to print.
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
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.