Version: 6.3.1
Functions | Variables

Package batchmode_medcorba_test

Functions

def AnalyzeField
def getMeshObjectFromStudy
def getFieldDoubleObjectFromStudy
def getFieldIntObjectFromStudy
def getMedObjectFromStudy

Variables

list filePath = os.environ["MED_ROOT_DIR"]
tuple poa = batchmode_salome.orb.resolve_initial_references("RootPOA")
tuple poaManager = poa._get_the_POAManager()
 studyCurrent = batchmode_salome.myStudyName
 studyCurrentId = batchmode_salome.myStudyId
string fileName = "cube_hexa8_quad4.med"
tuple medFile = os.path.join( filePath, fileName )
tuple med_comp = batchmode_salome.lcc.FindOrLoadComponent("FactoryServer", "MED")
tuple med_obj = getMedObjectFromStudy(fileName)
tuple nbMeshes = med_obj.getNumberOfMeshes()
tuple nbFields = med_obj.getNumberOfFields()
tuple meshNames = med_obj.getMeshNames()
list meshName = meshNames[0]
tuple meshcorba = getMeshObjectFromStudy(meshName)
tuple nbNodes = meshcorba.getNumberOfNodes()
tuple spaceDim = meshcorba.getSpaceDimension()
tuple nbFam = meshcorba.getNumberOfFamilies(entity)
tuple familycorba = meshcorba.getFamily(entity,j+1)
tuple familyName = familycorba.getName()
tuple familyDescription = familycorba.getDescription()
tuple familyEntity = familycorba.getEntity()
tuple familyBool = familycorba.isOnAllElements()
tuple familyIdentifier = familycorba.getIdentifier()
tuple nbOfAtt = familycorba.getNumberOfAttributes()
tuple attributesids = familycorba.getAttributesIdentifiers()
tuple attributesvals = familycorba.getAttributesValues()
tuple types = familycorba.getTypes()
tuple nbOfTypes = len(types)
list type = types[k]
tuple nbOfElmtsOfType = familycorba.getNumberOfElements(type)
tuple number = familycorba.getNumber(type)
tuple lengthValue = familycorba.getNumberOfElements(SALOME_MED.MED_ALL_ELEMENTS)
int nbOfComp = 1
tuple supportOutLocal = SUPPORTClient( familycorba )
tuple supportOutCorba = createCorbaSupport( supportOutLocal )
tuple fieldScalDblLoc = createLocalFieldDouble(nbOfComp,lengthValue)
list value = [ random() for k in range(lengthValue*nbOfComp) ]
tuple valueIverif = fieldScalDblLoc.getValue()
 the only way as field support not defined
tuple fieldScalDblCorba = createCorbaFieldDouble(supportOutCorba,fieldScalDblLoc)
tuple fieldScalIntLoc = createLocalFieldInt(nbOfComp,lengthValue)
tuple fieldScalIntCorba = createCorbaFieldInt(supportOutCorba,fieldScalIntLoc)
tuple fieldVectDblLoc = createLocalFieldDouble(nbOfComp,lengthValue)
tuple fieldVectDblCorba = createCorbaFieldDouble(supportOutCorba,fieldVectDblLoc)
tuple fieldVectIntLoc = createLocalFieldInt(nbOfComp,lengthValue)
tuple fieldVectIntCorba = createCorbaFieldInt(supportOutCorba,fieldVectIntLoc)

Function Documentation

def batchmode_medcorba_test.AnalyzeField (   field)
def batchmode_medcorba_test.getMeshObjectFromStudy (   meshName)
def batchmode_medcorba_test.getFieldDoubleObjectFromStudy (   number,
  subnumber 
)
def batchmode_medcorba_test.getFieldIntObjectFromStudy (   number,
  subnumber 
)
def batchmode_medcorba_test.getMedObjectFromStudy (   file)

Variable Documentation

tuple batchmode_medcorba_test::filePath = os.environ["MED_ROOT_DIR"]
tuple batchmode_medcorba_test.poa = batchmode_salome.orb.resolve_initial_references("RootPOA")
tuple batchmode_medcorba_test.poaManager = poa._get_the_POAManager()
batchmode_medcorba_test.studyCurrent = batchmode_salome.myStudyName
batchmode_medcorba_test.studyCurrentId = batchmode_salome.myStudyId
string batchmode_medcorba_test.fileName = "cube_hexa8_quad4.med"
tuple batchmode_medcorba_test.med_comp = batchmode_salome.lcc.FindOrLoadComponent("FactoryServer", "MED")
tuple batchmode_medcorba_test.med_obj = getMedObjectFromStudy(fileName)
tuple batchmode_medcorba_test.nbMeshes = med_obj.getNumberOfMeshes()
tuple batchmode_medcorba_test.nbFields = med_obj.getNumberOfFields()
tuple batchmode_medcorba_test.meshNames = med_obj.getMeshNames()
tuple batchmode_medcorba_test.meshcorba = getMeshObjectFromStudy(meshName)
tuple batchmode_medcorba_test.nbNodes = meshcorba.getNumberOfNodes()
tuple batchmode_medcorba_test.spaceDim = meshcorba.getSpaceDimension()
tuple batchmode_medcorba_test.nbFam = meshcorba.getNumberOfFamilies(entity)
tuple batchmode_medcorba_test.familycorba = meshcorba.getFamily(entity,j+1)
tuple batchmode_medcorba_test.familyName = familycorba.getName()
tuple batchmode_medcorba_test.familyDescription = familycorba.getDescription()
tuple batchmode_medcorba_test.familyEntity = familycorba.getEntity()
tuple batchmode_medcorba_test.familyBool = familycorba.isOnAllElements()
tuple batchmode_medcorba_test.familyIdentifier = familycorba.getIdentifier()
tuple batchmode_medcorba_test.nbOfAtt = familycorba.getNumberOfAttributes()
tuple batchmode_medcorba_test.attributesids = familycorba.getAttributesIdentifiers()
tuple batchmode_medcorba_test.attributesvals = familycorba.getAttributesValues()
tuple batchmode_medcorba_test.types = familycorba.getTypes()
tuple batchmode_medcorba_test.nbOfElmtsOfType = familycorba.getNumberOfElements(type)
tuple batchmode_medcorba_test.number = familycorba.getNumber(type)
tuple batchmode_medcorba_test.lengthValue = familycorba.getNumberOfElements(SALOME_MED.MED_ALL_ELEMENTS)
list batchmode_medcorba_test::value = [ random() for k in range(lengthValue*nbOfComp) ]
tuple batchmode_medcorba_test::valueIverif = fieldScalDblLoc.getValue()

the only way as field support not defined

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS