+.. _test_cases:\r
+\r
+#######################\r
+Test cases\r
+#######################\r
+\r
+A base of 25 test cases ensures the proper functioning of « Bloc Fissure ». 12 cases are dedicated to :ref:`cracked bended pipes <pipeTC>` and the others 13 are for other :ref:`generic geometries <genericTC>`. They are shown here in order to illustrate cases on which « Bloc Fissure » works.\r
+\r
+.. _genericTC:\r
+\r
+Generic cases\r
+===============================\r
+\r
+All 13 cases are shown Table 2. Two views show the whole cracked structure and a zoom onto the crack with its tore.\r
+\r
++-------------------------------------------+----------------------------------------------+\r
+| CubeAngle |\r
++-------------------------------------------+----------------------------------------------+\r
+|.. image:: images/01_CubeAngle.png | .. image:: images/01_CubeAngle_2.png |\r
+| :height: 300 | :height: 300 |\r
+| :align: center | :align: center |\r
++-------------------------------------------+----------------------------------------------+\r
+| CubeAngle2 |\r
++-------------------------------------------+----------------------------------------------+\r
+|.. image:: images/02_CubeAngle2.png | .. image:: images/02_CubeAngle2_2.png |\r
+| :height: 300 | :height: 300 |\r
+| :align: center | :align: center |\r
++-------------------------------------------+----------------------------------------------+\r
+| cylindre |\r
++-------------------------------------------+----------------------------------------------+\r
+|.. image:: images/03_cylindre.png | .. image:: images/03_cylindre_2.png |\r
+| :height: 300 | :height: 300 |\r
+| :align: center | :align: center |\r
++-------------------------------------------+----------------------------------------------+\r
+| cylindre2 |\r
++-------------------------------------------+----------------------------------------------+\r
+|.. image:: images/04_cylindre2.png | .. image:: images/04_cylindre2_2.png |\r
+| :height: 300 | :height: 300 |\r
+| :align: center | :align: center |\r
++-------------------------------------------+----------------------------------------------+\r
+| disque |\r
++-------------------------------------------+----------------------------------------------+\r
+|.. image:: images/05_disque.png | .. image:: images/05_disque_2.png |\r
+| :height: 300 | :height: 300 |\r
+| :align: center | :align: center |\r
++-------------------------------------------+----------------------------------------------+\r
+| ellipse1 |\r
++-------------------------------------------+----------------------------------------------+\r
+|.. image:: images/06_ellipse1.png | .. image:: images/06_ellipse1_2.png |\r
+| :height: 300 | :height: 300 |\r
+| :align: center | :align: center |\r
++-------------------------------------------+----------------------------------------------+\r
+| ellipse2 (tilted crack) |\r
++-------------------------------------------+----------------------------------------------+\r
+|.. image:: images/07_ellipse2.png | .. image:: images/07_ellipse2_2.png |\r
+| :height: 300 | :height: 300 |\r
+| :align: center | :align: center |\r
++-------------------------------------------+----------------------------------------------+\r
+| eprouvetteCourbe |\r
++-------------------------------------------+----------------------------------------------+\r
+|.. image:: images/08_eprouvetteCourbe.png | .. image:: images/08_eprouvetteCourbe_2.png |\r
+| :height: 300 | :height: 300 |\r
+| :align: center | :align: center |\r
++-------------------------------------------+----------------------------------------------+\r
+| eprouvetteDroite |\r
++-------------------------------------------+----------------------------------------------+\r
+|.. image:: images/09_eprouvetteDroite.png | .. image:: images/09_eprouvetteDroite_2.png |\r
+| :height: 300 | :height: 300 |\r
+| :align: center | :align: center |\r
++-------------------------------------------+----------------------------------------------+\r
+| eprouvetteDroite2 |\r
++-------------------------------------------+----------------------------------------------+\r
+|.. image:: images/10_eprouvetteDroite2.png | .. image:: images/10_eprouvetteDroite2_2.png |\r
+| :height: 300 | :height: 300 |\r
+| :align: center | :align: center |\r
++-------------------------------------------+----------------------------------------------+\r
+| faceGauche |\r
++-------------------------------------------+----------------------------------------------+\r
+|.. image:: images/11_faceGauche.png | .. image:: images/11_faceGauche_2.png |\r
+| :height: 300 | :height: 300 |\r
+| :align: center | :align: center |\r
++-------------------------------------------+----------------------------------------------+\r
+| faceGauche2 |\r
++-------------------------------------------+----------------------------------------------+\r
+|.. image:: images/12_faceGauche2.png | .. image:: images/12_faceGauche2_2.png |\r
+| :height: 300 | :height: 300 |\r
+| :align: center | :align: center |\r
++-------------------------------------------+----------------------------------------------+\r
+| vis (Crack is in the radius filet between the screw head and the screw shank) |\r
++-------------------------------------------+----------------------------------------------+\r
+|.. image:: images/13_vis_1.png | .. image:: images/13_vis_1_2.png |\r
+| :width: 400 | :width: 400 |\r
+| :align: center | :align: center |\r
++-------------------------------------------+----------------------------------------------+\r
+\r
+.. _pipeTC:\r
+\r
+Cracked bended pipes\r
+=====================================\r
+\r
+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.\r
+\r
++--------------------------------+----------------------------------------------+\r
+| .. image:: images/coude_0.png | .. image:: images/coude_0_2.png |\r
+| :height: 500 | :width: 500 |\r
+| :align: center | :align: center |\r
+| +----------------------------------------------+\r
+| | View of the external crack of test_coude_0 |\r
+| +----------------------------------------------+\r
+| | .. image:: images/coude_3.png |\r
+| | :width: 500 |\r
+| | :align: center |\r
++--------------------------------+----------------------------------------------+\r
+| Bended pipe test case coude_0 | View of the internal crack of test_coude_3 |\r
+| with an external crack | |\r
++--------------------------------+----------------------------------------------+\r
+\r
+« Bloc Fissure » is very efficient for the case of bended pipes. The generation of the geometry and the crack insertion takes only around 15s.\r
+\r
+Running test cases\r
+=====================================\r
+\r
+In SALOME interface:\r
+\r
+0) **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::\r
+\r
+ from blocFissure.materielCasTests import genereMateriel\r
+\r
+Then the user can either launch all test cases, several at once or just one :\r
+\r
+1) **To execute all test cases**::\r
+\r
+ from blocFissure.CasTests import execution_Cas\r
+\r
+2) **To execute only selected test cases**:\r
+\r
+modify execution_Cas.py file and change::\r
+\r
+ runall = False. #old : True\r
+\r
+And change from 0 to 1 of the number of the test you want to launch::\r
+\r
+ 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,]\r
+\r
+then launch the test cases::\r
+\r
+ from blocFissure.CasTests import execution_Cas\r
+\r
+3) **To execute only one test case**::\r
+\r
+ from blocFissure.CasTests.[TEST_CASE_NAME] import [TEST_CASE_NAME]\r
+\r
+ [TEST_CASE_NAME](0).executeProbleme()\r
+\r
+[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.\r
+\r
++--------------------+--------------------+--------------------+-----------------+-----------------+\r
+| faceGauche | cylindre_2 | disquePerce | fissureCoude_3 | fissureCoude_6 |\r
++--------------------+--------------------+--------------------+-----------------+-----------------+\r
+| faceGauche_2 | eprouvetteCourbe | vis_1 | fissureCoude_4 | fissureCoude_7 |\r
++--------------------+--------------------+--------------------+-----------------+-----------------+\r
+| ellipse_1 | eprouvetteDroite | fissureCoude | fissure_Coude_4 | fissureCoude_8 |\r
++--------------------+--------------------+--------------------+-----------------+-----------------+\r
+| ellipse_2 | cubeAngle | fissureCoude_1 | fissureCoude_5 | fissureCoude_9 |\r
++--------------------+--------------------+--------------------+-----------------+-----------------+\r
+| cylindre | cubeAngle2 | fissureCoude_2 | fissureCoude_5 | fissureCoude_10 |\r
++--------------------+--------------------+--------------------+-----------------+-----------------+\r
+\r
+\r
+\r