#NEWLINE# def setup_class( self ) : #NEWLINE# #INDENT# bp = sp . array ( [ [ 0.2 , 0.2 , 0.2 ] , [ 0.2 , 0.8 , 0.2 ] , [ 0.8 , 0.2 , 0.2 ] , [ 0.8 , 0.8 , 0.2 ] , [ 0.2 , 0.2 , 0.8 ] , [ 0.2 , 0.8 , 0.8 ] , [ 0.8 , 0.2 , 0.8 ] , [ 0.8 , 0.8 , 0.8 ] ] ) #NEWLINE# scale = 0.0001 #NEWLINE# p = ( ( sp . random . random ( [ len ( bp ) , 3 ] ) - 0.5 ) / 10000 ) #NEWLINE# bp += p #NEWLINE# self . ctrl = OpenPNM . Base . Controller ( ) #NEWLINE# self . net = OpenPNM . Network . Delaunay ( domain_size = [ scale , scale , scale ] , base_points = ( bp * scale ) ) #NEWLINE# self . net . add_boundaries ( ) #NEWLINE# Ps = self . net . pores ( ) #NEWLINE# Ts = self . net . throats ( ) #NEWLINE# fibre_rad = 5e-06 #NEWLINE# self . geo_vox = OpenPNM . Geometry . Voronoi ( network = self . net , pores = Ps , throats = Ts , fibre_rad = fibre_rad , voxel_vol = True , name = 'vor_vox' )