58. misc — Python equivalents of the functions in lib.misc

Python equivalents of the functions in lib.misc

The functions in this module should be exact emulations of the external functions in the compiled library.

misc.nodalSum(val, elems, work, avg)

Compute the nodal sum of values defined on elements.

val : (nelems,nplex,nval) values at points of elements. elems : (nelems,nplex) nodal ids of points of elements. work : (nnod,nval) returns the summed values at the nodes

On return each value is replaced with the sum of values at that node. If avg=True, the values are replaced with the average instead.

The summation is done inplace, so there is no return value!

Documentation

Previous topic

57. timer — A timer class.

Next topic

pyFormex file formats

This Page