#NEWLINE# def test_voronoi_vert( self ) : #NEWLINE# #INDENT# self . ctrl . purge_object ( self . geo_vox ) #NEWLINE# fibre_rad = 5e-06 #NEWLINE# Ps = self . net . pores ( ) #NEWLINE# Ts = self . net . throats ( ) #NEWLINE# self . geo_vert = OpenPNM . Geometry . Voronoi ( network = self . net , pores = Ps , throats = Ts , fibre_rad = fibre_rad , voxel_vol = False , name = 'vor_vert' ) #NEWLINE# self . geo_vert . models . add ( propname = 'throat.area2' , model = gm . throat_area . voronoi ) #NEWLINE# assert sp . all ( ( sp . absolute ( ( 1 - ( self . geo_vert [ 'throat.area2' ] / self . geo_vert [ 'throat.area' ] ) ) ) < 0.05 ) ) #NEWLINE# self . geo_vert . models . add ( propname = 'throat.centroid2' , model = gm . throat_centroid . centre_of_mass ) #NEWLINE# assert ( sp . absolute ( sp . sum ( ( self . geo_vert [ 'throat.centroid' ] - self . geo_vert [ 'throat.centroid2' ] ) ) ) < 1e-10 ) #NEWLINE# self . geo_vert . models . add ( propname = 'throat.perimeter2' , model = gm . throat_perimeter . voronoi ) #NEWLINE# assert sp . all ( ( sp . absolute ( ( 1 - ( self . geo_vert [ 'throat.perimeter2' ] / self . geo_vert [ 'throat.perimeter' ] ) ) ) < 0.05 ) )