Salome HOME
liste de passage des cas à jour
[modules/smesh.git] / src / Tools / blocFissure / CasTests / fissure_Coude_4.py
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2014-2020  EDF R&D
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20
21 from .fissure_Coude  import fissure_Coude
22
23 class fissure_Coude_4(fissure_Coude):
24   """probleme de fissure du Coude : ASCOU09A
25
26   adaptation maillage
27   """
28
29   nomProbleme = "fissure_Coude_4"
30
31 # ---------------------------------------------------------------------------
32   def setParamGeometrieSaine(self):
33     """
34     Paramètres géométriques du tuyau coudé sain:
35     angleCoude
36     r_cintr
37     l_tube_p1
38     l_tube_p2
39     epais
40     de
41     """
42     self.geomParams = dict(angleCoude = 40,
43                            r_cintr    = 654,
44                            l_tube_p1  = 1700,
45                            l_tube_p2  = 1700,
46                            epais      = 62.5,
47                            de         = 912.4)
48
49   # ---------------------------------------------------------------------------
50   def setParamMaillageSain(self):
51     self.meshParams = dict(n_long_p1    = 16,
52                            n_ep         = 5,
53                            n_long_coude = 30,
54                            n_circ_g     = 50,
55                            n_circ_d     = 20,
56                            n_long_p2    = 12)
57
58 # ---------------------------------------------------------------------------
59   def setParamShapeFissure(self):
60     """
61     paramètres de la fissure
62     profondeur  : 0 < profondeur <= épaisseur
63     azimut      : entre 0 et 360°
64     alpha       : 0 < alpha < angleCoude
65     longueur    : <=2*profondeur ==> ellipse, >2*profondeur = fissure longue
66     orientation : 0° : longitudinale, 90° : circonférentielle, autre : uniquement fissures elliptiques
67     externe     : True : fissure face externe, False : fissure face interne
68     """
69     print("setParamShapeFissure", self.nomCas)
70     self.shapeFissureParams = dict(nomRep        = '.',
71                                    nomFicSain    = self.nomCas,
72                                    nomFicFissure = 'fissure_' + self.nomCas,
73                                    profondeur  = 10,
74                                    azimut      = 90,
75                                    alpha       = 20,
76                                    longueur    = 240,
77                                    orientation = 90,
78                                    lgInfluence = 30,
79                                    elliptique  = False,
80                                    convexe     = True,
81                                    externe     = True)
82
83   # ---------------------------------------------------------------------------
84   def setReferencesMaillageFissure(self):
85     self.referencesMaillageFissure = dict(Entity_Quad_Pyramid    = 948,
86                                           Entity_Quad_Triangle   = 1562,
87                                           Entity_Quad_Edge       = 1192,
88                                           Entity_Quad_Penta      = 732,
89                                           Entity_Quad_Hexa       = 22208,
90                                           Entity_Node            = 133418,
91                                           Entity_Quad_Tetra      = 18759,
92                                           Entity_Quad_Quadrangle = 11852)
93