2022.4+26187-e1209cf7 Apr 14, 2022

11.15  Mesh Import

Public Member Functions

void 

print_error (const char *err)

 

Print a message into the cubit message system.

 

int 

add_nodes (int dimension, int num_nodes, const std::vector< double > &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 More...

 

int 

add_elements (ElementType element_type, int number_of_elements, const std::vector< unsigned int > &elem_connectivity)

 

add elements of a single type the start id of the first element is returned this returned id can be used in other functions More...

 

int 

create_block (int dim, int pref_id, bool &is_new)

 

create a block with a preferred id the assigned id is returned

 

bool 

add_elements_to_block (int block_id, int start_index, int end_index)

 

add a group of elements to a block More...

 

bool 

create_nodeset (int id)

 

create a nodeset with a specified id

 

bool 

add_nodes_to_nodeset (int nodeset_id, int num, const std::vector< int > &node_ids)

 

add a group of nodes to a nodeset More...

 

bool 

create_sideset (int id)

 

create a sideset with a specified id the assigned id is returned

 

bool 

add_elements_to_sideset (int sideset_id, int num, const std::vector< int > &elem_ids, const std::vector< int > &side_indices)

 

add a group of sides to a sidset sides are specified by element ids and a side index More...

 

Member Function Documentation
add_elements()

 int add_elements ( ElementType  element_type, int  number_of_elements, const std::vector< unsigned int > &  elem_connectivity  )

add elements of a single type the start id of the first element is returned this returned id can be used in other functions

mi.add_elements(cubit.HEX, 1, [1,2,3,4,5,6,7,8])


add_elements_to_block()

 bool add_elements_to_block ( int  block_id, int  start_index, int  end_index  )

add a group of elements to a block

mi.add_elements_to_block(1, 1, 100)


add_elements_to_sideset()

 bool add_elements_to_sideset ( int  sideset_id, int  num, const std::vector< int > &  elem_ids, const std::vector< int > &  side_indices  )

add a group of sides to a sidset sides are specified by element ids and a side index

mi.add_elements_to_sideset(1, 4, [1,2,3,4], [1,1,1,1])


add_nodes()

 int add_nodes ( int  dimension, int  num_nodes, const std::vector< double > &  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

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])


add_nodes_to_nodeset()

 bool add_nodes_to_nodeset ( int  nodeset_id, int  num, const std::vector< int > &  node_ids  )

add a group of nodes to a nodeset

mi.add_nodes_to_nodeset(1, 4, [1,2,3,4])