mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 01:40:33 +05:00
Clés de repérage des données
This commit is contained in:
parent
681c10775e
commit
4e85b9376b
@ -38,8 +38,8 @@ crack = 'fissureExtrados.brep'
|
|||||||
|
|
||||||
dicoParams = dict(nomCas = 'fissTuyau',
|
dicoParams = dict(nomCas = 'fissTuyau',
|
||||||
maillageSain = '/local00/home/I48174/Documents/soudure/essaiFissure/{0}'.format(mesh),
|
maillageSain = '/local00/home/I48174/Documents/soudure/essaiFissure/{0}'.format(mesh),
|
||||||
brepFaceFissure = '/local00/home/I48174/Documents/soudure/essaiFissure/{0}'.format(crack),
|
CAOFaceFissure = '/local00/home/I48174/Documents/soudure/essaiFissure/{0}'.format(crack),
|
||||||
edgeFissIds = [4],
|
edgeFiss = [4],
|
||||||
lgInfluence = 12,
|
lgInfluence = 12,
|
||||||
meshBrep = (0.05, 2.0),
|
meshBrep = (0.05, 2.0),
|
||||||
rayonPipe = 1.0,
|
rayonPipe = 1.0,
|
||||||
|
@ -38,8 +38,8 @@ crack = 'fissureIntrados.brep'
|
|||||||
|
|
||||||
dicoParams = dict(nomCas = 'fissTuyau',
|
dicoParams = dict(nomCas = 'fissTuyau',
|
||||||
maillageSain = '/local00/home/I48174/Documents/soudure/essaiFissure/{0}'.format(mesh),
|
maillageSain = '/local00/home/I48174/Documents/soudure/essaiFissure/{0}'.format(mesh),
|
||||||
brepFaceFissure = '/local00/home/I48174/Documents/soudure/essaiFissure/{0}'.format(crack),
|
CAOFaceFissure = '/local00/home/I48174/Documents/soudure/essaiFissure/{0}'.format(crack),
|
||||||
edgeFissIds = [4],
|
edgeFiss = [4],
|
||||||
lgInfluence = 14,
|
lgInfluence = 14,
|
||||||
meshBrep = (0.05, 2.0),
|
meshBrep = (0.05, 2.0),
|
||||||
rayonPipe = 1.0,
|
rayonPipe = 1.0,
|
||||||
|
@ -25,8 +25,8 @@ from blocFissure import gmu
|
|||||||
|
|
||||||
dicoParams = dict(nomCas = "cubeCoin",
|
dicoParams = dict(nomCas = "cubeCoin",
|
||||||
maillageSain = os.path.join(gmu.pathBloc, "materielCasTests", "cubeFin.med"),
|
maillageSain = os.path.join(gmu.pathBloc, "materielCasTests", "cubeFin.med"),
|
||||||
brepFaceFissure = os.path.join(gmu.pathBloc, "materielCasTests", "cubeFin_Coin.brep"),
|
CAOFaceFissure = os.path.join(gmu.pathBloc, "materielCasTests", "cubeFin_Coin.brep"),
|
||||||
edgeFissIds = [3],
|
edgeFiss = [3],
|
||||||
lgInfluence = 50,
|
lgInfluence = 50,
|
||||||
meshBrep = (5,10),
|
meshBrep = (5,10),
|
||||||
rayonPipe = 10,
|
rayonPipe = 10,
|
||||||
|
@ -25,8 +25,8 @@ from blocFissure import gmu
|
|||||||
|
|
||||||
dicoParams = dict(nomCas = "cubeMilieu",
|
dicoParams = dict(nomCas = "cubeMilieu",
|
||||||
maillageSain = os.path.join(gmu.pathBloc, "materielCasTests", "cubeFin.med"),
|
maillageSain = os.path.join(gmu.pathBloc, "materielCasTests", "cubeFin.med"),
|
||||||
brepFaceFissure = os.path.join(gmu.pathBloc, "materielCasTests", "cubeFin_Milieu.brep"),
|
CAOFaceFissure = os.path.join(gmu.pathBloc, "materielCasTests", "cubeFin_Milieu.brep"),
|
||||||
edgeFissIds = [3],
|
edgeFiss = [3],
|
||||||
lgInfluence = 50,
|
lgInfluence = 50,
|
||||||
meshBrep = (5,10),
|
meshBrep = (5,10),
|
||||||
rayonPipe = 10,
|
rayonPipe = 10,
|
||||||
|
@ -25,8 +25,8 @@ from blocFissure import gmu
|
|||||||
|
|
||||||
dicoParams = dict(nomCas = "cubeTransverse",
|
dicoParams = dict(nomCas = "cubeTransverse",
|
||||||
maillageSain = os.path.join(gmu.pathBloc, "materielCasTests", "cubeFin.med"),
|
maillageSain = os.path.join(gmu.pathBloc, "materielCasTests", "cubeFin.med"),
|
||||||
brepFaceFissure = os.path.join(gmu.pathBloc, "materielCasTests", "cubeFin_Transverse.brep"),
|
CAOFaceFissure = os.path.join(gmu.pathBloc, "materielCasTests", "cubeFin_Transverse.brep"),
|
||||||
edgeFissIds = [6],
|
edgeFiss = [6],
|
||||||
lgInfluence = 50,
|
lgInfluence = 50,
|
||||||
meshBrep = (5,10),
|
meshBrep = (5,10),
|
||||||
rayonPipe = 10,
|
rayonPipe = 10,
|
||||||
|
@ -25,8 +25,8 @@ from blocFissure import gmu
|
|||||||
|
|
||||||
dicoParams = dict(nomCas = 'disque',
|
dicoParams = dict(nomCas = 'disque',
|
||||||
maillageSain = os.path.join(gmu.pathBloc, "materielCasTests", "disque.med"),
|
maillageSain = os.path.join(gmu.pathBloc, "materielCasTests", "disque.med"),
|
||||||
brepFaceFissure = os.path.join(gmu.pathBloc, "materielCasTests", "ellipse_disque.brep"),
|
CAOFaceFissure = os.path.join(gmu.pathBloc, "materielCasTests", "ellipse_disque.brep"),
|
||||||
edgeFissIds = [3],
|
edgeFiss = [3],
|
||||||
lgInfluence = 10,
|
lgInfluence = 10,
|
||||||
meshBrep = (0.5,2.5),
|
meshBrep = (0.5,2.5),
|
||||||
rayonPipe = 1.0,
|
rayonPipe = 1.0,
|
||||||
|
@ -28,8 +28,8 @@ from blocFissure.gmu.casStandard import casStandard
|
|||||||
|
|
||||||
dicoParams = dict(nomCas = "angleCube",
|
dicoParams = dict(nomCas = "angleCube",
|
||||||
maillageSain = os.path.join(gmu.pathBloc, "materielCasTests", "CubeAngle.med"),
|
maillageSain = os.path.join(gmu.pathBloc, "materielCasTests", "CubeAngle.med"),
|
||||||
brepFaceFissure = os.path.join(gmu.pathBloc, "materielCasTests", "CubeAngleFiss.brep"),
|
CAOFaceFissure = os.path.join(gmu.pathBloc, "materielCasTests", "CubeAngleFiss.brep"),
|
||||||
edgeFissIds = [4],
|
edgeFiss = [4],
|
||||||
lgInfluence = 20,
|
lgInfluence = 20,
|
||||||
meshBrep = (5,10),
|
meshBrep = (5,10),
|
||||||
rayonPipe = 5,
|
rayonPipe = 5,
|
||||||
|
@ -93,8 +93,8 @@ from blocFissure.gmu.casStandard import casStandard
|
|||||||
|
|
||||||
dicoParams = dict(nomCas = 'angleCube2',
|
dicoParams = dict(nomCas = 'angleCube2',
|
||||||
maillageSain = 'boite.med',
|
maillageSain = 'boite.med',
|
||||||
brepFaceFissure = "disk.brep",
|
CAOFaceFissure = "disk.brep",
|
||||||
edgeFissIds = [4],
|
edgeFiss = [4],
|
||||||
lgInfluence = 50,
|
lgInfluence = 50,
|
||||||
meshBrep = (5,10),
|
meshBrep = (5,10),
|
||||||
rayonPipe = 15,
|
rayonPipe = 15,
|
||||||
|
@ -38,8 +38,8 @@ crack = 'fissureQuartEllipse.brep'
|
|||||||
|
|
||||||
dicoParams = dict(nomCas = 'fissTuyau',
|
dicoParams = dict(nomCas = 'fissTuyau',
|
||||||
maillageSain = '/local00/home/I48174/Bureau/supportMaillage/{0}'.format(mesh),
|
maillageSain = '/local00/home/I48174/Bureau/supportMaillage/{0}'.format(mesh),
|
||||||
brepFaceFissure = '/local00/home/I48174/Bureau/supportMaillage/{0}'.format(crack),
|
CAOFaceFissure = '/local00/home/I48174/Bureau/supportMaillage/{0}'.format(crack),
|
||||||
edgeFissIds = [9],
|
edgeFiss = [9],
|
||||||
lgInfluence = 250,
|
lgInfluence = 250,
|
||||||
meshBrep = (10, 50),
|
meshBrep = (10, 50),
|
||||||
rayonPipe = 35,
|
rayonPipe = 35,
|
||||||
@ -51,4 +51,4 @@ dicoParams = dict(nomCas = 'fissTuyau',
|
|||||||
execInstance = casStandard(dicoParams)
|
execInstance = casStandard(dicoParams)
|
||||||
|
|
||||||
if salome.sg.hasDesktop():
|
if salome.sg.hasDesktop():
|
||||||
salome.sg.updateObjBrowser()
|
salome.sg.updateObjBrowser()
|
||||||
|
@ -121,20 +121,26 @@ class casStandard(fissureGenerique):
|
|||||||
|
|
||||||
lgInfluence = shapeFissureParams['lgInfluence']
|
lgInfluence = shapeFissureParams['lgInfluence']
|
||||||
|
|
||||||
cao_file = self.dicoParams['brepFaceFissure']
|
# Contrôle de 'brepFaceFissure' pour les anciennes versions
|
||||||
|
if ( 'brepFaceFissure' in self.dicoParams ):
|
||||||
|
self.dicoParams['CAOFaceFissure'] = self.dicoParams['brepFaceFissure']
|
||||||
|
cao_file = self.dicoParams['CAOFaceFissure']
|
||||||
suffix = os.path.basename(cao_file).split(".")[-1]
|
suffix = os.path.basename(cao_file).split(".")[-1]
|
||||||
if ( suffix.upper() == "BREP" ):
|
if ( suffix.upper() == "BREP" ):
|
||||||
shellFiss = geompy.ImportBREP(cao_file)
|
shellFiss = geompy.ImportBREP(cao_file)
|
||||||
elif ( suffix.upper() == "XAO" ):
|
elif ( suffix.upper() == "XAO" ):
|
||||||
(_, shellFiss, _, l_groups, _) = geompy.ImportXAO(cao_file)
|
(_, shellFiss, _, l_groups, _) = geompy.ImportXAO(cao_file)
|
||||||
fondFiss = geompy.CreateGroup(shellFiss, geompy.ShapeType["EDGE"])
|
fondFiss = geompy.CreateGroup(shellFiss, geompy.ShapeType["EDGE"])
|
||||||
if isinstance(self.dicoParams['edgeFissIds'][0],int):
|
# Contrôle de 'edgeFissIds' pour les anciennes versions
|
||||||
geompy.UnionIDs(fondFiss, self.dicoParams['edgeFissIds'] )
|
if ( 'edgeFissIds' in self.dicoParams ):
|
||||||
|
self.dicoParams['edgeFiss'] = self.dicoParams['edgeFissIds']
|
||||||
|
if isinstance(self.dicoParams['edgeFiss'][0],int):
|
||||||
|
geompy.UnionIDs(fondFiss, self.dicoParams['edgeFiss'] )
|
||||||
else:
|
else:
|
||||||
l_groups = geompy.GetGroups(shellFiss)
|
l_groups = geompy.GetGroups(shellFiss)
|
||||||
l_aux = list()
|
l_aux = list()
|
||||||
for group in l_groups:
|
for group in l_groups:
|
||||||
if ( group.GetName() in self.dicoParams['edgeFissIds'] ):
|
if ( group.GetName() in self.dicoParams['edgeFiss'] ):
|
||||||
l_aux.append(group)
|
l_aux.append(group)
|
||||||
geompy.UnionList(fondFiss, l_aux )
|
geompy.UnionList(fondFiss, l_aux )
|
||||||
geomPublish(initLog.debug, shellFiss, 'shellFiss' )
|
geomPublish(initLog.debug, shellFiss, 'shellFiss' )
|
||||||
|
@ -34,8 +34,8 @@ crack = 'fissureSoudureTest.brep'
|
|||||||
|
|
||||||
dicoParams = dict(nomCas = 'casTestCoinTriple',
|
dicoParams = dict(nomCas = 'casTestCoinTriple',
|
||||||
maillageSain = '/local00/home/I48174/Documents/soudure/essaiFissure/{0}'.format(mesh),
|
maillageSain = '/local00/home/I48174/Documents/soudure/essaiFissure/{0}'.format(mesh),
|
||||||
brepFaceFissure = '/local00/home/I48174/Documents/soudure/essaiFissure/{0}'.format(crack),
|
CAOFaceFissure = '/local00/home/I48174/Documents/soudure/essaiFissure/{0}'.format(crack),
|
||||||
edgeFissIds = [4],
|
edgeFiss = [4],
|
||||||
lgInfluence = 30,
|
lgInfluence = 30,
|
||||||
meshBrep = (5,10),
|
meshBrep = (5,10),
|
||||||
rayonPipe = 5,
|
rayonPipe = 5,
|
||||||
|
@ -34,8 +34,8 @@ crack = 'fissureSoudureTest.brep'
|
|||||||
|
|
||||||
dicoParams = dict(nomCas = 'casTestCoinTriple',
|
dicoParams = dict(nomCas = 'casTestCoinTriple',
|
||||||
maillageSain = '/local00/home/I48174/Documents/soudure/essaiFissure/{0}'.format(mesh),
|
maillageSain = '/local00/home/I48174/Documents/soudure/essaiFissure/{0}'.format(mesh),
|
||||||
brepFaceFissure = '/local00/home/I48174/Documents/soudure/essaiFissure/{0}'.format(crack),
|
CAOFaceFissure = '/local00/home/I48174/Documents/soudure/essaiFissure/{0}'.format(crack),
|
||||||
edgeFissIds = [4],
|
edgeFiss = [4],
|
||||||
lgInfluence = 30,
|
lgInfluence = 30,
|
||||||
meshBrep = (5,10),
|
meshBrep = (5,10),
|
||||||
rayonPipe = 10,
|
rayonPipe = 10,
|
||||||
|
@ -34,8 +34,8 @@ crack = 'hue.brep'
|
|||||||
|
|
||||||
dicoParams = dict(nomCas = 'testAubry',
|
dicoParams = dict(nomCas = 'testAubry',
|
||||||
maillageSain = '/local00/home/I48174/Bureau/{0}'.format(mesh),
|
maillageSain = '/local00/home/I48174/Bureau/{0}'.format(mesh),
|
||||||
brepFaceFissure = '/local00/home/I48174/Bureau/{0}'.format(crack),
|
CAOFaceFissure = '/local00/home/I48174/Bureau/{0}'.format(crack),
|
||||||
edgeFissIds = [8],
|
edgeFiss = [8],
|
||||||
lgInfluence = 0.01,
|
lgInfluence = 0.01,
|
||||||
meshBrep = (0.0002,0.003),
|
meshBrep = (0.0002,0.003),
|
||||||
rayonPipe = 0.005,
|
rayonPipe = 0.005,
|
||||||
|
Loading…
Reference in New Issue
Block a user