Back to index

salome-med  6.5.0
Variables
testRenumbering Namespace Reference

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.Boost2D = conn2dboostandconn_index2dboostand(nbcell2dboost==9)

Definition at line 71 of file testRenumbering.py.

tuple testRenumbering.Boost3D = conn3dboostandconn_index3dboostand(nbcell3dboost==8)

Definition at line 148 of file testRenumbering.py.

tuple testRenumbering.conn = m.getConnectivity(MED_NODAL,MED_CELL,MED_QUAD4)

Definition at line 67 of file testRenumbering.py.

Definition at line 69 of file testRenumbering.py.

Definition at line 85 of file testRenumbering.py.

Definition at line 106 of file testRenumbering.py.

Definition at line 121 of file testRenumbering.py.

Definition at line 146 of file testRenumbering.py.

Definition at line 162 of file testRenumbering.py.

Definition at line 201 of file testRenumbering.py.

Definition at line 224 of file testRenumbering.py.

tuple testRenumbering.conn_index = m.getConnectivityIndex(MED_NODAL,MED_CELL)

Definition at line 68 of file testRenumbering.py.

Definition at line 70 of file testRenumbering.py.

Definition at line 86 of file testRenumbering.py.

Definition at line 107 of file testRenumbering.py.

Definition at line 122 of file testRenumbering.py.

Definition at line 147 of file testRenumbering.py.

Definition at line 163 of file testRenumbering.py.

Definition at line 202 of file testRenumbering.py.

Definition at line 225 of file testRenumbering.py.

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]

Definition at line 65 of file testRenumbering.py.

list testRenumbering.connectivite_index = [1,5,9,13,17,21,25,29,33,37]

Definition at line 66 of file testRenumbering.py.

string testRenumbering.dir_mesh = os.path.join( srcdir, "../../resources")

Definition at line 34 of file testRenumbering.py.

string testRenumbering.dir_renumber = "./renumber"

Definition at line 33 of file testRenumbering.py.

Definition at line 55 of file testRenumbering.py.

tuple testRenumbering.field = True

Definition at line 58 of file testRenumbering.py.

list testRenumbering.field_ini = [2,3,12,13,14,15,4,5,6,7,8,9,16,17,0,1,10,11]

Definition at line 53 of file testRenumbering.py.

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,

Definition at line 44 of file testRenumbering.py.

tuple testRenumbering.id = f.addDriver(MED_DRIVER,dir_mesh+"/out_"+filename,"Test field")

Definition at line 56 of file testRenumbering.py.

tuple testRenumbering.m = MESH(MED_DRIVER,dir_mesh+"/out_"+filename,meshname)

Definition at line 51 of file testRenumbering.py.

tuple testRenumbering.med_root = os.getenv("MED_ROOT_DIR")

Definition at line 30 of file testRenumbering.py.

string testRenumbering.meshname = "Mesh_1"

Definition at line 45 of file testRenumbering.py.

string testRenumbering.method = "BOOST"

Definition at line 48 of file testRenumbering.py.

tuple testRenumbering.Metis2D = conn2dmetisandconn_index2dmetisand(nbcell2dmetis==9)

Definition at line 87 of file testRenumbering.py.

Definition at line 164 of file testRenumbering.py.

tuple testRenumbering.nbcell2dboost = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)

Definition at line 64 of file testRenumbering.py.

tuple testRenumbering.nbcell2dmetis = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)

Definition at line 80 of file testRenumbering.py.

tuple testRenumbering.nbcell2dpolyboost = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)

Definition at line 101 of file testRenumbering.py.

tuple testRenumbering.nbcell2dpolymetis = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)

Definition at line 116 of file testRenumbering.py.

tuple testRenumbering.nbcell3dboost = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)

Definition at line 141 of file testRenumbering.py.

tuple testRenumbering.nbcell3dmetis = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)

Definition at line 157 of file testRenumbering.py.

tuple testRenumbering.nbcell3dpolyboost = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)

Definition at line 189 of file testRenumbering.py.

tuple testRenumbering.nbcell3dpolymetis = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)

Definition at line 212 of file testRenumbering.py.

tuple testRenumbering.PolyBoost2D = conn2dpolyboostandconn_index2dpolyboostand(nbcell2dpolyboost==9)

Definition at line 108 of file testRenumbering.py.

Definition at line 203 of file testRenumbering.py.

tuple testRenumbering.PolyMetis2D = conn2dpolymetisandconn_index2dpolymetisand(nbcell2dpolymetis==9)

Definition at line 123 of file testRenumbering.py.

Definition at line 226 of file testRenumbering.py.

tuple testRenumbering.s = m.getSupportOnAll(MED_CELL)

Definition at line 54 of file testRenumbering.py.

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


*** TEST 2D ***

Definition at line 29 of file testRenumbering.py.

Definition at line 49 of file testRenumbering.py.