Package medClient_test


Functions

def print_ord
def changeBlankToUnderScore
def getMedObjectFromStudy
def getMeshObjectFromStudy
def getSupportObjectFromStudy
def getFieldObjectFromStudy

Variables

tuple sg = SALOMEGUI_Swig()
string fileName = "cube_hexa8_quad4.med"
tuple medComp = salome.lcc.FindOrLoadComponent("FactoryServer", "MED")
list filePath = os.environ["MED_ROOT_DIR"]
string filePath = "/share/salome/resources/med/"
 filePathName = filePath+fileName
tuple medObj = getMedObjectFromStudy(fileName)
tuple nbOfMeshes = medObj.getNumberOfMeshes()
tuple meshNames = medObj.getMeshNames()
list meshName = meshNames[i]
tuple meshObj = medObj.getMeshByName(meshName)
tuple nbFam = meshObj.getNumberOfFamilies(entity)
tuple nbGrp = meshObj.getNumberOfGroups(entity)
tuple familyName = (meshObj.getFamily(entity,j+1))
tuple familyObj = getSupportObjectFromStudy(meshName,familyName)
tuple groupName = (meshObj.getGroup(entity,j+1))
tuple groupObj = getSupportObjectFromStudy(meshName,groupName)
string entitySupport = "MED_NOEUD"
string entitySupport = "MED_MAILLE"
string entitySuppor = "MED_FACE"
string entitySupport = "MED_ARETE"
string supportName = "SupportOnAll_"
tuple supportObj = getSupportObjectFromStudy(meshName,supportName)
tuple meshLocalCopy = MESHClient(meshObj)
tuple name = meshLocalCopy.getName()
tuple spaceDimension = meshLocalCopy.getSpaceDimension()
tuple meshDimension = meshLocalCopy.getMeshDimension()
tuple numberOfNodes = meshLocalCopy.getNumberOfNodes()
tuple coordSyst = meshLocalCopy.getCoordinatesSystem()
list coordNames = []
list coordUnits = []
tuple coordinates = meshLocalCopy.getCoordinates(MED_FULL_INTERLACE)
int kp1 = 1
tuple nbTypesCell = meshLocalCopy.getNumberOfTypes(MED_CELL)
tuple types = meshLocalCopy.getTypes(MED_CELL)
list type = types[k]
tuple nbElemType = meshLocalCopy.getNumberOfElements(MED_CELL,type)
tuple connectivity = meshLocalCopy.getConnectivity(MED_FULL_INTERLACE,MED_NODAL,MED_CELL,type)
int nbNodesPerCell = 100
tuple nbTypesCellWithPoly = meshLocalCopy.getNumberOfTypesWithPoly(MED_CELL)
 TEST METHODS ABOUT POLY ELEMENTS ##.
tuple types = meshLocalCopy.getTypesWithPoly(MED_CELL)
list type = types[k]
tuple nbElemType = meshLocalCopy.getNumberOfPolygons()
tuple nbElemType = meshLocalCopy.getNumberOfPolyhedron()
tuple connectivity = meshLocalCopy.getPolygonsConnectivity(MED_NODAL,MED_CELL)
tuple index = meshLocalCopy.getPolygonsConnectivityIndex(MED_NODAL,MED_CELL)
tuple connectivity = meshLocalCopy.getPolyhedronConnectivity(MED_NODAL)
tuple fIndex = meshLocalCopy.getPolyhedronFacesIndex()
tuple index = meshLocalCopy.getPolyhedronIndex(MED_NODAL)
tuple nbOfFields = medObj.getNumberOfFields()
tuple fieldNames = medObj.getFieldNames()
list fieldName = fieldNames[i]
tuple nbOfIt = medObj.getFieldNumberOfIteration(fieldName)
tuple dtitfield = medObj.getFieldIteration(fieldName,j)
list dt = dtitfield[0]
list it = dtitfield[1]
list meshName = meshNames[0]
string entitySupport = "MED_NOEUD"
string entitySupport = "MED_MAILLE"
string entitySuppor = "MED_FACE"
string entitySupport = "MED_ARETE"
string supportName = "SupportOnAll_"
tuple fieldTyped = FIELDDOUBLEClient(fieldObj)
tuple fieldTyped = FIELDINTClient(fieldObj)
tuple type = fieldTyped.getValueType()
tuple name = fieldTyped.getName()
tuple desc = fieldTyped.getDescription()
tuple nbOfComp = fieldTyped.getNumberOfComponents()
tuple iterationNb = fieldTyped.getIterationNumber()
tuple orderNb = fieldTyped.getOrderNumber()
tuple time = fieldTyped.getTime()
tuple support = fieldTyped.getSupport()
tuple nbOf = support.getNumberOfElements(MED_ALL_ELEMENTS)
tuple valueI = fieldTyped.getRow(k+1)


Function Documentation

def medClient_test.print_ord   i  ) 
 

def medClient_test.changeBlankToUnderScore   stringWithBlank  ) 
 

def medClient_test.getMedObjectFromStudy   file  ) 
 

def medClient_test.getMeshObjectFromStudy   meshName  ) 
 

def medClient_test.getSupportObjectFromStudy   meshName,
  supportName
 

def medClient_test.getFieldObjectFromStudy   dt,
  it,
  fieldName,
  supportName,
  meshName
 


Variable Documentation

tuple medClient_test.sg = SALOMEGUI_Swig() [static]
 

string medClient_test.fileName = "cube_hexa8_quad4.med" [static]
 

tuple medClient_test.medComp = salome.lcc.FindOrLoadComponent("FactoryServer", "MED") [static]
 

list medClient_test.filePath = os.environ["MED_ROOT_DIR"] [static]
 

string medClient_test.filePath = "/share/salome/resources/med/" [static]
 

medClient_test.filePathName = filePath+fileName [static]
 

tuple medClient_test.medObj = getMedObjectFromStudy(fileName) [static]
 

tuple medClient_test.nbOfMeshes = medObj.getNumberOfMeshes() [static]
 

tuple medClient_test.meshNames = medObj.getMeshNames() [static]
 

list medClient_test.meshName = meshNames[i] [static]
 

tuple medClient_test.meshObj = medObj.getMeshByName(meshName) [static]
 

tuple medClient_test.nbFam = meshObj.getNumberOfFamilies(entity) [static]
 

tuple medClient_test.nbGrp = meshObj.getNumberOfGroups(entity) [static]
 

tuple medClient_test.familyName = (meshObj.getFamily(entity,j+1)) [static]
 

tuple medClient_test.familyObj = getSupportObjectFromStudy(meshName,familyName) [static]
 

tuple medClient_test.groupName = (meshObj.getGroup(entity,j+1)) [static]
 

tuple medClient_test.groupObj = getSupportObjectFromStudy(meshName,groupName) [static]
 

string medClient_test.entitySupport = "MED_NOEUD" [static]
 

string medClient_test.entitySupport = "MED_MAILLE" [static]
 

string medClient_test.entitySuppor = "MED_FACE" [static]
 

string medClient_test.entitySupport = "MED_ARETE" [static]
 

string medClient_test.supportName = "SupportOnAll_" [static]
 

tuple medClient_test.supportObj = getSupportObjectFromStudy(meshName,supportName) [static]
 

tuple medClient_test.meshLocalCopy = MESHClient(meshObj) [static]
 

tuple medClient_test.name = meshLocalCopy.getName() [static]
 

tuple medClient_test.spaceDimension = meshLocalCopy.getSpaceDimension() [static]
 

tuple medClient_test.meshDimension = meshLocalCopy.getMeshDimension() [static]
 

tuple medClient_test.numberOfNodes = meshLocalCopy.getNumberOfNodes() [static]
 

tuple medClient_test.coordSyst = meshLocalCopy.getCoordinatesSystem() [static]
 

list medClient_test.coordNames = [] [static]
 

list medClient_test.coordUnits = [] [static]
 

tuple medClient_test.coordinates = meshLocalCopy.getCoordinates(MED_FULL_INTERLACE) [static]
 

int medClient_test.kp1 = 1 [static]
 

tuple medClient_test.nbTypesCell = meshLocalCopy.getNumberOfTypes(MED_CELL) [static]
 

tuple medClient_test.types = meshLocalCopy.getTypes(MED_CELL) [static]
 

list medClient_test.type = types[k] [static]
 

tuple medClient_test.nbElemType = meshLocalCopy.getNumberOfElements(MED_CELL,type) [static]
 

tuple medClient_test.connectivity = meshLocalCopy.getConnectivity(MED_FULL_INTERLACE,MED_NODAL,MED_CELL,type) [static]
 

int medClient_test.nbNodesPerCell = 100 [static]
 

tuple medClient_test.nbTypesCellWithPoly = meshLocalCopy.getNumberOfTypesWithPoly(MED_CELL) [static]
 

TEST METHODS ABOUT POLY ELEMENTS ##.

tuple medClient_test.types = meshLocalCopy.getTypesWithPoly(MED_CELL) [static]
 

list medClient_test.type = types[k] [static]
 

tuple medClient_test.nbElemType = meshLocalCopy.getNumberOfPolygons() [static]
 

tuple medClient_test.nbElemType = meshLocalCopy.getNumberOfPolyhedron() [static]
 

tuple medClient_test.connectivity = meshLocalCopy.getPolygonsConnectivity(MED_NODAL,MED_CELL) [static]
 

tuple medClient_test.index = meshLocalCopy.getPolygonsConnectivityIndex(MED_NODAL,MED_CELL) [static]
 

tuple medClient_test.connectivity = meshLocalCopy.getPolyhedronConnectivity(MED_NODAL) [static]
 

tuple medClient_test.fIndex = meshLocalCopy.getPolyhedronFacesIndex() [static]
 

tuple medClient_test.index = meshLocalCopy.getPolyhedronIndex(MED_NODAL) [static]
 

tuple medClient_test.nbOfFields = medObj.getNumberOfFields() [static]
 

tuple medClient_test.fieldNames = medObj.getFieldNames() [static]
 

list medClient_test.fieldName = fieldNames[i] [static]
 

tuple medClient_test.nbOfIt = medObj.getFieldNumberOfIteration(fieldName) [static]
 

tuple medClient_test.dtitfield = medObj.getFieldIteration(fieldName,j) [static]
 

list medClient_test.dt = dtitfield[0] [static]
 

list medClient_test.it = dtitfield[1] [static]
 

list medClient_test.meshName = meshNames[0] [static]
 

string medClient_test.entitySupport = "MED_NOEUD" [static]
 

string medClient_test.entitySupport = "MED_MAILLE" [static]
 

string medClient_test.entitySuppor = "MED_FACE" [static]
 

string medClient_test.entitySupport = "MED_ARETE" [static]
 

string medClient_test.supportName = "SupportOnAll_" [static]
 

tuple medClient_test.fieldTyped = FIELDDOUBLEClient(fieldObj) [static]
 

tuple medClient_test.fieldTyped = FIELDINTClient(fieldObj) [static]
 

tuple medClient_test.type = fieldTyped.getValueType() [static]
 

tuple medClient_test.name = fieldTyped.getName() [static]
 

tuple medClient_test.desc = fieldTyped.getDescription() [static]
 

tuple medClient_test.nbOfComp = fieldTyped.getNumberOfComponents() [static]
 

tuple medClient_test.iterationNb = fieldTyped.getIterationNumber() [static]
 

tuple medClient_test.orderNb = fieldTyped.getOrderNumber() [static]
 

tuple medClient_test.time = fieldTyped.getTime() [static]
 

tuple medClient_test.support = fieldTyped.getSupport() [static]
 

tuple medClient_test.nbOf = support.getNumberOfElements(MED_ALL_ELEMENTS) [static]
 

tuple medClient_test.valueI = fieldTyped.getRow(k+1) [static]