<s> import OpenPNM <EOL> import scipy as sp <EOL> class SurfaceTensionTest : <EOL> def setup_class ( self ) : <EOL> self . net = OpenPNM . Network . Cubic ( shape = [ <NUM_LIT:3> , <NUM_LIT:3> , <NUM_LIT:3> ] ) <EOL> self . phase = OpenPNM . Phases . GenericPhase ( network = self . net ) <EOL> self . phase [ '<STR_LIT>' ] = <NUM_LIT> <EOL> self . phase [ '<STR_LIT>' ] = <NUM_LIT> <EOL> self . phase [ '<STR_LIT>' ] = <NUM_LIT> <EOL> self . phase [ '<STR_LIT>' ] = <NUM_LIT> <EOL> self . phase [ '<STR_LIT>' ] = <NUM_LIT:0> <EOL> self . phase [ '<STR_LIT>' ] = <NUM_LIT> <EOL> def test_water ( self ) : <EOL> f = OpenPNM . Phases . models . surface_tension . water <EOL> self . phase . models . add ( propname = '<STR_LIT>' , <EOL> model = f ) <EOL> assert sp . allclose ( self . phase [ '<STR_LIT>' ] , <NUM_LIT> ) <EOL> def test_eotvos ( self ) : <EOL> f = OpenPNM . Phases . models . surface_tension . eotvos <EOL> self . phase . models . add ( propname = '<STR_LIT>' , <EOL> model = f , <EOL> k = <NUM_LIT> ) <EOL> assert sp . allclose ( self . phase [ '<STR_LIT>' ] , <NUM_LIT> ) <EOL> def test_guggenheim_katayama ( self ) : <EOL> f = OpenPNM . Phases . models . surface_tension . guggenheim_katayama <EOL> self . phase . models . add ( propname = '<STR_LIT>' , <EOL> model = f , <EOL> K2 = <NUM_LIT> , <EOL> n = <NUM_LIT:0.1> ) <EOL> assert sp . allclose ( self . phase [ '<STR_LIT>' ] , <NUM_LIT> ) <EOL> def test_brock_bird_scaling ( self ) : <EOL> f = OpenPNM . Phases . models . surface_tension . brock_bird_scaling <EOL> self . phase . models . add ( propname = '<STR_LIT>' , <EOL> model = f , <EOL> sigma_o = <NUM_LIT> , <EOL> To = <NUM_LIT> ) <EOL> assert sp . allclose ( self . phase [ '<STR_LIT>' ] , <NUM_LIT> ) </s>
