utilities

The compas_fea package’s supporting utilities and functions.

functions

colorbar(fsc[, input, type])

Creates RGB color information from -1 to 1 scaled values.

combine_all_sets(sets_a, sets_b)

Combines two nested lists of node or element sets into the minimum ammount of set combinations.

group_keys_by_attribute(adict, name[, tol])

Make group keys by shared attribute values.

group_keys_by_attributes(adict, names[, tol])

Make group keys by shared values of attributes.

identify_ranges(data)

Identifies continuous interger series from a list and returns a list of ranges.

mesh_from_shell_elements(structure)

Returns a Mesh datastructure object from a Structure's ShellElement objects.

network_order(start, structure, network)

Extract node and element orders from a Network for a given start-point.

normalise_data(data, cmin, cmax)

Normalise a vector of data to between -1 and 1.

principal_stresses(data)

Performs principal stress calculations solving the eigenvalues problem.

process_data(data, dtype, iptype, nodal, ...)

Process the raw data.

postprocess(nodes, elements, ux, uy, uz, ...)

Post-process data from analysis results for given step and field.

meshing

discretise_faces(vertices, faces, target[, ...])

Make discretised triangles from input coarse triangles data.

extrude_mesh(structure, mesh, layers, ...)

Extrudes a Mesh and adds elements to a Structure.

tets_from_vertices_faces(vertices, faces[, ...])

Generate tetrahedron points and elements with MeshPy (TetGen).