Test cases

A base of 25 test cases ensures the proper functioning of « Bloc Fissure ». 12 cases are dedicated to cracked bended pipes and the others 13 are for other generic geometries. They are shown here in order to illustrate cases on which « Bloc Fissure » works.

Generic cases

All 13 cases are shown Table 2. Two views show the whole cracked structure and a zoom onto the crack with its tore.

CubeAngle
_images/01_CubeAngle.png _images/01_CubeAngle_2.png
CubeAngle2
_images/02_CubeAngle2.png _images/02_CubeAngle2_2.png
cylindre
_images/03_cylindre.png _images/03_cylindre_2.png
cylindre2
_images/04_cylindre2.png _images/04_cylindre2_2.png
disque
_images/05_disque.png _images/05_disque_2.png
ellipse1
_images/06_ellipse1.png _images/06_ellipse1_2.png
ellipse2 (tilted crack)
_images/07_ellipse2.png _images/07_ellipse2_2.png
eprouvetteCourbe
_images/08_eprouvetteCourbe.png _images/08_eprouvetteCourbe_2.png
eprouvetteDroite
_images/09_eprouvetteDroite.png _images/09_eprouvetteDroite_2.png
eprouvetteDroite2
_images/10_eprouvetteDroite2.png _images/10_eprouvetteDroite2_2.png
faceGauche
_images/11_faceGauche.png _images/11_faceGauche_2.png
faceGauche2
_images/12_faceGauche2.png _images/12_faceGauche2_2.png
vis (Crack is in the radius filet between the screw head and the screw shank)
_images/13_vis_1.png _images/13_vis_1_2.png

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.

_images/coude_0.png _images/coude_0_2.png
View of the external crack of test_coude_0
_images/coude_3.png
Bended pipe test case coude_0 with an external crack View of the internal crack of test_coude_3

« Bloc Fissure » is very efficient for the case of bended pipes. The generation of the geometry and the crack insertion takes only around 15s.

Running test cases

In SALOME interface:

  1. Generate med and breps files. Once the files are generated, they are saved in SALOME source files. There is no need to generate them again:

    from blocFissure.materielCasTests import genereMateriel
    

Then the user can either launch all test cases, several at once or just one :

  1. To execute all test cases:

    from blocFissure.CasTests import execution_Cas
    
  2. To execute only selected test cases:

modify execution_Cas.py file and change:

runall = False. #old : True

And change from 0 to 1 of the number of the test you want to launch:

torun = [ 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]

then launch the test cases:

from blocFissure.CasTests import execution_Cas
  1. To execute only one test case:

    from blocFissure.CasTests.[TEST_CASE_NAME] import [TEST_CASE_NAME]
    
    [TEST_CASE_NAME](0).executeProbleme()
    

[TEST_CASE_NAME] is the name of the test case in the following list. Note that the test cases fissureCoude_4 and fissure_Coude_4 are very similar.

faceGauche cylindre_2 disquePerce fissureCoude_3 fissureCoude_6
faceGauche_2 eprouvetteCourbe vis_1 fissureCoude_4 fissureCoude_7
ellipse_1 eprouvetteDroite fissureCoude fissure_Coude_4 fissureCoude_8
ellipse_2 cubeAngle fissureCoude_1 fissureCoude_5 fissureCoude_9
cylindre cubeAngle2 fissureCoude_2 fissureCoude_5 fissureCoude_10

Table Of Contents

Previous topic

Tutorials

Next topic

FAQ

This Page