Code_Aster ®
Version
8.2
Titrate:
Operator LIRE_CHAMP
Date:
22/02/06
Author (S):
COURTEOUS Mr., G. Key NICOLAS
:
U7.02.02-D1 Page:
1/4
Organization (S): EDF-R & D/AMA, SINETICS
Handbook of Utilization
U7.0- booklet: Data exchanges
Document: U7.02.02
Operator LIRE_CHAMP
1 Goal
To see a field in a file with format MED and to store it in a concept.
The field is indicated in the file by its name and possibly by a temporal parameter.
The produced concept is of the type corresponding to what was required.
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator LIRE_CHAMP
Date:
22/02/06
Author (S):
COURTEOUS Mr., G. Key NICOLAS
:
U7.02.02-D1 Page:
2/4
2 Syntax
champ_lu = LIRE_CHAMP (
FORMAT
=
“MED”
,
[DEFAUT]
TYPE_CHAM
=/“NOEU_TEMP_R”
,
[TXM]
/
“NOEU_DEPL_R”
,
[TXM]
/
etc
…
MAILLAGE
=
my
,
[grid]
[K]
NOM_MED
=
nommed
,
[TXM]
# Selection of the temporal parameter
/
NUME_ORDRE
=
command
,
[I]
/
NUME_PT
=
not
of
time
,
[I]
/
INST
=
inst,
[R]
I PRECISION
=
/
PREC,
[R]
/
1.0E-3, [DEFAUT]
I CRITERION =/“RELATIVE”, [DEFECT]
/“ABSOLU”,
# Choice of the components to reading: the same ones as the field in ASTER
or a precise list
/NOM_CMP_IDEM
= “OUI”,
[TXM]
/
NOM_CMP =
lcmp,
[l_TXM]
NOM_CMP_MED
=
lcmpmed,
[l_TXM]
NOM_MAIL_MED
=
nomamed
,
[TXM]
UNITE
=/
unit
,
[I]
/
81
,
[DEFAUT]
INFO =
/
1
,
[DEFAUT]
/
2
,
)
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator LIRE_CHAMP
Date:
22/02/06
Author (S):
COURTEOUS Mr., G. Key NICOLAS
:
U7.02.02-D1 Page:
3/4
3 Operands
3.1 Operand
FORMAT
FORMAT = “MED”
Choice of the format of the file containing the field with reading.
Note:
Only format MED is operational today.
3.2 Operand
TYPE_CHAM
TYPE_CHAM =
/“NOEU_TEMP_R”,
/
“NOEU_DEPL_R”
,
/
etc
…
One indicates the type of the concept here to be produced. The name of the type is built with logic
usual Code_Aster. The first 4 characters are “NOEU”, “ELEM”, “ELNO” or “ELGA”. One
find “_ then”. The following sequence defines the type of field: “TEMP”, “DEPL”, “SIEF”,
etc… the name ends in “_R”, “_F” or “_C' according to the data-processing type of the values.
Example: “NOEU_TEMP_R”, “NOEU_DEPL_R”, “ELGA_SIEF_R” etc…
Caution:
There is no consistency check! One can create a concept temperature very well in
reading again a field which was a displacement with the writing of the file.
Note:
It can happen that values read in the file are not affected in the field
final. For example, if one reads a field of pressure on elements TETRA4 whereas it
must be affected on meshs of edge (because it is its nature), one will be informed by this type
of alarm:
<A> <LIRE_RESU> <LRCEME>
NONAFFECTED VALUES IN THE FIELD: 3699
VALUES READ IN THE FILE: 3699
3.3 Operand
MAILLAGE
MAILLAGE = my
Name of the grid ASTER on which the field with reading will be expressed.
3.4 Operand
NOM_MED
NOM_MED
=
nommed
Name according to convention MED of the field to reading in the file. It is a chain of 32 characters.
3.5
Selection of the temporal parameter
If the field were written in the file without reference to a temporal parameter, nothing is to be mentioned
in this reading command. If not it is necessary to specify about which moment it is. That is done by
designation of, a step sequence number of time or a one moment value of filing. To refer
with the document [U4.71.00] for the details on these key words.
3.6 Operand
NOM_CMP_IDEM
/NOM_CMP_IDEM = “YES”
Indicate that one must read in file MED the components whose same name appears in
the list of the components of the field within the meaning of Code_Aster.
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-62/06/004/A
Code_Aster ®
Version
8.2
Titrate:
Operator LIRE_CHAMP
Date:
22/02/06
Author (S):
COURTEOUS Mr., G. Key NICOLAS
:
U7.02.02-D1 Page:
4/4
3.7 Operands
NOM_CMP, NOM_CMP_MED
/NOM_CMP = lcmp
,
NOM_CMP_MED = lcmpmed
,
These two lists must be of the same length. One reads in file MED them
components listed in lcmpmed, then one affects them in the components to the direction
of Code_Aster, of the same row in the list lcmp.
3.8 Operand
NOM_MAIL_MED
NOM_MAIL_MED = nomamed
If this operand misses, one seeks the field related to the first grid in the file. It is it
who does when the file contains one grid.
If the file contains several grids, one specifies here which is associated the field that one wants
to see.
3.9 Operand
UNITE
UNITE
= unit
Number of the logical unit of the file, corresponds to the value provided in astk or while using
order DEFI_FICHIER.
3.10 Operand
INFO
INFO =/1
,
/
2
,
If INFO is worth 2, some impressions of déboggage take place.
If not, nothing takes place
4 Example
tempdeux = LIRE_CHAMP (
MAILLAGE
=
mdeux,
NOM_MED =
“RESUUN__TEMP”,
NUME_ORDRE =
2,
TYPE_CHAM
=
“NOEU_TEMP_R”,
)
This command will create a field with the nodes of tempdeux name and type NOEU_TEMP_R. It
grid support is mdeux. The values are those stored under name RESUUN__TEMP in
file MED provided on unit 81 with the sequence number 2.
Handbook of Utilization
U7.0- booklet: Data exchanges
HT-62/06/004/A
Outline document