Version: 6.3.1
Variables

Package testRenumbering

Variables

tuple srcdir = os.getenv("srcdir")
 *************** *** TEST 2D *** ***************
tuple med_root = os.getenv("MED_ROOT_DIR")
string dir_renumber = "./renumber"
tuple dir_mesh = os.path.join( srcdir, "../../resources")
string filename = "Test2D.med"
 *** Avec polygone ***
string meshname = "Mesh_1"
string method = "BOOST"
string string_to_execute = "'"
tuple m = MESH(MED_DRIVER,dir_mesh+"/out_"+filename,meshname)
list field_ini = [2,3,12,13,14,15,4,5,6,7,8,9,16,17,0,1,10,11]
tuple s = m.getSupportOnAll(MED_CELL)
tuple f = FIELDDOUBLE(s,2)
tuple id = f.addDriver(MED_DRIVER,dir_mesh+"/out_"+filename,"Test field")
 field = True
tuple nbcell2dboost = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
list connectivite = [2,6,13,11,11,13,14,12,6,5,15,13,12,14,10,4,13,15,16,14,5,1,7,15,14,16,9,10,15,7,8,16,16,8,3,9]
list connectivite_index = [1,5,9,13,17,21,25,29,33,37]
tuple conn = m.getConnectivity(MED_NODAL,MED_CELL,MED_QUAD4)
tuple conn_index = m.getConnectivityIndex(MED_NODAL,MED_CELL)
tuple conn2dboost = (list(conn)==connectivite)
tuple conn_index2dboost = (list(conn_index)==connectivite_index)
tuple Boost2D = conn2dboostandconn_index2dboostand(nbcell2dboost==9)
tuple nbcell2dmetis = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple conn2dmetis = (list(conn)==connectivite)
tuple conn_index2dmetis = (list(conn_index)==connectivite_index)
tuple Metis2D = conn2dmetisandconn_index2dmetisand(nbcell2dmetis==9)
tuple nbcell2dpolyboost = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple conn2dpolyboost = (list(conn)==connectivite)
tuple conn_index2dpolyboost = (list(conn_index)==connectivite_index)
tuple PolyBoost2D = conn2dpolyboostandconn_index2dpolyboostand(nbcell2dpolyboost==9)
tuple nbcell2dpolymetis = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple conn2dpolymetis = (list(conn)==connectivite)
tuple conn_index2dpolymetis = (list(conn_index)==connectivite_index)
tuple PolyMetis2D = conn2dpolymetisandconn_index2dpolymetisand(nbcell2dpolymetis==9)
tuple nbcell3dboost = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple conn3dboost = (list(conn)==connectivite)
tuple conn_index3dboost = (list(conn_index)==connectivite_index)
tuple Boost3D = conn3dboostandconn_index3dboostand(nbcell3dboost==8)
tuple nbcell3dmetis = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple conn3dmetis = (list(conn)==connectivite)
tuple conn_index3dmetis = (list(conn_index)==connectivite_index)
tuple Metis3D = conn3dmetis&conn_index3dmetis&(nbcell3dmetis==8)
tuple nbcell3dpolyboost = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple conn3dpolyboost = (connectivite==list(conn))
tuple conn_index3dpolyboost = (connectivite_index==list(conn_index))
tuple PolyBoost3D = (conn3dpolyboost and conn_index3dpolyboost and (nbcell3dpolyboost==8))
tuple nbcell3dpolymetis = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple conn3dpolymetis = (list(conn)==connectivite)
tuple conn_index3dpolymetis = (list(conn_index)==connectivite_index)
tuple PolyMetis3D = (conn3dpolymetis and conn_index3dpolymetis and (nbcell3dpolymetis==8))

Variable Documentation

tuple testRenumbering.srcdir = os.getenv("srcdir")

*************** *** TEST 2D *** ***************

tuple testRenumbering.med_root = os.getenv("MED_ROOT_DIR")
string testRenumbering::dir_renumber = "./renumber"
string testRenumbering::dir_mesh = os.path.join( srcdir, "../../resources")
string testRenumbering::filename = "Test2D.med"

*** Avec polygone ***

*** Avec polyedres ***

*************** *** TEST 3D *** ***************

23,13,5,18,27,26,14,22,23,27,22,13,13,22,14,5,5,14,26,18,18,26,27,23, 21,27,26,10,11,3,20,24,21,11,24,27,27,24,20,26,26,20,3,10,10,3,11,21, 12,25,27,21,4,11,24,19,12,4,19,25,25,19,24,27,27,24,11,21,21,11,4,12, 9,23,18,1,21,10,26,27,9,21,27,23,23,27,26,18,18,26,10,1,1,10,21,9, 2,17,23,9,12,21,27,25,2,12,25,17,17,25,27,23,23,27,21,9,9,21,12,2, 25,16,22,27,19,24,15,8,25,19,8,16,16,8,15,22,22,15,24,27,27,24,19,25, 17,6,13,23,25,27,22,16,17,25,16,6,6,16,22,13,13,22,27,23,23,27,25,17, 27,22,14,26,24,20,7,15,27,24,15,22,22,15,7,14,14,7,20,26,26,20,24,27,

string testRenumbering::meshname = "Mesh_1"
string testRenumbering::method = "BOOST"
tuple testRenumbering::m = MESH(MED_DRIVER,dir_mesh+"/out_"+filename,meshname)
list testRenumbering.field_ini = [2,3,12,13,14,15,4,5,6,7,8,9,16,17,0,1,10,11]
tuple testRenumbering.s = m.getSupportOnAll(MED_CELL)
tuple testRenumbering.f = FIELDDOUBLE(s,2)
tuple testRenumbering.id = f.addDriver(MED_DRIVER,dir_mesh+"/out_"+filename,"Test field")
tuple testRenumbering::field = True
tuple testRenumbering.nbcell2dboost = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
list testRenumbering::connectivite = [2,6,13,11,11,13,14,12,6,5,15,13,12,14,10,4,13,15,16,14,5,1,7,15,14,16,9,10,15,7,8,16,16,8,3,9]
list testRenumbering::connectivite_index = [1,5,9,13,17,21,25,29,33,37]
tuple testRenumbering::conn = m.getConnectivity(MED_NODAL,MED_CELL,MED_QUAD4)
tuple testRenumbering::conn_index = m.getConnectivityIndex(MED_NODAL,MED_CELL)
tuple testRenumbering.Boost2D = conn2dboostandconn_index2dboostand(nbcell2dboost==9)
tuple testRenumbering.nbcell2dmetis = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple testRenumbering.Metis2D = conn2dmetisandconn_index2dmetisand(nbcell2dmetis==9)
tuple testRenumbering.nbcell2dpolyboost = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple testRenumbering.PolyBoost2D = conn2dpolyboostandconn_index2dpolyboostand(nbcell2dpolyboost==9)
tuple testRenumbering.nbcell2dpolymetis = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple testRenumbering.PolyMetis2D = conn2dpolymetisandconn_index2dpolymetisand(nbcell2dpolymetis==9)
tuple testRenumbering.nbcell3dboost = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple testRenumbering.Boost3D = conn3dboostandconn_index3dboostand(nbcell3dboost==8)
tuple testRenumbering.nbcell3dmetis = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple testRenumbering.nbcell3dpolyboost = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple testRenumbering.nbcell3dpolymetis = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
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