Back to index

salome-med  6.5.0
Functions | Variables
med_opsupp_test Namespace Reference

Functions

def print_ord

Variables

list filePath = os.environ["MED_ROOT_DIR"]
tuple medFile = os.path.join( filePath, "pointe.med" )
tuple md = MEDFILEBROWSER(medFile)
tuple nbMeshes = md.getNumberOfMeshes()
tuple mesh_name = md.getMeshName(0)
tuple mesh = MESH(MED_DRIVER,medFile,mesh_name)
tuple spaceDim = mesh.getSpaceDimension()
tuple meshDim = mesh.getMeshDimension()
tuple nbNodes = mesh.getNumberOfNodes()
tuple nbFam = mesh.getNumberOfFamilies(entity)
tuple family = mesh.getFamily(entity,j+1)
tuple familyName = family.getName()
tuple familyDescription = family.getDescription()
tuple familyEntity = family.getEntity()
tuple familyBool = family.isOnAllElements()
tuple familyIdentifier = family.getIdentifier()
tuple nbOfAtt = family.getNumberOfAttributes()
tuple attributesids = family.getAttributesIdentifiers()
tuple attributesvals = family.getAttributesValues()
tuple nbOfGrp = family.getNumberOfGroups()
tuple nbOfTypes = family.getNumberOfTypes()
tuple types = family.getTypes()
list type = types[k]
tuple nbOfElmtsOfType = family.getNumberOfElements(type)
tuple number = family.getNumber(type)
 entity = MED_NODE
tuple familyNode1 = mesh.getFamily(entity,1)
tuple familyNode2 = mesh.getFamily(entity,2)
tuple familyNode3 = mesh.getFamily(entity,3)
tuple familyNode4 = mesh.getFamily(entity,4)
list listOfSupports = []
tuple support = mesh.mergeSupports(listOfSupports)
tuple supportName = support.getName()
tuple supportDescription = support.getDescription()
tuple supportMeshname = support.getMesh()
tuple supportEntity = support.getEntity()
tuple supportBool = support.isOnAllElements()
tuple familyCell1 = mesh.getFamily(entity,1)
tuple familyCell2 = mesh.getFamily(entity,2)
tuple familyCell3 = mesh.getFamily(entity,3)
tuple support1 = SUPPORT()
string support1Description = "Partial Support 1"
int support1NbOfTypes = 3
int support1TotNbElm = 8
list support1GeoType = [MED_TETRA4,MED_HEXA8,MED_PYRA5]
list support1NbOfElm = [4,2,2]
list support1NbValue = [1,2,3,4,15,16,13,14]
tuple support2 = SUPPORT()
string support2Description = "Partial Support 2"
int support2NbOfTypes = 3
int support2TotNbElm = 8
list support2GeoType = [MED_TETRA4,MED_HEXA8,MED_PYRA5]
list support2NbOfElm = [6,1,1]
list support2NbValue = [3,4,9,10,11,12,16,14]

Function Documentation

Definition at line 40 of file med_opsupp_test.py.

00040 
00041 def print_ord(i):
00042     if i == 0:
00043         return 'first'
00044     elif i == 1:
00045         return 'second'
00046     elif i == 2:
00047         return 'third'
00048     else:
00049         return `i`+'th'


Variable Documentation

tuple med_opsupp_test.attributesids = family.getAttributesIdentifiers()

Definition at line 100 of file med_opsupp_test.py.

tuple med_opsupp_test.attributesvals = family.getAttributesValues()

Definition at line 101 of file med_opsupp_test.py.

Definition at line 126 of file med_opsupp_test.py.

tuple med_opsupp_test.family = mesh.getFamily(entity,j+1)

Definition at line 88 of file med_opsupp_test.py.

tuple med_opsupp_test.familyBool = family.isOnAllElements()

Definition at line 92 of file med_opsupp_test.py.

tuple med_opsupp_test.familyCell1 = mesh.getFamily(entity,1)

Definition at line 214 of file med_opsupp_test.py.

tuple med_opsupp_test.familyCell2 = mesh.getFamily(entity,2)

Definition at line 215 of file med_opsupp_test.py.

tuple med_opsupp_test.familyCell3 = mesh.getFamily(entity,3)

Definition at line 216 of file med_opsupp_test.py.

tuple med_opsupp_test.familyDescription = family.getDescription()

Definition at line 90 of file med_opsupp_test.py.

tuple med_opsupp_test.familyEntity = family.getEntity()

Definition at line 91 of file med_opsupp_test.py.

tuple med_opsupp_test.familyIdentifier = family.getIdentifier()

Definition at line 96 of file med_opsupp_test.py.

tuple med_opsupp_test.familyName = family.getName()

Definition at line 89 of file med_opsupp_test.py.

tuple med_opsupp_test.familyNode1 = mesh.getFamily(entity,1)

Definition at line 127 of file med_opsupp_test.py.

tuple med_opsupp_test.familyNode2 = mesh.getFamily(entity,2)

Definition at line 128 of file med_opsupp_test.py.

tuple med_opsupp_test.familyNode3 = mesh.getFamily(entity,3)

Definition at line 129 of file med_opsupp_test.py.

tuple med_opsupp_test.familyNode4 = mesh.getFamily(entity,4)

Definition at line 130 of file med_opsupp_test.py.

tuple med_opsupp_test.filePath = os.environ["MED_ROOT_DIR"]

Definition at line 35 of file med_opsupp_test.py.

Definition at line 132 of file med_opsupp_test.py.

Definition at line 50 of file med_opsupp_test.py.

tuple med_opsupp_test.medFile = os.path.join( filePath, "pointe.med" )

Definition at line 38 of file med_opsupp_test.py.

Definition at line 56 of file med_opsupp_test.py.

Definition at line 55 of file med_opsupp_test.py.

tuple med_opsupp_test.meshDim = mesh.getMeshDimension()

Definition at line 58 of file med_opsupp_test.py.

tuple med_opsupp_test.nbFam = mesh.getNumberOfFamilies(entity)

Definition at line 67 of file med_opsupp_test.py.

tuple med_opsupp_test.nbMeshes = md.getNumberOfMeshes()

Definition at line 51 of file med_opsupp_test.py.

tuple med_opsupp_test.nbNodes = mesh.getNumberOfNodes()

Definition at line 59 of file med_opsupp_test.py.

tuple med_opsupp_test.nbOfAtt = family.getNumberOfAttributes()

Definition at line 97 of file med_opsupp_test.py.

tuple med_opsupp_test.nbOfElmtsOfType = family.getNumberOfElements(type)

Definition at line 117 of file med_opsupp_test.py.

tuple med_opsupp_test.nbOfGrp = family.getNumberOfGroups()

Definition at line 104 of file med_opsupp_test.py.

tuple med_opsupp_test.nbOfTypes = family.getNumberOfTypes()

Definition at line 112 of file med_opsupp_test.py.

tuple med_opsupp_test.number = family.getNumber(type)

Definition at line 118 of file med_opsupp_test.py.

tuple med_opsupp_test.spaceDim = mesh.getSpaceDimension()

Definition at line 57 of file med_opsupp_test.py.

tuple med_opsupp_test.support = mesh.mergeSupports(listOfSupports)

Definition at line 136 of file med_opsupp_test.py.

Definition at line 298 of file med_opsupp_test.py.

string med_opsupp_test.support1Description = "Partial Support 1"

Definition at line 301 of file med_opsupp_test.py.

list med_opsupp_test.support1GeoType = [MED_TETRA4,MED_HEXA8,MED_PYRA5]

Definition at line 304 of file med_opsupp_test.py.

Definition at line 305 of file med_opsupp_test.py.

Definition at line 302 of file med_opsupp_test.py.

list med_opsupp_test.support1NbValue = [1,2,3,4,15,16,13,14]

Definition at line 306 of file med_opsupp_test.py.

Definition at line 303 of file med_opsupp_test.py.

Definition at line 333 of file med_opsupp_test.py.

string med_opsupp_test.support2Description = "Partial Support 2"

Definition at line 336 of file med_opsupp_test.py.

list med_opsupp_test.support2GeoType = [MED_TETRA4,MED_HEXA8,MED_PYRA5]

Definition at line 339 of file med_opsupp_test.py.

Definition at line 340 of file med_opsupp_test.py.

Definition at line 337 of file med_opsupp_test.py.

list med_opsupp_test.support2NbValue = [3,4,9,10,11,12,16,14]

Definition at line 341 of file med_opsupp_test.py.

Definition at line 338 of file med_opsupp_test.py.

tuple med_opsupp_test.supportBool = support.isOnAllElements()

Definition at line 142 of file med_opsupp_test.py.

tuple med_opsupp_test.supportDescription = support.getDescription()

Definition at line 139 of file med_opsupp_test.py.

tuple med_opsupp_test.supportEntity = support.getEntity()

Definition at line 141 of file med_opsupp_test.py.

tuple med_opsupp_test.supportMeshname = support.getMesh()

Definition at line 140 of file med_opsupp_test.py.

tuple med_opsupp_test.supportName = support.getName()

Definition at line 138 of file med_opsupp_test.py.

Definition at line 116 of file med_opsupp_test.py.

tuple med_opsupp_test.types = family.getTypes()

Definition at line 113 of file med_opsupp_test.py.