#NEWLINE# def test_electrical_conductance( self ) : #NEWLINE# #INDENT# self . phase [ 'pore.conductivity' ] = 1 #NEWLINE# self . geo [ 'pore.area' ] = 1 #NEWLINE# self . geo [ 'pore.diameter' ] = 1 #NEWLINE# self . geo [ 'throat.area' ] = 1 #NEWLINE# self . geo [ 'throat.length' ] = 0.0001 #NEWLINE# f = OpenPNM . Physics . models . electrical_conductance . series_resistors #NEWLINE# self . phys . models . add ( propname = 'throat.electrical_conductance' , pore_conductivity = 'pore.conductivity' , model = self ) #NEWLINE# a = 0.99990001 #NEWLINE# assert sp . allclose ( self . phys [ 'throat.electrical_conductance' ] [ 0 ] , a )