Back to index

salome-med  6.5.0
Functions | Variables
med_test1 Namespace Reference

Functions

def print_ord

Variables

list filePath = os.environ["MED_ROOT_DIR"]
tuple medFile = os.path.join(filePath, "carre_en_quad4_seg2.med")
tuple md = MEDFILEBROWSER(medFile)
tuple nbMeshes = md.getNumberOfMeshes()
tuple nbFields = md.getNumberOfFields()
tuple mesh_name = md.getMeshName(i)
tuple field_name = md.getFieldName(i)
tuple mesh = MESH(MED_DRIVER,md.getFileName(),mesh_name)
tuple spaceDim = mesh.getSpaceDimension()
tuple meshDim = mesh.getMeshDimension()
tuple nbNodes = mesh.getNumberOfNodes()
tuple coordSyst = mesh.getCoordinatesSystem()
list coordNames = []
list coordUnits = []
tuple coordinates = mesh.getCoordinates(MED_FULL_INTERLACE)
int kp1 = 1
list coords = []
int isdp1 = 1
tuple nbTypesCell = mesh.getNumberOfTypes(MED_CELL)
tuple types = mesh.getTypes(MED_CELL)
list type = types[k]
tuple nbElemType = mesh.getNumberOfElements(MED_CELL,type)
tuple connectivity = mesh.getConnectivity(MED_NODAL,MED_CELL,type)
int nbNodesPerCell = 100
tuple nbTypesConst = mesh.getNumberOfTypes(constituent)
tuple ReverseConnectivity = mesh.getReverseConnectivity(MED_NODAL)
tuple ReverseConnectivityIndex = mesh.getReverseConnectivityIndex(MED_NODAL)
list begin = ReverseConnectivityIndex[j]
list end = ReverseConnectivityIndex[j+1]
tuple nbElemts = mesh.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple Connectivity = mesh.getConnectivity(MED_DESCENDING,MED_CELL,MED_ALL_ELEMENTS)
tuple ConnectivityIndex = mesh.getConnectivityIndex(MED_DESCENDING,MED_CELL)
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 nbOfElmtsOfType = family.getNumberOfElements(type)
tuple number = family.getNumber(type)
tuple numberFamily = family.getNumber(MED_ALL_ELEMENTS)
tuple fieldFamilyIntg = FIELDINT(family,spaceDim)
int kcomp1 = 1
string fieldCompName = "comp1"
string fieldCompDesc = "desc1"
string fieldCompUnit = "unit1"
string fieldFamilyName = "Integer Field on "
tuple type_field = fieldFamilyIntg.getValueType()
tuple nbOfComp = fieldFamilyIntg.getNumberOfComponents()
tuple compName = fieldFamilyIntg.getComponentName(kcomp1)
tuple compDesc = fieldFamilyIntg.getComponentDescription(kcomp1)
tuple compUnit = fieldFamilyIntg.getMEDComponentUnit(kcomp1)
tuple nbOf = fieldFamilyIntg.getSupport()
list valueI = []
list valInd = numberFamily[k]
tuple valueIverif = fieldFamilyIntg.getRow(valInd)
tuple fieldFamilyDble = FIELDDOUBLE(family,spaceDim)
tuple nbGrp = mesh.getNumberOfGroups(entity)
tuple group = mesh.getGroup(entity,j+1)
tuple groupName = group.getName()
tuple groupDescription = group.getDescription()
tuple groupEntity = group.getEntity()
tuple groupBool = group.isOnAllElements()
tuple nbOfFam = group.getNumberOfFamilies()
tuple supportCell = mesh.getSupportOnAll( MED_CELL )
tuple barycenter = mesh.getBarycenter(supportCell)
tuple barycenterCell = barycenter.getRow(j+1)
tuple volume = mesh.getVolume(supportCell)
int voltot = 0
tuple volumeCell = volume.getValueIJ(j+1,1)
tuple supportFace = SUPPORT(mesh,"Support on all faces of the mesh",MED_FACE)
tuple nbFace = mesh.getNumberOfElements(MED_FACE,MED_ALL_ELEMENTS)
tuple nbTypeFace = mesh.getNumberOfTypes(MED_FACE)
tuple TypeFace = mesh.getTypes(MED_FACE)
tuple normal = mesh.getNormal(supportFace)
tuple area = mesh.getArea(supportFace)
tuple normalFace = normal.getRow(j+1)
tuple areaFace = area.getRow(j+1)
list value1 = normalFace[0]
list value2 = normalFace[1]
list value3 = normalFace[2]
tuple norm = (value1*value1 + value2*value2 + value3*value3)
int areatot = 0
tuple areaCell = area.getValueIJ(j+1,1)
tuple supportEdge = mesh.getSupportOnAll(MED_EDGE)
tuple nbEdge = mesh.getNumberOfElements(MED_EDGE,MED_ALL_ELEMENTS)
tuple nbTypeEdge = mesh.getNumberOfTypes(MED_EDGE)
tuple TypeEdge = mesh.getTypes(MED_EDGE)
tuple length = mesh.getLength(supportEdge)
tuple normalEdge = normal.getRow(j+1)
tuple lengthEdge = length.getRow(j+1)
tuple suppBound = mesh.getBoundaryElements(MED_FACE)
tuple nbElmBound = suppBound.getNumberOfElements(MED_ALL_ELEMENTS)
tuple normalBound = mesh.getNormal(suppBound)
tuple numberSuppBound = range(1,nbElmBound+1)
tuple normalBoundJ = normalBound.getRow(valInd)
tuple dtits = md.getFieldIteration(field_name)
tuple nbOfIt = len(dtits)
tuple dt = dtitfield.getdt()
tuple it = dtitfield.getit()
tuple fieldint = FIELDINT(MED_DRIVER,md.getFileName(),field_name,dt,it,mesh)
tuple name = fieldint.getName()
tuple desc = fieldint.getDescription()
tuple iterationNb = fieldint.getIterationNumber()
tuple orderNb = fieldint.getOrderNumber()
tuple time = fieldint.getTime()
tuple support = fieldint.getSupport()
tuple fielddouble = FIELDDOUBLE(MED_DRIVER,md.getFileName(),field_name,dt,it,mesh)

Function Documentation

def med_test1.print_ord (   i)

Definition at line 43 of file med_test1.py.

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


Variable Documentation

tuple med_test1.area = mesh.getArea(supportFace)

Definition at line 397 of file med_test1.py.

tuple med_test1.areaCell = area.getValueIJ(j+1,1)

Definition at line 411 of file med_test1.py.

tuple med_test1.areaFace = area.getRow(j+1)

Definition at line 400 of file med_test1.py.

Definition at line 409 of file med_test1.py.

tuple med_test1.attributesids = family.getAttributesIdentifiers()

Definition at line 195 of file med_test1.py.

tuple med_test1.attributesvals = family.getAttributesValues()

Definition at line 196 of file med_test1.py.

tuple med_test1.barycenter = mesh.getBarycenter(supportCell)

Definition at line 372 of file med_test1.py.

tuple med_test1.barycenterCell = barycenter.getRow(j+1)

Definition at line 375 of file med_test1.py.

Definition at line 152 of file med_test1.py.

tuple med_test1.compDesc = fieldFamilyIntg.getComponentDescription(kcomp1)

Definition at line 251 of file med_test1.py.

tuple med_test1.compName = fieldFamilyIntg.getComponentName(kcomp1)

Definition at line 250 of file med_test1.py.

tuple med_test1.compUnit = fieldFamilyIntg.getMEDComponentUnit(kcomp1)

Definition at line 252 of file med_test1.py.

tuple med_test1.connectivity = mesh.getConnectivity(MED_NODAL,MED_CELL,type)

Definition at line 120 of file med_test1.py.

tuple med_test1.Connectivity = mesh.getConnectivity(MED_DESCENDING,MED_CELL,MED_ALL_ELEMENTS)

Definition at line 160 of file med_test1.py.

tuple med_test1.ConnectivityIndex = mesh.getConnectivityIndex(MED_DESCENDING,MED_CELL)

Definition at line 161 of file med_test1.py.

tuple med_test1.coordinates = mesh.getCoordinates(MED_FULL_INTERLACE)

Definition at line 99 of file med_test1.py.

Definition at line 90 of file med_test1.py.

list med_test1.coords = []

Definition at line 102 of file med_test1.py.

tuple med_test1.coordSyst = mesh.getCoordinatesSystem()

Definition at line 87 of file med_test1.py.

Definition at line 91 of file med_test1.py.

tuple med_test1.desc = fieldint.getDescription()

Definition at line 484 of file med_test1.py.

tuple med_test1.dt = dtitfield.getdt()

Definition at line 477 of file med_test1.py.

tuple med_test1.dtits = md.getFieldIteration(field_name)

Definition at line 473 of file med_test1.py.

Definition at line 153 of file med_test1.py.

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

Definition at line 183 of file med_test1.py.

tuple med_test1.familyBool = family.isOnAllElements()

Definition at line 187 of file med_test1.py.

tuple med_test1.familyDescription = family.getDescription()

Definition at line 185 of file med_test1.py.

tuple med_test1.familyEntity = family.getEntity()

Definition at line 186 of file med_test1.py.

tuple med_test1.familyIdentifier = family.getIdentifier()

Definition at line 191 of file med_test1.py.

tuple med_test1.familyName = family.getName()

Definition at line 184 of file med_test1.py.

tuple med_test1.field_name = md.getFieldName(i)

Definition at line 72 of file med_test1.py.

string med_test1.fieldCompDesc = "desc1"

Definition at line 227 of file med_test1.py.

string med_test1.fieldCompName = "comp1"

Definition at line 226 of file med_test1.py.

string med_test1.fieldCompUnit = "unit1"

Definition at line 228 of file med_test1.py.

tuple med_test1.fielddouble = FIELDDOUBLE(MED_DRIVER,md.getFileName(),field_name,dt,it,mesh)

Definition at line 511 of file med_test1.py.

Definition at line 272 of file med_test1.py.

Definition at line 219 of file med_test1.py.

string med_test1.fieldFamilyName = "Integer Field on "

Definition at line 241 of file med_test1.py.

tuple med_test1.fieldint = FIELDINT(MED_DRIVER,md.getFileName(),field_name,dt,it,mesh)

Definition at line 482 of file med_test1.py.

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

Definition at line 37 of file med_test1.py.

tuple med_test1.group = mesh.getGroup(entity,j+1)

Definition at line 341 of file med_test1.py.

tuple med_test1.groupBool = group.isOnAllElements()

Definition at line 345 of file med_test1.py.

tuple med_test1.groupDescription = group.getDescription()

Definition at line 343 of file med_test1.py.

tuple med_test1.groupEntity = group.getEntity()

Definition at line 344 of file med_test1.py.

tuple med_test1.groupName = group.getName()

Definition at line 342 of file med_test1.py.

int med_test1.isdp1 = 1

Definition at line 104 of file med_test1.py.

tuple med_test1.it = dtitfield.getit()

Definition at line 478 of file med_test1.py.

tuple med_test1.iterationNb = fieldint.getIterationNumber()

Definition at line 488 of file med_test1.py.

Definition at line 224 of file med_test1.py.

int med_test1.kp1 = 1

Definition at line 101 of file med_test1.py.

tuple med_test1.length = mesh.getLength(supportEdge)

Definition at line 425 of file med_test1.py.

tuple med_test1.lengthEdge = length.getRow(j+1)

Definition at line 428 of file med_test1.py.

Definition at line 53 of file med_test1.py.

tuple med_test1.medFile = os.path.join(filePath, "carre_en_quad4_seg2.med")

Definition at line 40 of file med_test1.py.

tuple med_test1.mesh = MESH(MED_DRIVER,md.getFileName(),mesh_name)

Definition at line 81 of file med_test1.py.

Definition at line 65 of file med_test1.py.

tuple med_test1.meshDim = mesh.getMeshDimension()

Definition at line 83 of file med_test1.py.

tuple med_test1.name = fieldint.getName()

Definition at line 483 of file med_test1.py.

tuple med_test1.nbEdge = mesh.getNumberOfElements(MED_EDGE,MED_ALL_ELEMENTS)

Definition at line 418 of file med_test1.py.

tuple med_test1.nbElemts = mesh.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)

Definition at line 159 of file med_test1.py.

tuple med_test1.nbElemType = mesh.getNumberOfElements(MED_CELL,type)

Definition at line 118 of file med_test1.py.

tuple med_test1.nbElmBound = suppBound.getNumberOfElements(MED_ALL_ELEMENTS)

Definition at line 437 of file med_test1.py.

tuple med_test1.nbFace = mesh.getNumberOfElements(MED_FACE,MED_ALL_ELEMENTS)

Definition at line 390 of file med_test1.py.

tuple med_test1.nbFam = mesh.getNumberOfFamilies(entity)

Definition at line 170 of file med_test1.py.

tuple med_test1.nbFields = md.getNumberOfFields()

Definition at line 57 of file med_test1.py.

tuple med_test1.nbGrp = mesh.getNumberOfGroups(entity)

Definition at line 328 of file med_test1.py.

tuple med_test1.nbMeshes = md.getNumberOfMeshes()

Definition at line 55 of file med_test1.py.

tuple med_test1.nbNodes = mesh.getNumberOfNodes()

Definition at line 85 of file med_test1.py.

Definition at line 121 of file med_test1.py.

tuple med_test1.nbOf = fieldFamilyIntg.getSupport()

Definition at line 258 of file med_test1.py.

tuple med_test1.nbOfAtt = family.getNumberOfAttributes()

Definition at line 192 of file med_test1.py.

tuple med_test1.nbOfComp = fieldFamilyIntg.getNumberOfComponents()

Definition at line 245 of file med_test1.py.

tuple med_test1.nbOfElmtsOfType = family.getNumberOfElements(type)

Definition at line 212 of file med_test1.py.

tuple med_test1.nbOfFam = group.getNumberOfFamilies()

Definition at line 349 of file med_test1.py.

tuple med_test1.nbOfGrp = family.getNumberOfGroups()

Definition at line 199 of file med_test1.py.

tuple med_test1.nbOfIt = len(dtits)

Definition at line 474 of file med_test1.py.

tuple med_test1.nbOfTypes = family.getNumberOfTypes()

Definition at line 207 of file med_test1.py.

tuple med_test1.nbTypeEdge = mesh.getNumberOfTypes(MED_EDGE)

Definition at line 421 of file med_test1.py.

tuple med_test1.nbTypeFace = mesh.getNumberOfTypes(MED_FACE)

Definition at line 393 of file med_test1.py.

tuple med_test1.nbTypesCell = mesh.getNumberOfTypes(MED_CELL)

Definition at line 111 of file med_test1.py.

tuple med_test1.nbTypesConst = mesh.getNumberOfTypes(constituent)

Definition at line 132 of file med_test1.py.

Definition at line 404 of file med_test1.py.

tuple med_test1.normal = mesh.getNormal(supportFace)

Definition at line 396 of file med_test1.py.

tuple med_test1.normalBound = mesh.getNormal(suppBound)

Definition at line 439 of file med_test1.py.

tuple med_test1.normalBoundJ = normalBound.getRow(valInd)

Definition at line 446 of file med_test1.py.

tuple med_test1.normalEdge = normal.getRow(j+1)

Definition at line 427 of file med_test1.py.

tuple med_test1.normalFace = normal.getRow(j+1)

Definition at line 399 of file med_test1.py.

tuple med_test1.number = family.getNumber(type)

Definition at line 213 of file med_test1.py.

tuple med_test1.numberFamily = family.getNumber(MED_ALL_ELEMENTS)

Definition at line 217 of file med_test1.py.

Definition at line 441 of file med_test1.py.

tuple med_test1.orderNb = fieldint.getOrderNumber()

Definition at line 489 of file med_test1.py.

tuple med_test1.ReverseConnectivity = mesh.getReverseConnectivity(MED_NODAL)

Definition at line 148 of file med_test1.py.

tuple med_test1.ReverseConnectivityIndex = mesh.getReverseConnectivityIndex(MED_NODAL)

Definition at line 149 of file med_test1.py.

tuple med_test1.spaceDim = mesh.getSpaceDimension()

Definition at line 82 of file med_test1.py.

tuple med_test1.suppBound = mesh.getBoundaryElements(MED_FACE)

Definition at line 436 of file med_test1.py.

tuple med_test1.support = fieldint.getSupport()

Definition at line 504 of file med_test1.py.

tuple med_test1.supportCell = mesh.getSupportOnAll( MED_CELL )

Definition at line 370 of file med_test1.py.

tuple med_test1.supportEdge = mesh.getSupportOnAll(MED_EDGE)

Definition at line 417 of file med_test1.py.

tuple med_test1.supportFace = SUPPORT(mesh,"Support on all faces of the mesh",MED_FACE)

Definition at line 389 of file med_test1.py.

tuple med_test1.time = fieldint.getTime()

Definition at line 490 of file med_test1.py.

tuple med_test1.type = types[k]

Definition at line 117 of file med_test1.py.

tuple med_test1.type_field = fieldFamilyIntg.getValueType()

Definition at line 244 of file med_test1.py.

tuple med_test1.TypeEdge = mesh.getTypes(MED_EDGE)

Definition at line 422 of file med_test1.py.

tuple med_test1.TypeFace = mesh.getTypes(MED_FACE)

Definition at line 394 of file med_test1.py.

tuple med_test1.types = mesh.getTypes(MED_CELL)

Definition at line 115 of file med_test1.py.

Definition at line 267 of file med_test1.py.

Definition at line 401 of file med_test1.py.

Definition at line 402 of file med_test1.py.

Definition at line 403 of file med_test1.py.

tuple med_test1.valueI = []

Definition at line 262 of file med_test1.py.

tuple med_test1.valueIverif = fieldFamilyIntg.getRow(valInd)

Definition at line 269 of file med_test1.py.

Definition at line 381 of file med_test1.py.

tuple med_test1.volume = mesh.getVolume(supportCell)

Definition at line 380 of file med_test1.py.

tuple med_test1.volumeCell = volume.getValueIJ(j+1,1)

Definition at line 383 of file med_test1.py.