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
#-----------------------------------------------------------------
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
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 :
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 :
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
# 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'
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
#---------------------------------------------
salome.sg.updateObjBrowser(1)
- print 'addJdcInSalome commEntry->', commEntry
+ #print 'addJdcInSalome commEntry->', commEntry
if commEntry:
ok, msgError = True, ''
#except:
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
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 ]
-
DEBUT();
maillage=LIRE_MAILLAGE();
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();
-
DEBUT();
maillage=LIRE_MAILLAGE();
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();
-
DEBUT();
maillage=LIRE_MAILLAGE();
POUTRE=_F(GROUP_MA='element1D',
SECTION='RECTANGLE',
CARA=('H','EP',),
- VALE=(3.0,2.0,),),);
+ VALE=(3.0,1,),),);
FIN();
-
DEBUT();
maillage=LIRE_MAILLAGE();
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();
-
DEBUT();
maillage=LIRE_MAILLAGE();
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();
-
DEBUT();
maillage=LIRE_MAILLAGE();
POUTRE=_F(GROUP_MA='element1D',
SECTION='CERCLE',
CARA=('R','EP',),
- VALE=(2.0,1.0,),),);
+ VALE=(2.0,0.5,),),);
FIN();
-
DEBUT();
maillage=LIRE_MAILLAGE();
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();
-
DEBUT();
maillage=LIRE_MAILLAGE();
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();
-
DEBUT();
maillage=LIRE_MAILLAGE();
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();
-
DEBUT();
maillage=LIRE_MAILLAGE();
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();