Back to index

salome-kernel  6.5.0
Variables
KERNEL_PY.salome_test Namespace Reference

Variables

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

Variable Documentation

tuple KERNEL_PY.salome_test.A = builder.FindOrCreateAttribute(comp, "AttributeName")

Definition at line 109 of file salome_test.py.

tuple KERNEL_PY.salome_test.algoMef = smesh.CreateHypothesis( "MEFISTO_2D", stdMeshersEngine )

Definition at line 275 of file salome_test.py.

tuple KERNEL_PY.salome_test.algoReg = smesh.CreateHypothesis( "Regular_1D", stdMeshersEngine )

Definition at line 263 of file salome_test.py.

Definition at line 363 of file salome_test.py.

Definition at line 364 of file salome_test.py.

Definition at line 390 of file salome_test.py.

tuple KERNEL_PY.salome_test.box = geompy.MakeBox(0., 0., 0., 100., 200., 300.)

Definition at line 145 of file salome_test.py.

tuple KERNEL_PY.salome_test.box_obj = salome.myStudy.FindObjectByPath("/Geometry/box")

Definition at line 147 of file salome_test.py.

tuple KERNEL_PY.salome_test.builder = salome.myStudy.NewBuilder()

Definition at line 45 of file salome_test.py.

Definition at line 55 of file salome_test.py.

tuple KERNEL_PY.salome_test.comp = catalog.GetComponent("GEOM")

Definition at line 68 of file salome_test.py.

Definition at line 176 of file salome_test.py.

tuple KERNEL_PY.salome_test.edgeList = geompy.SubShapeAll(face, ShapeTypeEdge)

Definition at line 175 of file salome_test.py.

Definition at line 166 of file salome_test.py.

tuple KERNEL_PY.salome_test.field = visu_gui.visu.getFieldObjectFromStudy(3,1)

Definition at line 383 of file salome_test.py.

string KERNEL_PY.salome_test.field_name = "fieldnodedouble"

Definition at line 365 of file salome_test.py.

tuple KERNEL_PY.salome_test.hypArea1 = smesh.CreateHypothesis( "MaxElementArea", stdMeshersEngine )

Definition at line 236 of file salome_test.py.

tuple KERNEL_PY.salome_test.hypArea2 = smesh.CreateHypothesis( "MaxElementArea", stdMeshersEngine )

Definition at line 247 of file salome_test.py.

tuple KERNEL_PY.salome_test.hypLen1 = smesh.CreateHypothesis( "LocalLength", stdMeshersEngine )

Definition at line 214 of file salome_test.py.

tuple KERNEL_PY.salome_test.hypNbSeg1 = smesh.CreateHypothesis( "NumberOfSegments", stdMeshersEngine )

Definition at line 225 of file salome_test.py.

tuple KERNEL_PY.salome_test.idbox = geompy.addToStudy(box, "box")

Definition at line 146 of file salome_test.py.

tuple KERNEL_PY.salome_test.idedge = geompy.addToStudyInFather(face, edge, name)

Definition at line 178 of file salome_test.py.

tuple KERNEL_PY.salome_test.idface = geompy.addToStudyInFather(box, face, name)

Definition at line 168 of file salome_test.py.

tuple KERNEL_PY.salome_test.idshell = geompy.addToStudyInFather(box, shell, name)

Definition at line 158 of file salome_test.py.

tuple KERNEL_PY.salome_test.listHyp = algoReg.GetCompatibleHypothesis()

Definition at line 264 of file salome_test.py.

tuple KERNEL_PY.salome_test.med = salome.lcc.FindOrLoadComponent("FactoryServer", "MED")

Definition at line 339 of file salome_test.py.

tuple KERNEL_PY.salome_test.med_comp = salome.myStudy.FindComponent("MED")

Definition at line 336 of file salome_test.py.

tuple KERNEL_PY.salome_test.med_obj = visu_gui.visu.getMedObjectFromStudy()

Definition at line 376 of file salome_test.py.

tuple KERNEL_PY.salome_test.medFile = os.path.join(os.getenv('DATA_DIR'), 'MedFiles', medFileName)

Definition at line 334 of file salome_test.py.

string KERNEL_PY.salome_test.medFileName = "pointe.med"

Definition at line 333 of file salome_test.py.

tuple KERNEL_PY.salome_test.mesh = smesh.CreateMesh(box)

Definition at line 289 of file salome_test.py.

tuple KERNEL_PY.salome_test.mesh1 = visu.MeshOnEntity(result1, aMeshName, anEntity)

Definition at line 398 of file salome_test.py.

tuple KERNEL_PY.salome_test.mesh2 = visu.MeshOnEntity(result2, aMeshName, anEntity)

Definition at line 421 of file salome_test.py.

tuple KERNEL_PY.salome_test.name = geompy.SubShapeName(shell, box)

Definition at line 157 of file salome_test.py.

tuple KERNEL_PY.salome_test.obj = salome.naming_service.Resolve('Kernel/ModulCatalog')

Definition at line 54 of file salome_test.py.

tuple KERNEL_PY.salome_test.result1 = visu.ImportMedField(field)

Definition at line 391 of file salome_test.py.

tuple KERNEL_PY.salome_test.result2 = visu.ImportFile(medFile)

Definition at line 414 of file salome_test.py.

tuple KERNEL_PY.salome_test.ret = mesh.AddHypothesis(box, algoReg)

Definition at line 292 of file salome_test.py.

Definition at line 405 of file salome_test.py.

Definition at line 428 of file salome_test.py.

Definition at line 135 of file salome_test.py.

Definition at line 140 of file salome_test.py.

Definition at line 138 of file salome_test.py.

Definition at line 137 of file salome_test.py.

Definition at line 136 of file salome_test.py.

Definition at line 141 of file salome_test.py.

Definition at line 139 of file salome_test.py.

Definition at line 156 of file salome_test.py.

tuple KERNEL_PY.salome_test.smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH")

Definition at line 195 of file salome_test.py.

tuple KERNEL_PY.salome_test.smeshgui = salome.ImportComponentGUI("SMESH")

Definition at line 197 of file salome_test.py.

string KERNEL_PY.salome_test.stdMeshersEngine = "StdMeshersEngine"

Definition at line 205 of file salome_test.py.

Definition at line 36 of file salome_test.py.

tuple KERNEL_PY.salome_test.submesh = mesh.GetSubMesh(edge, "SubMeshEdge")

Definition at line 302 of file salome_test.py.

Definition at line 165 of file salome_test.py.

Definition at line 155 of file salome_test.py.

tuple KERNEL_PY.salome_test.visu = salome.lcc.FindOrLoadComponent("FactoryServer", "VISU")

Definition at line 370 of file salome_test.py.