Back to index

salome-med  6.5.0
Namespaces | Functions | Variables
testMedMemGeneral.py File Reference

Go to the source code of this file.

Namespaces

namespace  testMedMemGeneral

Functions

def testMedMemGeneral.print_ord
def testMedMemGeneral.add_one

Variables

list testMedMemGeneral.filesPath = os.environ["MED_ROOT_DIR"]
tuple testMedMemGeneral.tmpDir = os.getenv("TEMP")
tuple testMedMemGeneral.tmpMask = os.path.join(tmpDir, "*_test.*")
list testMedMemGeneral.fileNames = []
list testMedMemGeneral.meshNames = []
tuple testMedMemGeneral.nbOfFiles = len(fileNames)
 Here is the part you should change to add another file to the test files battery.
list testMedMemGeneral.filesFull = []
list testMedMemGeneral.fileName = fileNames[i]
 Loop on all files.
list testMedMemGeneral.fileFull = filesFull[i]
tuple testMedMemGeneral.decompFile = string.split(fileName,".")
tuple testMedMemGeneral.lenDecompFileM1 = len(decompFile)
list testMedMemGeneral.extensionFile = decompFile[lenDecompFileM1]
list testMedMemGeneral.rootFile = decompFile[0]
tuple testMedMemGeneral.rootFileFull = os.path.join(tmpDir, rootFile)
string testMedMemGeneral.medV22FileName = "V22_test.med"
string testMedMemGeneral.vtkFileName = "_test.vtk"
tuple testMedMemGeneral.mesh = MESH()
tuple testMedMemGeneral.meshDriver = MED_MESH_RDONLY_DRIVER(fileFull,mesh)
 testMedMemGeneral.type = MED_CARTESIAN
tuple testMedMemGeneral.meshName = mesh.getName()
tuple testMedMemGeneral.spaceDim = mesh.getSpaceDimension()
tuple testMedMemGeneral.meshDim = mesh.getMeshDimension()
tuple testMedMemGeneral.nbNodes = mesh.getNumberOfNodes()
tuple testMedMemGeneral.coordSyst = mesh.getCoordinatesSystem()
list testMedMemGeneral.coordNames = []
list testMedMemGeneral.coordUnits = []
tuple testMedMemGeneral.coordinates = mesh.getCoordinates(MED_FULL_INTERLACE)
int testMedMemGeneral.kp1 = 1
list testMedMemGeneral.coords = []
int testMedMemGeneral.isdp1 = 1
tuple testMedMemGeneral.nbTypesCell = mesh.getNumberOfTypes(MED_CELL)
tuple testMedMemGeneral.types = mesh.getTypes(MED_CELL)
tuple testMedMemGeneral.nbElemType = mesh.getNumberOfElements(MED_CELL,type)
tuple testMedMemGeneral.connectivity = mesh.getConnectivity(MED_NODAL,MED_CELL,type)
int testMedMemGeneral.nbNodesPerCell = 100
tuple testMedMemGeneral.ReverseConnectivity = mesh.getReverseConnectivity(MED_NODAL)
tuple testMedMemGeneral.ReverseConnectivityIndex = mesh.getReverseConnectivityIndex(MED_NODAL)
list testMedMemGeneral.begin = ReverseConnectivityIndex[j]
list testMedMemGeneral.end = ReverseConnectivityIndex[j+1]
tuple testMedMemGeneral.nbElemts = mesh.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple testMedMemGeneral.Connectivity = mesh.getConnectivity(MED_DESCENDING,MED_CELL,MED_ALL_ELEMENTS)
tuple testMedMemGeneral.ConnectivityIndex = mesh.getConnectivityIndex(MED_DESCENDING,MED_CELL)
 testMedMemGeneral.constituent = MED_FACE
tuple testMedMemGeneral.nbTypesConst = mesh.getNumberOfTypes(constituent)
int testMedMemGeneral.nbNodesPerConst = 100
tuple testMedMemGeneral.nbFam = mesh.getNumberOfFamilies(entity)
tuple testMedMemGeneral.nbGrp = mesh.getNumberOfGroups(entity)
tuple testMedMemGeneral.family = mesh.getFamily(entity,j+1)
tuple testMedMemGeneral.familyName = family.getName()
tuple testMedMemGeneral.familyDescription = family.getDescription()
tuple testMedMemGeneral.familyEntity = family.getEntity()
tuple testMedMemGeneral.familyBool = family.isOnAllElements()
tuple testMedMemGeneral.familyIdentifier = family.getIdentifier()
tuple testMedMemGeneral.nbOfAtt = family.getNumberOfAttributes()
tuple testMedMemGeneral.attributesids = family.getAttributesIdentifiers()
tuple testMedMemGeneral.attributesvals = family.getAttributesValues()
tuple testMedMemGeneral.nbOfGrp = family.getNumberOfGroups()
tuple testMedMemGeneral.nbOfTypes = family.getNumberOfTypes()
tuple testMedMemGeneral.nbOfElmtsOfType = family.getNumberOfElements(type)
tuple testMedMemGeneral.number = family.getNumber(type)
tuple testMedMemGeneral.group = mesh.getGroup(entity,j+1)
tuple testMedMemGeneral.groupName = group.getName()
tuple testMedMemGeneral.groupDescription = group.getDescription()
tuple testMedMemGeneral.groupEntity = group.getEntity()
tuple testMedMemGeneral.groupBool = group.isOnAllElements()
tuple testMedMemGeneral.nbOfFam = group.getNumberOfFamilies()
tuple testMedMemGeneral.idMedV22 = mesh.addDriver(MED_DRIVER,medV22FileName,mesh.getName(),RDWR)
tuple testMedMemGeneral.idVtk = mesh.addDriver(VTK_DRIVER,vtkFileName,mesh.getName())
tuple testMedMemGeneral.supportCell = mesh.getSupportOnAll( MED_CELL )
tuple testMedMemGeneral.barycenter = mesh.getBarycenter(supportCell)
tuple testMedMemGeneral.barycenterCell = barycenter.getRow(j+1)
tuple testMedMemGeneral.volume = mesh.getVolume(supportCell)
int testMedMemGeneral.voltot = 0
tuple testMedMemGeneral.volumeCell = volume.getValueIJ(j+1,1)
tuple testMedMemGeneral.supportFace = mesh.getSupportOnAll(MED_FACE)
tuple testMedMemGeneral.nbFace = mesh.getNumberOfElements(MED_FACE,MED_ALL_ELEMENTS)
tuple testMedMemGeneral.nbTypeFace = mesh.getNumberOfTypes(MED_FACE)
tuple testMedMemGeneral.TypeFace = mesh.getTypes(MED_FACE)
tuple testMedMemGeneral.normal = mesh.getNormal(supportFace)
tuple testMedMemGeneral.area = mesh.getArea(supportFace)
tuple testMedMemGeneral.normalFace = normal.getRow(j+1)
tuple testMedMemGeneral.areaFace = area.getRow(j+1)
list testMedMemGeneral.value1 = normalFace[0]
list testMedMemGeneral.value2 = normalFace[1]
list testMedMemGeneral.value3 = normalFace[2]
tuple testMedMemGeneral.norm = (value1*value1 + value2*value2 + value3*value3)
int testMedMemGeneral.areatot = 0
tuple testMedMemGeneral.areaCell = area.getValueIJ(j+1,1)
tuple testMedMemGeneral.supportEdge = mesh.getSupportOnAll(MED_EDGE)
tuple testMedMemGeneral.nbEdge = mesh.getNumberOfElements(MED_EDGE,MED_ALL_ELEMENTS)
tuple testMedMemGeneral.nbTypeEdge = mesh.getNumberOfTypes(MED_EDGE)
tuple testMedMemGeneral.TypeEdge = mesh.getTypes(MED_EDGE)
tuple testMedMemGeneral.length = mesh.getLength(supportEdge)
tuple testMedMemGeneral.normalEdge = normal.getRow(j+1)
tuple testMedMemGeneral.lengthEdge = length.getRow(j+1)
tuple testMedMemGeneral.suppBound = mesh.getBoundaryElements(MED_FACE)
tuple testMedMemGeneral.nbElmBound = suppBound.getNumberOfElements(MED_ALL_ELEMENTS)
tuple testMedMemGeneral.normalBound = mesh.getNormal(suppBound)
tuple testMedMemGeneral.numberSuppBound = suppBound.getNumber(MED_ALL_ELEMENTS)
list testMedMemGeneral.valInd = numberSuppBound[j]
tuple testMedMemGeneral.normalBoundJ = normalBound.getRow(valInd)
tuple testMedMemGeneral.md = MEDFILEBROWSER(fileFull)
tuple testMedMemGeneral.nbMeshes = md.getNumberOfMeshes()
tuple testMedMemGeneral.nbFields = md.getNumberOfFields()
tuple testMedMemGeneral.mesh_name = md.getMeshName(imsh)
tuple testMedMemGeneral.field_name = md.getFieldName(ifld)
tuple testMedMemGeneral.dtits = md.getFieldIteration(field_name)
tuple testMedMemGeneral.dt = dtitfield.getdt()
tuple testMedMemGeneral.it = dtitfield.getit()
tuple testMedMemGeneral.fieldint = FIELDINT(MED_DRIVER,md.getFileName(),field_name,dt,it,mesh)
tuple testMedMemGeneral.name = fieldint.getName()
tuple testMedMemGeneral.desc = fieldint.getDescription()
tuple testMedMemGeneral.nbOfComp = fieldint.getNumberOfComponents()
tuple testMedMemGeneral.iterationNb = fieldint.getIterationNumber()
tuple testMedMemGeneral.orderNb = fieldint.getOrderNumber()
tuple testMedMemGeneral.time = fieldint.getTime()
tuple testMedMemGeneral.fieldint_vol = fieldint.getSupport()
tuple testMedMemGeneral.compName = fieldint.getComponentName(kp1)
tuple testMedMemGeneral.compDesc = fieldint.getComponentDescription(kp1)
tuple testMedMemGeneral.compUnit = fieldint.getMEDComponentUnit(kp1)
tuple testMedMemGeneral.support = fieldint.getSupport()
tuple testMedMemGeneral.nbOf = support.getNumberOfElements(MED_ALL_ELEMENTS)
tuple testMedMemGeneral.valueI = fieldint.getRow(k+1)
tuple testMedMemGeneral.fieldint2 = FIELDINT(fieldint)
 testMedMemGeneral.fieldintadd = fieldint+fieldint2
 testMedMemGeneral.fieldintsub = fieldint-fieldint2
 testMedMemGeneral.fieldintmul = fieldint*fieldint2
 testMedMemGeneral.fieldintdiv = fieldint/fieldint2
 testMedMemGeneral.fieldintasso = fieldint+fieldint*fieldint
tuple testMedMemGeneral.fieldintSP = createFieldIntScalarProduct(fieldint, fieldint2)
tuple testMedMemGeneral.fielddouble = FIELDDOUBLE(MED_DRIVER,md.getFileName(),field_name,dt,it,mesh)
tuple testMedMemGeneral.fieldEntity = fielddouble.getSupport()
tuple testMedMemGeneral.fielddouble_vol = fielddouble.getSupport()
tuple testMedMemGeneral.fielddouble2 = FIELDDOUBLE(fielddouble)
 testMedMemGeneral.fielddoubleadd = fielddouble+fielddouble2
 testMedMemGeneral.fielddoublesub = fielddouble-fielddouble2
 testMedMemGeneral.fielddoublemul = fielddouble*fielddouble2
 testMedMemGeneral.fielddoublediv = fielddouble/fielddouble2
 testMedMemGeneral.fielddoubleasso = fielddouble+fielddouble2*fielddouble2
tuple testMedMemGeneral.fielddoubleSP = createFieldDoubleScalarProduct(fielddouble, fielddouble2)