Salome HOME
[bos #23982] EDF 22984 - aspect ratio of hexa
[modules/smesh.git] / src / Tools / blocFissure / CasTests / fissure_Coude_4.py
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2014-2021  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   """
25   probleme de fissure du Coude : ASCOU09A
26   adaptation maillage
27   """
28
29 # ---------------------------------------------------------------------------
30   def setParamGeometrieSaine(self):
31     """
32     Paramètres géométriques du tuyau coudé sain:
33     angleCoude
34     r_cintr
35     l_tube_p1
36     l_tube_p2
37     epais
38     de
39     """
40     self.geomParams = dict(angleCoude = 40,
41                            r_cintr    = 654,
42                            l_tube_p1  = 1700,
43                            l_tube_p2  = 1700,
44                            epais      = 62.5,
45                            de         = 912.4)
46
47   # ---------------------------------------------------------------------------
48   def setParamMaillageSain(self):
49     self.meshParams = dict(n_long_p1    = 16,
50                            n_ep         = 5,
51                            n_long_coude = 30,
52                            n_circ_g     = 50,
53                            n_circ_d     = 20,
54                            n_long_p2    = 12)
55
56 # ---------------------------------------------------------------------------
57   def setParamShapeFissure(self):
58     """
59     paramètres de la fissure
60     profondeur  : 0 < profondeur <= épaisseur
61     azimut      : entre 0 et 360°
62     alpha       : 0 < alpha < angleCoude
63     longueur    : <=2*profondeur ==> ellipse, >2*profondeur = fissure longue
64     orientation : 0° : longitudinale, 90° : circonférentielle, autre : uniquement fissures elliptiques
65     externe     : True : fissure face externe, False : fissure face interne
66     """
67     print("setParamShapeFissure", self.nomCas)
68     self.shapeFissureParams = dict(nomRep        = '.',
69                                    nomFicSain    = self.nomCas,
70                                    nomFicFissure = 'fissure_' + self.nomCas,
71                                    profondeur  = 10,
72                                    azimut      = 90,
73                                    alpha       = 20,
74                                    longueur    = 240,
75                                    orientation = 90,
76                                    lgInfluence = 30,
77                                    elliptique  = False,
78                                    convexe     = True,
79                                    externe     = True)
80
81   # ---------------------------------------------------------------------------
82   def setReferencesMaillageFissure(self):
83     self.referencesMaillageFissure = dict(Entity_Quad_Pyramid    = 948,
84                                           Entity_Quad_Triangle   = 1562,
85                                           Entity_Quad_Edge       = 1192,
86                                           Entity_Quad_Penta      = 732,
87                                           Entity_Quad_Hexa       = 22208,
88                                           Entity_Node            = 133418,
89                                           Entity_Quad_Tetra      = 18759,
90                                           Entity_Quad_Quadrangle = 11852)
91