Code_Aster
®
Version
8.2
Titrate:
Procedure
TEST_RESU
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U4.92.01-I1
Page
:
1/10
Instruction manual
U4.9- booklet: Impression/Test HT-62/06/004/A
Organization (S):
EDF-R & D/AMA
Instruction manual
U4.9- booklet: Impression/Test
Document: U4.92.01
Procedure
TEST_RESU
1 Goal
To compare a value extracted from a structure of data with a value of reference provided by
the user.
This control makes it possible to test a numerical value: entirety, reality or complex extracted from one
concept already calculated. Today, one can test a component of one
cham_no_ *
or of one
cham_elem_ *
, a component of a field extracts from one
result
, a parameter of one
result
,
a “total” value extracted from a field or contents from an unspecified object from a concept
user.
The procedure writes a conventional message then:
·
“
OK
“(if it is good),
·
“
NOOK
“(if not).
follow-up of the found value, the value of reference and percentage of error.
Controls TEST_FONCTION [U4.92.02] and TEST_TABLE [U4.92.03] make it possible to test them
values extracted from the functions and the tables.
Code_Aster
®
Version
8.2
Titrate:
Procedure
TEST_RESU
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U4.92.01-I1
Page
:
2/10
Instruction manual
U4.9- booklet: Impression/Test HT-62/06/004/A
2 Syntax
TEST_RESU
(
UNIT
=
/
8
,
[DEFECT]
/
iunit,
,
[I]
|
CHAM_NO= (_F (
CHAM_GD
=
chno,
[cham_no_ *]
/
TYPE_TEST =/“SOMM_ABS”,
/
“SOMM”
,
/
“MAX”
,
/
“MIN”
,
NOM_CMP
=
lcmp,
[l_K8]
/
/NODE =
No,
[node]
/
GROUP_NO
= grno,
[group_no]
NOM_CMP =
nomcmp,
[K8]
#
See definition of the value of reference
),)
|
CHAM_ELEM= (_F
(
CHAM_GD
=
chel,
[cham_elem_ *]
/
TYPE_TEST =/“SOMM_ABS”,
/
“SOMM”
,
/
“MAX”
,
/
“MIN”
,
NOM_CMP
=
lcmp,
[l_K8]
/
NET
=
my
,
[mesh]
/NOT = nupoint,
[I]
/
NODE
=
No
,
[node]
/
GROUP_NO
=
grno,
[group_no]
NOM_CMP = nomcmp,
[K8]
#
See definition of the value of reference
),),
|
RESU = (_F (
RESULT
= LMBO
,
[resultat_ *]
SENSITIVITY = (… to see [U4.50.02])
/
NUME_ORDRE
=
nuor,
[I]
/
NUME_MODE
=
numo,
[I]
/
INST
=
inst,
[R]
/
FREQ
=
freq,
[R]
/
NOEUD_CMP
=
(node,
cmp),
[l_Kn]
/
NOM_CAS
=
nocas,
[KN]
/
ENG
=
,
[R]
/PARA = para, [K16]
/
NOM_CHAM
=
nosymb,
[K16]
/
TYPE_TEST =/“SOMM_ABS”,
/
“SOMM”
,
/
“MAX”
,
/
“MIN”
,
NOM_CMP =
lcmp,
[l_K8]
/
/NODE = No,
[node]
/
GROUP_NO
=
grno, [group_no]
/
NET = my,
[mesh]
/NOT = nupoint, [I]
/
NODE
=
No,
[node]
/
GROUP_NO
=
grno,
[group_no]
NOM_CMP = nomcmp,
[K8]
Code_Aster
®
Version
8.2
Titrate:
Procedure
TEST_RESU
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U4.92.01-I1
Page
:
3/10
Instruction manual
U4.9- booklet: Impression/Test HT-62/06/004/A
#
See definition of the value of reference
),),
|
GENE = (_F (
/
RESU_GENE
= LMBO
,
[VECT_ASSE_GENE]
NUME_CMP_GENE
=
ncmp,
[I]
/
RESU_GENE
= LMBO
,
[HARM_GENE]
[MODE_GENE]
/PARA = para, [K16]
/
NOM_CHAM
=
nosymb,
[K16]
NUME_CMP_GENE = ncmp,
[I]
/NUME_ORDRE = nuor,
[I]
/
NUME_MODE
=
numo, [I]
/
FREQ
=
freq,
[R]
/
RESU_GENE
= LMBO
,
[TRAN_GENE]
NOM_CHAM
=
nosymb,
[K16]
NUME_CMP_GENE
=
ncmp,
[I]
/NUME_ORDRE = nuor,
[I]
/
INST
=
inst,
[R]
#
See definition of the value of reference
),),
|
OBJECT = (_F (
NAME
=
nomobj
,
[K24]
/
S_I
=
vali,
[I]
/
S_R
=
valr,
[R]
PRECISION
=
/
1.D-3
,
[DEFECT]
/
prec,
[R]
CRITERION =/“RELATIVE”,
[DEFECT]
/
“ABSOLUTE”
,
#
See definition of the value of reference
),),
)
#
Definition of the value of reference
REFERENCE =/“ANALYTICAL”,
/
“NON_REGRESSION”
,
VERSION = towards,
[KN]
/
“SOURCE_EXTERNE”
,
/
“AUTRE_ASTER”
,
/
VALE
=
valley
,
[R]
/
VALE_C
=
valley
,
[C]
/
VALE_I
=
valley
,
[I]
VALE_ABS
=/
“NOT”
,
[DEFECT]
/
“YES”
,
/
|
PRECISION
=
/
1.0D-3
,
[DEFECT]
/
prec,
[R]
|
CRITERION
=
/
“RELATIVE”
,
[DEFECT]
/
“ABSOLUTE”
,
/
|
PRECISION =/(prec1, prec2),
[l_R]
|
CRITERION =/(crit1, crit2),
[l_Kn]
Code_Aster
®
Version
8.2
Titrate:
Procedure
TEST_RESU
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U4.92.01-I1
Page
:
4/10
Instruction manual
U4.9- booklet: Impression/Test HT-62/06/004/A
Note:
The type of the concepts which one can test is not checked by the control. A priori, the key word
CHAM_NO
allows to test all the types of
cham_no
, in the same way for the key words
CHAM_ELEM
and
RESU
(for the concepts of the type
result
).
3 General information
This control makes it possible to test a scalar numerical value recovered in a concept of the type
cham_no *
,
cham_elem_ *
or
result
, compared to a value of reference provided by
the user.
Three types of numerical values can be tested:
·
a component of a field (
cham_no
or
cham_elem
or field belonging to one
result
),
·
a parameter contained in a concept of
result
(see booklet [U5.01]),
·
a total value of a field [§4.5].
To test a component of field, it is necessary to choose a field [§4.2] then to choose a component
[§4.3].
To test a parameter, it is necessary to choose a sequence number [§4.2.4] and to choose the name of the parameter.
The awaited numerical value (real, complex or whole) is provided in accordance with [§4.7].
Remarks concerning the tests in the structures of “generalized” data:
One can test the generalized components (displacements, speeds or accelerations of one
transient in modal space). It is advisable nevertheless to be circumspect with this type of test. In
effect the value of a generalized component depends entirely on the standard of the mode. However
the aforementioned is given in an arbitrary way. Thus without preliminary standardization of the standards,
value of a generalized size is arbitrary. Lastly, it there not of possibility in Code_Aster
to fix the direction of a mode. For a multiple mode, that wants to say that, even once them
normalized modes, a generalized size can take an unspecified value. In the case of one
simple mode, it can be directed in a direction or the opposite direction. One obtains then
a generalized value or its opposite.
Code_Aster
®
Version
8.2
Titrate:
Procedure
TEST_RESU
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U4.92.01-I1
Page
:
5/10
Instruction manual
U4.9- booklet: Impression/Test HT-62/06/004/A
4 Operands
4.1 Operand
UNIT
UNIT = iunit
Number of the logical unit of the file where the impression (by defect will be done: RESULT).
4.2
Selection of a field
In order to test a field which can be a simple field (
cham_no
or
cham_elem
), or a field
extracted from a result, or will use the key words factors:
CHAM_NO
,
CHAM_ELEM
or
RESU
.
4.2.1 “Simple” fields
CHAM_GD = field
Name of
cham_no
or of
cham_elem
which one wants to extract a value.
4.2.2 Operand
RESULT
RESULT = LMBO
Name of the concept
result
treaty.
4.2.3 Operand
SENSITIVITY
SENSITIVITY = par_sensi
Name of the significant parameter. See [U4.50.22] for the details
4.2.4 Operand
NOM_CHAM
/
NOM_CHAM = nosymb
Reference symbol of the field to be selected (see booklet [U5.01]).
4.2.5 Selection
of a sequence number
/NUME_ORDRE = nuor,
Sequence number of the field (or the parameter) required.
/NUME_MODE = numo,
/INST = inst,
/FREQ = freq,
/NOEUD_CMP = (node, cmp),
/NOM_CAS = nocas,
/ENG =
,
These key words make it possible to identify a sequence number in one
result
[U4.71.00].
They are called “variables of access”.
They all are not valid for all the types of
result
.
For a type of
result
given, its variables of access are given in [U5]
documentation of use.
When the access is not made an actual value (
ENG
,
FREQ
,
INST
) the value given does not have
not to be ambiguous (cf [§4.7]).
Code_Aster
®
Version
8.2
Titrate:
Procedure
TEST_RESU
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U4.92.01-I1
Page
:
6/10
Instruction manual
U4.9- booklet: Impression/Test HT-62/06/004/A
4.3
Selection of a parameter in a result
To select a parameter in a result (see booklet [U5.01]), the number should be specified
of a desired nature [§4.2.4] and to give the name of the parameter.
PARA = para
Name of the sought parameter. This name is attached to the type of the concept
result
treaty.
4.4
Selection of a component of a field
The access to a size is done for one
cham_no
by:
·
the name of the node which carries this size.
The access to a size is done for one
cham_elem
by:
·
the name of the mesh which supports the element,
·
something which specifies:
-
that is to say the name of a node of this mesh for
cham_elem
“with the nodes” (
_ELNO_
).
-
that is to say the number of the point of GAUSS for
cham_elem
“at the points of GAUSS”
(
_ELGA_
).
NET = my
Name of the mesh where one wants to test it
cham_elem
.
/NODE = No
Name of the node which one wants to check a component.
/GROUP_NO = grno
To facilitate the use of this control, one can replace the key word
NODE
by
GROUP_NO
.
In this case, it is necessary that the group is reduced to only one node
.
/NOT = nupoint
Entirety
nupoint
specify the number of the point of GAUSS which one wants to test the value (case
cham_elem
“at the points of GAUSS”).
NOM_CMP = nomcmp
Name of the component which one wants to test [U2.01.04].
4.5
To test a field “overall”
Once a selected field [§4.2], one can test a quantity calculated overall on all it
field. One can restrict the field on certain components (key word
NOM_CMP
):
NOM_CMP
=
lcmp [l_K8]
If
NOM_CMP
is not informed, one will take the whole of the components. If not, one will not take
in account that components of
lcmp
.
/TYPE_TEST = “SOMM_ABS”
The sum of the absolute values of the components of the field.
/TYPE_TEST = “SOMM”
The sum of the values of the components of the field.
/TYPE_TEST = “MAX”
The maximum of the values of the components of the field.
/TYPE_TEST = “MIN”
Minimum of the values of the components of the field.
Code_Aster
®
Version
8.2
Titrate:
Procedure
TEST_RESU
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U4.92.01-I1
Page
:
7/10
Instruction manual
U4.9- booklet: Impression/Test HT-62/06/004/A
4.6
To test the contents of an object JEVEUX
This functionality is reserved for the developers of the Code. To use it, the names should be known
objects JEVEUX composing the concepts of the user. It is intended to check not
regression of the structures of data other than them
RESULT
,
FIELDS
,
COUNT
and FUNCTION.
4.6.1 Operand
NAME
NAME = nomobj
Name of the jeveux object which one wants to test.
4.6.2 Operands
S_I/S_R
S_I = vali
For the objects of the whole type, summons values contained in the object.
S_R = valr
For the objects of the type real (or complex), sum of the values of the numbers contained in the object.
For the complex numbers, one makes the sum of the parts real and imaginary.
Note:
The objective of this type of test (NAME + S_I or S_R) is to test a whole vector overall.
“sum” which is tested is unfortunately a bad “check sum” of the object: one
permutation within the vector does not change this sum. A more careful test consists with
to print the object in a file (IMPR_CO) then to test the contents of this file with a truth
“check sum” (TEST_FICHIER).
4.6.3 Operands
CRITERION
and
PRECISON
See below [§4.7].
4.7
Definition of the value of reference
REFERENCE =
/“ANALYTICAL”
:
the provided value of reference is “analytical”
/“NON_REGRESSION”
:
the provided value of reference was obtained at the time of a precedent
calculation by Code_Aster
VERSION =
towards
worms is the number of the version of Aster which made it possible to obtain
value of reference (ex: “5.3.4”)
/
'
SOURCE_EXTERNE
':
the provided value of reference comes from a different program
that Aster (or of a bibliographical reference)
/
'
AUTRE_ASTER
'
:
the provided value of reference is that obtained by another
path Aster (another control, option of calculation,…)
/VALE = valley
Actual value awaited for the component
nomcmp
, the parameter
para
or the nomobj object.
/VALE_C = valley
Complex value awaited for the component
nomcmp
or the parameter
para
.
/VALE_I = valley
Whole value awaited for the parameter
para
or the nomobj object.
Code_Aster
®
Version
8.2
Titrate:
Procedure
TEST_RESU
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U4.92.01-I1
Page
:
8/10
Instruction manual
U4.9- booklet: Impression/Test HT-62/06/004/A
VALE_ABS
=
= “NOT”
the value of reference and the computed value by Aster are compared just as they are.
= “YES”
the value of reference and the computed value by Aster are compared in values
absolute.
PRECISION
=
Precision requested (by defect 1.D3) to accept the computed value.
CRITERION
=
Type of test to be carried out.
If
v
is the extracted value, the test will carry for:
·
“RELATIVE”
on:
·
“ABSOLUTE”
on:
.
Note:
When the definition of the sequence number of one
RESULT
is done by a real variable of access
(
FREQ
,
INST
,
ENG
), it is not necessary that there is ambiguity on this sequence number. For that
the user defines a small interval around the value requested thanks to the key words
CRITERION
and
PRECISION
.
In this case (“real” access) key words
CRITERION
and
PRECISION
2 values will thus wait
each one: (
crit1
,
crit2
) and (
prec1
,
prec2
).
crit1
and
prec1
relate to the value of reference.
crit2
and
prec2
allow to choose the interval of search of the sequence number.
Default values of
crit1 and
prec1
are
“RELATIVE”
and
1.D-3
.
Default values of
crit2
and
prec2
are
“RELATIVE”
and
1.D-3
.
One cannot define explicitly
crit2
and
prec2
without defining
crit1
and
prec1
.
Code_Aster
®
Version
8.2
Titrate:
Procedure
TEST_RESU
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U4.92.01-I1
Page
:
9/10
Instruction manual
U4.9- booklet: Impression/Test HT-62/06/004/A
5 Examples
TEST_RESU
(
CHAM_NO = _F (CHAM_GD = F,
NODE
=
“N2”,
NOM_CMP
=
“DX”
,
REFERENCE
=
“ANALYTICAL”
,
VALE
=
1.2E-5
,
PRECISION
=
1D-4
,),
CHAM_ELEM= (_F
(CHAM_GD = SIGGA,
NET
=
“M3”,
NOT
=
3,
NOM_CMP
=
“SIXX”
,
REFERENCE
=
“NON_REGRESSION”
VERSION='5.3.3'
,
VALE
=
3.4E6,
),
_F
(
CHAM_GD
=
SIGNO,
NET
=
“M5”,
NODE
=
“N1”,
NOM_CMP
=
“SIXX”
,
VALE
=
3.4E6,
),),)
TEST_RESU
(
RESU
= (_F
(
RESULT
=
mo_meca,
NUME_ORDRE=
2,
PARA
=
“FREQ”
,
VALE
=
1.5782,
),
_F
(
RESULT
=
evolth,
SENSITIVITY
=
PS,
NOM_CHAM
=
“TEMP”
,
INST
=
12.0,
NODE
=
“N37”,
NOM_CMP
=
“TEMP_R”
,
VALE
=
0.0,
CRITERION
=
“ABSOLUTE”
,),
_F
(
RESULT
=
evolth,
NOM_CHAM
=
“FLUX_ELGA_TEMP”
,
TYPE_TEST
=
“MAX”
,
VALE
=
154.35,),
OBJECT
= _F
(
NAME
=
“CH1 .CHME.LIGREL.LIEL”
,
IF
=
1278484
,),
)
Code_Aster
®
Version
8.2
Titrate:
Procedure
TEST_RESU
Date:
31/01/06
Author (S):
J. PELLET
Key
:
U4.92.01-I1
Page
:
10/10
Instruction manual
U4.9- booklet: Impression/Test HT-62/06/004/A
Intentionally white left page.