API documentation

Index

AsterReader.aster_read_meshFunction
aster_read_mesh(filename, mesh_name=nothing)

Parse code aster .med file and return mesh data in a dictionary.

Dictionary contains additional dictionaries nodes, node_sets, elements, element_sets, element_types, surface_sets and surface_types.

If mesh file contains several meshes, one must provide the mesh name as additional argument or expcetion will be thrown.

AsterReader.get_element_setsMethod
get_element_sets(med, mesh_name)

Return element sets from med file. Return type is a dictionary, where the key is the element set id number (integer) and value is a vector of strings, containing human-readable name for element set.

Notes

One element set id can have multiple names.

AsterReader.parse_node_idMethod
parse_node_id(node_name)

Return id number from node name. Usually the node name contains the id number, i.e. N123 => 123 and so on.