def GenKernel(): dv=pybnlib.Displacement3DV() ddv=pybnlib.doubleV() pybnlib.GenZCylinder( dv, ddv, 3, 2) ext=pybnlib.Extnent3D() ext.i=ext.j=ext.k=65 pv=pybnlib.Position3DV(1) return dv, ddv, ext, pv , pybnlib.doubleV()
# Bojan Nikolic <*****@*****.**>, <*****@*****.**> # July 2007 # # Testing of the Kernel generation scripts from setup import * from itertools import izip import numarray import pybnlib import kernel3dutils dp=pybnlib.Displacement3DV() dc=pybnlib.doubleV() pybnlib.GenGaussCylinder(dp,dc, 5, 1, 15, 0,0)