Mise à jour des données des cas-test de cube

This commit is contained in:
GERALD NICOLAS 2021-01-26 11:34:18 +01:00
parent cd96b6d3d4
commit e66f809aa1
3 changed files with 33 additions and 25 deletions

View File

@ -47,10 +47,10 @@ class cubeAngle(fissureGenerique):
# ---------------------------------------------------------------------------
def genereMaillageSain(self, geometriesSaines, meshParams):
logging.info("genereMaillageSain %s", self.nomCas)
logging.info("genereMaillageSain pour '{}'".format(self.nomCas))
([objetSain], status) = smesh.CreateMeshesFromMED(os.path.join(gmu.pathBloc, 'materielCasTests/CubeAngle.med'))
smesh.SetName(objetSain.GetMesh(), 'objetSain')
([objetSain], status) = smesh.CreateMeshesFromMED(os.path.join(gmu.pathBloc, "materielCasTests", "CubeAngle.med"))
smesh.SetName(objetSain.GetMesh(), "{}_objetSain".format(self.nomProbleme))
return [objetSain, True] # True : maillage hexa
@ -61,17 +61,18 @@ class cubeAngle(fissureGenerique):
lgInfluence : distance autour de la shape de fissure a remailler (A ajuster selon le maillage)
rayonPipe : le rayon du pile maillé en hexa autour du fond de fissure
"""
logging.info("setParamShapeFissure %s", self.nomCas)
logging.info("setParamShapeFissure pour '{}'".format(self.nomCas))
self.shapeFissureParams = dict(lgInfluence = 20,
rayonPipe = 10)
# ---------------------------------------------------------------------------
def genereShapeFissure( self, geometriesSaines, geomParams, shapeFissureParams):
logging.info("genereShapeFissure %s", self.nomCas)
"""Importe la géométrie de la fissure"""
logging.info("genereShapeFissure pour '{}'".format(self.nomCas))
lgInfluence = shapeFissureParams['lgInfluence']
shellFiss = geompy.ImportBREP(os.path.join(gmu.pathBloc, "materielCasTests/CubeAngleFiss.brep"))
shellFiss = geompy.ImportBREP(os.path.join(gmu.pathBloc, "materielCasTests", "CubeAngleFiss.brep"))
fondFiss = geompy.CreateGroup(shellFiss, geompy.ShapeType["EDGE"])
geompy.UnionIDs(fondFiss, [3])
geompy.addToStudy( shellFiss, 'shellFiss' )
@ -81,11 +82,13 @@ class cubeAngle(fissureGenerique):
coordsNoeudsFissure = genereMeshCalculZoneDefaut(shellFiss, 5 ,10)
centre = None
return [shellFiss, centre, lgInfluence, coordsNoeudsFissure, fondFiss]
# ---------------------------------------------------------------------------
def setParamMaillageFissure(self):
self.maillageFissureParams = dict(nomRep = '.',
logging.info("setParamMaillageFissure pour '{}'".format(self.nomCas))
self.maillageFissureParams = dict(nomRep = os.curdir,
nomFicSain = self.nomCas,
nomFicFissure = 'fissure_' + self.nomCas,
nbsegRad = 5,
@ -101,6 +104,7 @@ class cubeAngle(fissureGenerique):
def genereMaillageFissure(self, geometriesSaines, maillagesSains,
shapesFissure, shapeFissureParams,
maillageFissureParams, elementsDefaut, step):
logging.info("genereMaillageFissure pour '{}'".format(self.nomCas))
maillageFissure = construitFissureGenerale(maillagesSains,
shapesFissure, shapeFissureParams,
maillageFissureParams, elementsDefaut, step)

View File

@ -24,7 +24,7 @@ from blocFissure import gmu
dicoParams = dict(nomCas = "cubeCoin",
maillageSain = os.path.join(gmu.pathBloc, "materielCasTests", "cubeFin.med"),
brepFaceFissure = os.path.join(gmu.pathBloc, "materielCasTests", "cubeFin_Coin.brep"),
edgeFissIds = [6],
edgeFissIds = [3],
lgInfluence = 50,
meshBrep = (5,10),
rayonPipe = 10,
@ -35,12 +35,14 @@ dicoParams = dict(nomCas = "cubeCoin",
# ---------------------------------------------------------------------------
referencesMaillageFissure = dict(Entity_Quad_Pyramid = 0,
Entity_Quad_Triangle = 0,
Entity_Quad_Edge = 0,
Entity_Quad_Penta = 0,
Entity_Quad_Hexa = 0,
Entity_Node = 0,
Entity_Quad_Tetra = 0,
Entity_Quad_Quadrangle = 0)
referencesMaillageFissure = dict( \
Entity_Quad_Quadrangle = 2740, \
Entity_Quad_Hexa = 7420, \
Entity_Node = 46394, \
Entity_Quad_Edge = 323, \
Entity_Quad_Triangle = 486, \
Entity_Quad_Tetra = 8512, \
Entity_Quad_Pyramid = 460, \
Entity_Quad_Penta = 80 \
)

View File

@ -24,7 +24,7 @@ from blocFissure import gmu
dicoParams = dict(nomCas = "cubeMilieu",
maillageSain = os.path.join(gmu.pathBloc, "materielCasTests", "cubeFin.med"),
brepFaceFissure = os.path.join(gmu.pathBloc, "materielCasTests", "cubeFin_Milieu.brep"),
edgeFissIds = [6],
edgeFissIds = [3],
lgInfluence = 50,
meshBrep = (5,10),
rayonPipe = 10,
@ -35,12 +35,14 @@ dicoParams = dict(nomCas = "cubeMilieu",
# ---------------------------------------------------------------------------
referencesMaillageFissure = dict(Entity_Quad_Pyramid = 0,
Entity_Quad_Triangle = 0,
Entity_Quad_Edge = 0,
Entity_Quad_Penta = 0,
Entity_Quad_Hexa = 0,
Entity_Node = 0,
Entity_Quad_Tetra = 0,
Entity_Quad_Quadrangle = 0)
referencesMaillageFissure = dict( \
Entity_Quad_Quadrangle = 3140, \
Entity_Quad_Hexa = 7120, \
Entity_Node = 61414, \
Entity_Quad_Edge = 346, \
Entity_Quad_Triangle = 818, \
Entity_Quad_Tetra = 19117, \
Entity_Quad_Pyramid = 990, \
Entity_Quad_Penta = 230 \
)