Test cases¶
A base of 28 test cases guarantees the correct functioning of « Bloc Fissure ». 12 cases are dedicated to cracked bended pipes and the others 16 are for other generic geometries. They are shown here in order to illustrate cases on which « Bloc Fissure » works.
Generic cases¶
All 16 cases are shown Table 2. Two views show the whole cracked structure and a zoom onto the crack with its tore.
Cracked bended pipes¶
All 12 bended pipe test cases are not shown here because they are relatively similars with each others. Only test case cas coude_0 et coude_3 are presented, those two tests being based on the same geometry and having a crack on the internal and on the external surface.
|
|
View of the external crack of test_coude_0 |
|
|
|
Bended pipe test case coude_0 with an external crack |
View of the internal crack of test_coude_3 |
coude_0 can be computed using this file for the data:
« Bloc Fissure » is very efficient for the case of bended pipes. The generation of the geometry and the crack insertion takes only around 15s.
Data for the test cases¶
All the files for these test cases are stored in the directory of the installation of SALOME:
Salome-VXXXX_package-YY/modules/SMESH_VXXXX/lib/python3.6/site-packages/salome/blocFissure
The set of the med, xao and brep files can be created by the following importation:
from blocFissure.materielCasTests import genereMateriel
Once the files are generated, they are saved into the directory of the installation of SALOME:
Salome-VXXXX_package-YY/modules/SMESH_VXXXX/lib/python3.6/site-packages/salome/blocFissure/materielCasTests
There is no need to generate them again.
To check the installation of salome, the test cases can be computed by the salome test process:
salome -test blocFissure
Running test cases¶
The test cases can be executed via the following instructions:
from blocFissure.CasTests.blocFissureTest import blocFissureTest
BLOCFISSURE_TEST = blocFissureTest(list_of_cases)
MESSAGE_ERREUR = BLOCFISSURE_TEST.lancement()
sys.stdout.write(MESSAGE_ERREUR)
del BLOCFISSURE_TEST
If list_of_cases is an empty list, all the cases are computed.
If not, list_of_cases is made of the list of the numbers and/or the name of the requested case. The index of each test is the position of the test in the following table, from 0 for cubeAngle, 1 for cubeAngle_2, 2 for cubeCoin… from top to bottom, then from left to right.
cubeAngle |
cylindre_2 |
eprouvetteDroite_2 |
fissureCoude_3 |
fissureCoude_9 |
cubeAngle_2 |
disquePerce |
faceGauche |
fissureCoude_4 |
fissure_Coude |
cubeCoin |
ellipse_1 |
faceGauche_2 |
fissureCoude_5 |
fissure_Coude_4 |
cubeMilieu |
ellipse_2 |
fissureCoude_1 |
fissureCoude_6 |
vis_1 |
cubeTransverse |
eprouvetteCourbe |
fissureCoude_10 |
fissureCoude_7 |
|
cylindre |
eprouvetteDroite |
fissureCoude_2 |
fissureCoude_8 |




























