8.15.2 Functions defined in the fe module

mergeNodes( nodes)
Merge all the nodes of a list of node sets.

Each item in nodes is a Coords array. The return value is a tuple with: - the coordinates of all unique nodes, - a list of indices translating the old node numbers to the new.

mergeModels( femodels)
Merge all the nodes of a list of FE models.

Each item in femodels is a (coords,elems) tuple. The return value is a tuple with: - the coordinates of all unique nodes, - a list of elems corresponding to the input list, but with numbers referring to the new coordinates.

checkUniqueNumbers( nrs,nmin=0,nmax=None,error=None)
Check that an array contains a set of unique integers in range.

nrs is an integer array with any shape. All integers should be unique and in the range(nmin,nmax). Beware: this means that nmin <= i < nmax ! Default nmax is unlimited. Set nmin to None to error is the value to return if the tests are not passed. By default, a ValueError is raised. On success, None is returned

mergedModel( )
Returns the fe Model obtained from merging individual models.

The input arguments are (coords,elems) tuples. The return value is a merged fe Model.