From: Pascale Noyret Date: Tue, 15 Dec 2009 14:10:36 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V5_1_3_beta1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c8cdfe17e7dee40aad4775405892abc58c225bd4;p=tools%2Feficas.git *** empty log message *** --- diff --git a/src/EFICASGUI/eficasSalome.py b/src/EFICASGUI/eficasSalome.py index 9ee8627f..9a6d4833 100644 --- a/src/EFICASGUI/eficasSalome.py +++ b/src/EFICASGUI/eficasSalome.py @@ -122,11 +122,11 @@ class MyEficas( qtEficas.Appli ): import SMESH try: monObjet =self.getCORBAObjectInComponent(entry,"SMESH") - print monObjet + #print monObjet if monObjet != None : # selection d'un groupe de SMESH if monObjet._narrow(SMESH.SMESH_GroupBase): result = True - print result + #print result except : logger.debug(' isMeshGroup pb avec ( entry = %s ) ' %entry ) return result @@ -181,7 +181,7 @@ class MyEficas( qtEficas.Appli ): #----------------------------------------------------------------- tgeo = shape.GetShapeType() geomEngine = salome.lcc.FindOrLoadComponent( "FactoryServer", "GEOM" ) - print dir(self.editor.study) + #print dir(self.editor.study) groupIMeasureOp = geomEngine.GetIMeasureOperations(self.editor.study._get_StudyId()) if tgeo != "COMPOUND" : return tgeo @@ -233,7 +233,7 @@ class MyEficas( qtEficas.Appli ): mainShapeEntry = self.getMainShapeEntry( entry ) if self.mainShapeNames.has_key( editor ): - print "------------- self.mainShapeNames[editor]" , self.mainShapeNames[editor] + #print "------------- self.mainShapeNames[editor]" , self.mainShapeNames[editor] if self.mainShapeNames[editor] == mainShapeEntry: name=mySO.GetName() else : @@ -294,9 +294,9 @@ class MyEficas( qtEficas.Appli ): return name, "Type d objet non permis" # on cherche si la shape associee est la bonne - print "------------- mainShapeID" , mainShapeID + #print "------------- mainShapeID" , mainShapeID if self.mainShapeNames.has_key( editor ): - print "------------- self.mainShapeNames[editor]" , self.mainShapeNames[editor] + #print "------------- self.mainShapeNames[editor]" , self.mainShapeNames[editor] if self.mainShapeNames[editor] == mainShapeID: name=mySO.GetName() else : @@ -305,9 +305,9 @@ class MyEficas( qtEficas.Appli ): self.mainShapeNames[editor] = mainShapeID name=mySO.GetName() - print "------------------------------ name :", name - print "------------------------------ name :", name - print "------------------------------ name :", name + #print "------------------------------ name :", name + #print "------------------------------ name :", name + #print "------------------------------ name :", name return name,msgError @@ -325,8 +325,8 @@ class MyEficas( qtEficas.Appli ): # liste des groupes de maille de nom meshGroupName listSO = self.editor.study.FindObjectByName(meshGroupName, "SMESH") - print listSO - print "liste des groupes de maille de nom %s: "%(meshGroupName), listSO + #print listSO + #print "liste des groupes de maille de nom %s: "%(meshGroupName), listSO if len(listSO)>1: return 0,'Plusieurs objets portent ce nom' @@ -384,9 +384,9 @@ class MyEficas( qtEficas.Appli ): except: logger.debug("selectGroupFromSalome: An error occurs") - print "=================== selectGroupFromSalome ", names, msg - print "=================== selectGroupFromSalome ", names, msg - print "=================== selectGroupFromSalome ", names, msg + #print "=================== selectGroupFromSalome ", names, msg + #print "=================== selectGroupFromSalome ", names, msg + #print "=================== selectGroupFromSalome ", names, msg return names, msg #--------------------------------------------- @@ -440,7 +440,7 @@ class MyEficas( qtEficas.Appli ): salome.sg.updateObjBrowser(1) - print 'addJdcInSalome commEntry->', commEntry + #print 'addJdcInSalome commEntry->', commEntry if commEntry: ok, msgError = True, '' #except: @@ -462,7 +462,7 @@ class MyEficas( qtEficas.Appli ): visu_gui.myVisu.SetCurrentStudy(self.editor.study) m = visu_gui.myVisu.GetViewManager() v = m.GetCurrentView() - print v + #print v if v: currentViewType = v.GetType() atLeastOneStudy = self.editor.study @@ -470,11 +470,11 @@ class MyEficas( qtEficas.Appli ): return ok, msgError #salome.sg.EraseAll() - print 'displayShapestrGeomShape shapeName -> ', shapeName - print currentViewType + #print 'displayShapestrGeomShape shapeName -> ', shapeName + #print currentViewType if currentViewType == VISU.TVIEW3D: # maillage - print 'Vue courante = VTK : affichage groupe de maille' + #print 'Vue courante = VTK : affichage groupe de maille' ok, msgError = self.displayMeshGroups(shapeName) else: #geometrie current_color = COLORS[ self.icolor % LEN_COLORS ] diff --git a/src/TestsEltsVisu/Barres/barrerectanglecreuse.comm b/src/TestsEltsVisu/Barres/barrerectanglecreuse.comm index a2f3c44d..1579cb51 100644 --- a/src/TestsEltsVisu/Barres/barrerectanglecreuse.comm +++ b/src/TestsEltsVisu/Barres/barrerectanglecreuse.comm @@ -1,5 +1,4 @@ - DEBUT(); maillage=LIRE_MAILLAGE(); @@ -15,6 +14,6 @@ Affe=AFFE_CARA_ELEM(MODELE=modele, BARRE=_F(GROUP_MA='element1D', SECTION='RECTANGLE', CARA=('HZ','HY','EPY','EPZ',), - VALE=(3.0,4.0,1.0,2.0,),),); + VALE=(3.0,4.0,1.0,0.5,),),); FIN(); diff --git a/src/TestsEltsVisu/Coques/coqueexcangle.comm b/src/TestsEltsVisu/Coques/coqueexcangle.comm index c5a0f5da..467ece42 100644 --- a/src/TestsEltsVisu/Coques/coqueexcangle.comm +++ b/src/TestsEltsVisu/Coques/coqueexcangle.comm @@ -1,5 +1,4 @@ - DEBUT(); maillage=LIRE_MAILLAGE(); @@ -13,9 +12,9 @@ P1 = 3; Affe=AFFE_CARA_ELEM(MODELE=modele, COQUE=_F(GROUP_MA='element2D', - EPAIS=3.0, - ANGL_REP=(0.0,90.0,), - EXCENTREMENT=-0.3, + EPAIS=10, + ANGL_REP=(0.,90.0,), + EXCENTREMENT=30, INER_ROTA='OUI',),); FIN(); diff --git a/src/TestsEltsVisu/Poutres/pcarreconstcreuse.comm b/src/TestsEltsVisu/Poutres/pcarreconstcreuse.comm index 3c231407..31fa7f63 100644 --- a/src/TestsEltsVisu/Poutres/pcarreconstcreuse.comm +++ b/src/TestsEltsVisu/Poutres/pcarreconstcreuse.comm @@ -1,5 +1,4 @@ - DEBUT(); maillage=LIRE_MAILLAGE(); @@ -15,6 +14,6 @@ Affe=AFFE_CARA_ELEM(MODELE=modele, POUTRE=_F(GROUP_MA='element1D', SECTION='RECTANGLE', CARA=('H','EP',), - VALE=(3.0,2.0,),),); + VALE=(3.0,1,),),); FIN(); diff --git a/src/TestsEltsVisu/Poutres/pcarrehomocreuse.comm b/src/TestsEltsVisu/Poutres/pcarrehomocreuse.comm index 5ea84cd3..3e388870 100644 --- a/src/TestsEltsVisu/Poutres/pcarrehomocreuse.comm +++ b/src/TestsEltsVisu/Poutres/pcarrehomocreuse.comm @@ -1,5 +1,4 @@ - DEBUT(); maillage=LIRE_MAILLAGE(); @@ -16,6 +15,6 @@ Affe=AFFE_CARA_ELEM(MODELE=modele, SECTION='RECTANGLE', VARI_SECT='HOMOTHETIQUE', CARA=('HY1','EPY1','HZ1','EPZ1','HZ2','EPZ2','HY2','EPY2',), - VALE=(0.1,0.05,0.1,0.05,0.1,0.05,0.1,0.05,),),); + VALE=(0.1,0.04,0.1,0.04,0.1,0.04,3,1,),),); FIN(); diff --git a/src/TestsEltsVisu/Poutres/pcarrehomopleine.comm b/src/TestsEltsVisu/Poutres/pcarrehomopleine.comm index 08c9ced2..6be46ea3 100644 --- a/src/TestsEltsVisu/Poutres/pcarrehomopleine.comm +++ b/src/TestsEltsVisu/Poutres/pcarrehomopleine.comm @@ -1,5 +1,4 @@ - DEBUT(); maillage=LIRE_MAILLAGE(); @@ -15,7 +14,7 @@ Affe=AFFE_CARA_ELEM(MODELE=modele, POUTRE=_F(GROUP_MA='element1D', SECTION='RECTANGLE', VARI_SECT='HOMOTHETIQUE', - CARA=('HY1','HZ1','HZ2','EPZ2','HY2','EPY2',), - VALE=(0.1,0.1,0.1,0.,0.1,0.,),),); + CARA=('HY1','HZ1','HZ2','HY2',), + VALE=(2,3,0.2,0.3,),),); FIN(); diff --git a/src/TestsEltsVisu/Poutres/pcercleconstcreuse.comm b/src/TestsEltsVisu/Poutres/pcercleconstcreuse.comm index f157d315..6ee0510a 100644 --- a/src/TestsEltsVisu/Poutres/pcercleconstcreuse.comm +++ b/src/TestsEltsVisu/Poutres/pcercleconstcreuse.comm @@ -1,5 +1,4 @@ - DEBUT(); maillage=LIRE_MAILLAGE(); @@ -15,6 +14,6 @@ Affe=AFFE_CARA_ELEM(MODELE=modele, POUTRE=_F(GROUP_MA='element1D', SECTION='CERCLE', CARA=('R','EP',), - VALE=(2.0,1.0,),),); + VALE=(2.0,0.5,),),); FIN(); diff --git a/src/TestsEltsVisu/Poutres/pcerclehomocreuse.comm b/src/TestsEltsVisu/Poutres/pcerclehomocreuse.comm index 7a2f98f0..74ac5279 100644 --- a/src/TestsEltsVisu/Poutres/pcerclehomocreuse.comm +++ b/src/TestsEltsVisu/Poutres/pcerclehomocreuse.comm @@ -1,5 +1,4 @@ - DEBUT(); maillage=LIRE_MAILLAGE(); @@ -16,6 +15,6 @@ Affe=AFFE_CARA_ELEM(MODELE=modele, SECTION='CERCLE', VARI_SECT='HOMOTHETIQUE', CARA=('R1','R2','EP1','EP2',), - VALE=(3.0,5.0,2.0,3.0,),),); + VALE=(3.0,15.0,1,0.1,),),); FIN(); diff --git a/src/TestsEltsVisu/Poutres/prectaffcreuse.comm b/src/TestsEltsVisu/Poutres/prectaffcreuse.comm index 7b01a3ab..cf3c250b 100644 --- a/src/TestsEltsVisu/Poutres/prectaffcreuse.comm +++ b/src/TestsEltsVisu/Poutres/prectaffcreuse.comm @@ -1,5 +1,4 @@ - DEBUT(); maillage=LIRE_MAILLAGE(); @@ -16,6 +15,6 @@ Affe=AFFE_CARA_ELEM(MODELE=modele, SECTION='RECTANGLE', VARI_SECT='AFFINE', CARA=('HY','HZ1','HZ2','EPY','EPZ1','EPZ2',), - VALE=(0.1,0.1,0.2,0.05,0.05,0.07,),),); + VALE=(1,2,4,0.4,0.8,1.8,),),); FIN(); diff --git a/src/TestsEltsVisu/Poutres/prectconstcreuse.comm b/src/TestsEltsVisu/Poutres/prectconstcreuse.comm index 774af13b..d6df1f19 100644 --- a/src/TestsEltsVisu/Poutres/prectconstcreuse.comm +++ b/src/TestsEltsVisu/Poutres/prectconstcreuse.comm @@ -1,5 +1,4 @@ - DEBUT(); maillage=LIRE_MAILLAGE(); @@ -15,6 +14,6 @@ Affe=AFFE_CARA_ELEM(MODELE=modele, POUTRE=_F(GROUP_MA='element1D', SECTION='RECTANGLE', CARA=('HY','HZ','EPY','EPZ',), - VALE=(3.0,4.0,2.0,2.0,),),); + VALE=(3.0,4.0,1,1,),),); FIN(); diff --git a/src/TestsEltsVisu/Poutres/precthomopleine.comm b/src/TestsEltsVisu/Poutres/precthomopleine.comm index 57a890e2..7a27b76b 100644 --- a/src/TestsEltsVisu/Poutres/precthomopleine.comm +++ b/src/TestsEltsVisu/Poutres/precthomopleine.comm @@ -1,5 +1,4 @@ - DEBUT(); maillage=LIRE_MAILLAGE(); @@ -16,6 +15,6 @@ Affe=AFFE_CARA_ELEM(MODELE=modele, SECTION='RECTANGLE', VARI_SECT='HOMOTHETIQUE', CARA=('HY1','HZ1','HZ2','HY2',), - VALE=(0.1,0.2,0.1,0.2,),),); + VALE=(0.1,0.2,1,2,),),); FIN();