Back to index

salome-med  6.5.0
Variables
med_test_grid Namespace Reference

Variables

list filePath = os.environ["MED_ROOT_DIR"]
tuple medFile = os.path.join(filePath, "test19.med")
tuple md = MEDFILEBROWSER(medFile)
tuple nbMeshes = md.getNumberOfMeshes()
tuple mesh_name = md.getMeshName(0)
 test "CartGrid"
tuple grid = GRID(MED_DRIVER,medFile,mesh_name)
tuple I = grid.getArrayLength(1)
tuple J = grid.getArrayLength(2)
tuple K = grid.getArrayLength(3)
tuple grid_type = grid.getGridType()
tuple spaceDim = grid.getSpaceDimension()
tuple meshDim = grid.getMeshDimension()
tuple nbNodes = grid.getNumberOfNodes()
tuple coordSyst = grid.getCoordinatesSystem()
tuple mesh = grid.convertInMESH()
tuple coordinates = mesh.getCoordinates(MED_FULL_INTERLACE)
list xy = [ grid.getArrayValue(1, I-1 ) , grid.getArrayValue(2, J-1 ) ]
list xy2 = coordinates[(nbNodes-1)*spaceDim:(nbNodes*spaceDim)]
tuple nbTypesCell = grid.getNumberOfTypes(MED_CELL)
tuple types = grid.getTypes(MED_CELL)
tuple nbElemType = grid.getNumberOfElements(MED_CELL,types[0])
tuple n1 = grid.getEntityPosition(MED_NODE,10)
tuple n2 = grid.getEntityPosition(MED_NODE,16)
tuple n3 = grid.getNodeNumber(1,1,0)
tuple n4 = grid.getNodeNumber(1,0,0)
list conn1 = [n1,n2,n3,n4]
tuple Connectivity = mesh.getConnectivity(MED_NODAL,MED_CELL,types[0])
tuple ReverseConnectivity = mesh.getReverseConnectivity(MED_NODAL)
tuple ReverseConnectivityIndex = mesh.getReverseConnectivityIndex(MED_NODAL)
int n = 6
list beg = ReverseConnectivityIndex[n-1]
list end = ReverseConnectivityIndex[n]
tuple edgfecon = mesh.getConnectivity(MED_NODAL,MED_EDGE,MED_ALL_ELEMENTS)
tuple ConnectivityIndex = mesh.getConnectivityIndex(MED_DESCENDING,MED_CELL)

Variable Documentation

Definition at line 222 of file med_test_grid.py.

Definition at line 209 of file med_test_grid.py.

tuple med_test_grid.Connectivity = mesh.getConnectivity(MED_NODAL,MED_CELL,types[0])

Definition at line 211 of file med_test_grid.py.

tuple med_test_grid.ConnectivityIndex = mesh.getConnectivityIndex(MED_DESCENDING,MED_CELL)

Definition at line 236 of file med_test_grid.py.

tuple med_test_grid.coordinates = mesh.getCoordinates(MED_FULL_INTERLACE)

Definition at line 101 of file med_test_grid.py.

tuple med_test_grid.coordSyst = grid.getCoordinatesSystem()

Definition at line 95 of file med_test_grid.py.

tuple med_test_grid.edgfecon = mesh.getConnectivity(MED_NODAL,MED_EDGE,MED_ALL_ELEMENTS)

Definition at line 230 of file med_test_grid.py.

Definition at line 223 of file med_test_grid.py.

tuple med_test_grid.filePath = os.environ["MED_ROOT_DIR"]

Definition at line 36 of file med_test_grid.py.

Definition at line 55 of file med_test_grid.py.

tuple med_test_grid.grid_type = grid.getGridType()

Definition at line 75 of file med_test_grid.py.

tuple med_test_grid.I = grid.getArrayLength(1)

Definition at line 60 of file med_test_grid.py.

tuple med_test_grid.J = grid.getArrayLength(2)

Definition at line 65 of file med_test_grid.py.

tuple med_test_grid.K = grid.getArrayLength(3)

Definition at line 70 of file med_test_grid.py.

Definition at line 42 of file med_test_grid.py.

tuple med_test_grid.medFile = os.path.join(filePath, "test19.med")

Definition at line 39 of file med_test_grid.py.

tuple med_test_grid.mesh = grid.convertInMESH()

Definition at line 100 of file med_test_grid.py.

test "CartGrid"

test "maa1" which in fact is not a pure GRID

test "bodyfitted"

Definition at line 53 of file med_test_grid.py.

tuple med_test_grid.meshDim = grid.getMeshDimension()

Definition at line 85 of file med_test_grid.py.

int med_test_grid.n = 6

Definition at line 221 of file med_test_grid.py.

tuple med_test_grid.n1 = grid.getEntityPosition(MED_NODE,10)

Definition at line 127 of file med_test_grid.py.

tuple med_test_grid.n2 = grid.getEntityPosition(MED_NODE,16)

Definition at line 128 of file med_test_grid.py.

tuple med_test_grid.n3 = grid.getNodeNumber(1,1,0)

Definition at line 206 of file med_test_grid.py.

tuple med_test_grid.n4 = grid.getNodeNumber(1,0,0)

Definition at line 207 of file med_test_grid.py.

tuple med_test_grid.nbElemType = grid.getNumberOfElements(MED_CELL,types[0])

Definition at line 120 of file med_test_grid.py.

tuple med_test_grid.nbMeshes = md.getNumberOfMeshes()

Definition at line 44 of file med_test_grid.py.

tuple med_test_grid.nbNodes = grid.getNumberOfNodes()

Definition at line 90 of file med_test_grid.py.

tuple med_test_grid.nbTypesCell = grid.getNumberOfTypes(MED_CELL)

Definition at line 110 of file med_test_grid.py.

tuple med_test_grid.ReverseConnectivity = mesh.getReverseConnectivity(MED_NODAL)

Definition at line 219 of file med_test_grid.py.

tuple med_test_grid.ReverseConnectivityIndex = mesh.getReverseConnectivityIndex(MED_NODAL)

Definition at line 220 of file med_test_grid.py.

tuple med_test_grid.spaceDim = grid.getSpaceDimension()

Definition at line 80 of file med_test_grid.py.

tuple med_test_grid.types = grid.getTypes(MED_CELL)

Definition at line 115 of file med_test_grid.py.

list med_test_grid.xy = [ grid.getArrayValue(1, I-1 ) , grid.getArrayValue(2, J-1 ) ]

Definition at line 103 of file med_test_grid.py.

Definition at line 104 of file med_test_grid.py.