Back to index

salome-kernel  6.5.0
Namespaces | Variables
salome_test.py File Reference

Go to the source code of this file.

Namespaces

namespace  KERNEL_PY.salome_test

Variables

int KERNEL_PY.salome_test.step = 1
tuple KERNEL_PY.salome_test.builder = salome.myStudy.NewBuilder()
tuple KERNEL_PY.salome_test.obj = salome.naming_service.Resolve('Kernel/ModulCatalog')
tuple KERNEL_PY.salome_test.catalog = obj._narrow(SALOME_ModuleCatalog.ModuleCatalog)
tuple KERNEL_PY.salome_test.comp = catalog.GetComponent("GEOM")
tuple KERNEL_PY.salome_test.A = builder.FindOrCreateAttribute(comp, "AttributeName")
int KERNEL_PY.salome_test.ShapeTypeCompSolid = 1
int KERNEL_PY.salome_test.ShapeTypeSolid = 2
int KERNEL_PY.salome_test.ShapeTypeShell = 3
int KERNEL_PY.salome_test.ShapeTypeFace = 4
int KERNEL_PY.salome_test.ShapeTypeWire = 5
int KERNEL_PY.salome_test.ShapeTypeEdge = 6
int KERNEL_PY.salome_test.ShapeTypeVertex = 7
tuple KERNEL_PY.salome_test.box = geompy.MakeBox(0., 0., 0., 100., 200., 300.)
tuple KERNEL_PY.salome_test.idbox = geompy.addToStudy(box, "box")
tuple KERNEL_PY.salome_test.box_obj = salome.myStudy.FindObjectByPath("/Geometry/box")
tuple KERNEL_PY.salome_test.subShellList = geompy.SubShapeAll(box, ShapeTypeShell)
list KERNEL_PY.salome_test.shell = subShellList[0]
tuple KERNEL_PY.salome_test.name = geompy.SubShapeName(shell, box)
tuple KERNEL_PY.salome_test.idshell = geompy.addToStudyInFather(box, shell, name)
tuple KERNEL_PY.salome_test.subShapeList = geompy.SubShapeAll(box, ShapeTypeFace)
list KERNEL_PY.salome_test.face = subShapeList[0]
tuple KERNEL_PY.salome_test.idface = geompy.addToStudyInFather(box, face, name)
tuple KERNEL_PY.salome_test.edgeList = geompy.SubShapeAll(face, ShapeTypeEdge)
list KERNEL_PY.salome_test.edge = edgeList[0]
tuple KERNEL_PY.salome_test.idedge = geompy.addToStudyInFather(face, edge, name)
tuple KERNEL_PY.salome_test.smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH")
tuple KERNEL_PY.salome_test.smeshgui = salome.ImportComponentGUI("SMESH")
string KERNEL_PY.salome_test.stdMeshersEngine = "StdMeshersEngine"
tuple KERNEL_PY.salome_test.hypLen1 = smesh.CreateHypothesis( "LocalLength", stdMeshersEngine )
tuple KERNEL_PY.salome_test.hypNbSeg1 = smesh.CreateHypothesis( "NumberOfSegments", stdMeshersEngine )
tuple KERNEL_PY.salome_test.hypArea1 = smesh.CreateHypothesis( "MaxElementArea", stdMeshersEngine )
tuple KERNEL_PY.salome_test.hypArea2 = smesh.CreateHypothesis( "MaxElementArea", stdMeshersEngine )
tuple KERNEL_PY.salome_test.algoReg = smesh.CreateHypothesis( "Regular_1D", stdMeshersEngine )
tuple KERNEL_PY.salome_test.listHyp = algoReg.GetCompatibleHypothesis()
tuple KERNEL_PY.salome_test.algoMef = smesh.CreateHypothesis( "MEFISTO_2D", stdMeshersEngine )
tuple KERNEL_PY.salome_test.mesh = smesh.CreateMesh(box)
tuple KERNEL_PY.salome_test.ret = mesh.AddHypothesis(box, algoReg)
tuple KERNEL_PY.salome_test.submesh = mesh.GetSubMesh(edge, "SubMeshEdge")
string KERNEL_PY.salome_test.medFileName = "pointe.med"
tuple KERNEL_PY.salome_test.medFile = os.path.join(os.getenv('DATA_DIR'), 'MedFiles', medFileName)
tuple KERNEL_PY.salome_test.med_comp = salome.myStudy.FindComponent("MED")
tuple KERNEL_PY.salome_test.med = salome.lcc.FindOrLoadComponent("FactoryServer", "MED")
string KERNEL_PY.salome_test.aMeshName = "maa1"
 KERNEL_PY.salome_test.anEntity = VISU.NODE
string KERNEL_PY.salome_test.field_name = "fieldnodedouble"
tuple KERNEL_PY.salome_test.visu = salome.lcc.FindOrLoadComponent("FactoryServer", "VISU")
tuple KERNEL_PY.salome_test.med_obj = visu_gui.visu.getMedObjectFromStudy()
tuple KERNEL_PY.salome_test.field = visu_gui.visu.getFieldObjectFromStudy(3,1)
int KERNEL_PY.salome_test.aTimeStampId = 1
tuple KERNEL_PY.salome_test.result1 = visu.ImportMedField(field)
tuple KERNEL_PY.salome_test.mesh1 = visu.MeshOnEntity(result1, aMeshName, anEntity)
tuple KERNEL_PY.salome_test.scalarMap1 = visu.ScalarMapOnField(result1, aMeshName, anEntity, field_name, aTimeStampId)
tuple KERNEL_PY.salome_test.result2 = visu.ImportFile(medFile)
tuple KERNEL_PY.salome_test.mesh2 = visu.MeshOnEntity(result2, aMeshName, anEntity)
tuple KERNEL_PY.salome_test.scalarMap2 = visu.ScalarMapOnField(result2, aMeshName, anEntity, field_name, 3)