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