|
print_error |
Print a message into the cubit message system. |
int |
add_nodes |
add nodes with a given dimension the start id of the first node is returned this returned id can be used in other functions |
int |
add_elements |
add elements of a single type the start id of the first element is returned this returned id can be used in other functions |
int |
create_block |
create a block with a preferred id the assigned id is returned |
Bool |
add_elements_to_block |
add a group of elements to a block |
int |
create_nodeset |
create a nodeset with a preferred id the assigned id is returned |
Bool |
add_nodes_to_nodeset |
add a group of nodes to a nodeset |
int |
create_sideset |
create a sideset with a preferred id the assigned id is returned |
Bool |
add_elements_to_sideset |
add a group of sides to a sidset sides are specified by element ids and a side index |
mi = cubit.MeshImport()
mi.add_nodes(3, 8, [0,0,0,1,0,0,1,1,0,0,1,0,0,0,1,1,0,1,1,1,1,0,1,0])
mi.add_elements(cubit.HEX, 1, [1,2,3,4,5,6,7,8])
mi.add_nodes_to_nodeset(1, 4, [1,2,3,4])
mi.add_elements_to_sideset(1, 4, [1,2,3,4], [1,1,1,1])