]> SALOME platform Git repositories - modules/smesh.git/blob - src/Tools/blocFissure/CasTests/ellipse_2.py
Salome HOME
general crack dialog: doc correction
[modules/smesh.git] / src / Tools / blocFissure / CasTests / ellipse_2.py
1 # -*- coding: utf-8 -*-
2
3 import os
4 from blocFissure import gmu
5 from blocFissure.gmu.geomsmesh import geompy, smesh
6
7 import math
8 import GEOM
9 import SALOMEDS
10 import SMESH
11 #import StdMeshers
12 #import GHS3DPlugin
13 #import NETGENPlugin
14 import logging
15
16 from ellipse_1 import ellipse_1
17
18 from blocFissure.gmu.triedreBase import triedreBase
19 from blocFissure.gmu.genereMeshCalculZoneDefaut import genereMeshCalculZoneDefaut
20 from blocFissure.gmu.creeZoneDefautDansObjetSain import creeZoneDefautDansObjetSain
21 from blocFissure.gmu.construitFissureGenerale import construitFissureGenerale
22
23 O, OX, OY, OZ = triedreBase()
24
25 class ellipse_2(ellipse_1):
26   """
27   problème de fissure non plane, débouchante non normale
28   """
29
30   nomProbleme = "ellipse2"
31
32   # ---------------------------------------------------------------------------
33   def genereShapeFissure( self, geometriesSaines, geomParams, shapeFissureParams):
34     logging.info("genereShapeFissure %s", self.nomCas)
35
36     lgInfluence = shapeFissureParams['lgInfluence']
37
38     shellFiss = geompy.ImportFile(os.path.join(gmu.pathBloc, "materielCasTests/ellipse1_pb.brep"), "BREP")
39     fondFiss = geompy.CreateGroup(shellFiss, geompy.ShapeType["EDGE"])
40     geompy.UnionIDs(fondFiss, [4])
41     geompy.addToStudy( shellFiss, 'shellFiss' )
42     geompy.addToStudyInFather( shellFiss, fondFiss, 'fondFiss' )
43
44
45     coordsNoeudsFissure = genereMeshCalculZoneDefaut(shellFiss, 5 ,25)
46
47     centre = None
48     return [shellFiss, centre, lgInfluence, coordsNoeudsFissure, fondFiss]
49
50   # ---------------------------------------------------------------------------
51   def setReferencesMaillageFissure(self):
52     self.referencesMaillageFissure = dict(Entity_Quad_Pyramid    = 159,
53                                           Entity_Quad_Triangle   = 438,
54                                           Entity_Quad_Edge       = 249,
55                                           Entity_Quad_Penta      = 80,
56                                           Entity_Quad_Hexa       = 3635,
57                                           Entity_Node            = 20519,
58                                           Entity_Quad_Tetra      = 1973,
59                                           Entity_Quad_Quadrangle = 1658)