<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import hexcalc
import numpy
N = 10000000
dmy1 = numpy.array([1,2,3,4,5,6,7,8],int)
dmy2 = numpy.ones(N,int)

el = numpy.asfortranarray(numpy.array(numpy.outer(dmy1,dmy2).T,int))
nodes = numpy.asfortranarray(numpy.array([[0,0,0],[1,0,0],[1,1,0],[0,1,0],[0,0,1.3],
    [1,0,1.3],[1,1,1],[0,1,1]],float))
vol = numpy.asfortranarray(numpy.zeros((N,8),float))
vtot = numpy.zeros(N,float)
cent = numpy.asfortranarray(numpy.zeros((N,3),float))

hexcalc.hexcalc(el,nodes,vol,vtot,cent)
print cent
</pre></body></html>