sgio.SGMesh#
- class sgio.SGMesh(points, cells, point_data=None, cell_data=None, field_data=None, point_sets=None, cell_sets=None, gmsh_periodic=None, info=None, cell_point_data=None)#
Extended mesh class that inherits from meshio.Mesh.
This class provides additional functionality and custom format support while maintaining compatibility with the original meshio.Mesh class.
- cell_point_data#
Dictionary of element nodal data (data at nodes of each element). Structure: {name: [array_for_cell_block_0, array_for_cell_block_1, …]} where each array has shape (n_elements, n_nodes_per_element, n_components). This is used for storing element_node data like strain/stress at element nodes.
- Type:
dict[str, list[np.ndarray]]
- __init__(points, cells, point_data=None, cell_data=None, field_data=None, point_sets=None, cell_sets=None, gmsh_periodic=None, info=None, cell_point_data=None)#
Methods
__init__(points, cells[, point_data, ...])cell_data_to_sets(key)Convert point_data to cell_sets.
cell_sets_to_data([data_name])copy()get_cell_block_by_type(cell_type)get_cell_data(name, cell_type)get_cells_type(cell_type)point_data_to_sets(key)Convert point_data to point_sets.
point_sets_to_data([join_char])read(path_or_buf[, file_format])write(path_or_buf[, file_format])Attributes
cell_data_dictcell_sets_dictcells_dict