/[ascend]/trunk/pygtk/test.py
ViewVC logotype

Diff of /trunk/pygtk/test.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1041 by johnpye, Thu Jan 4 23:21:20 2007 UTC revision 1042 by johnpye, Fri Jan 5 04:53:38 2007 UTC
# Line 392  class TestExtPy(AscendSelfTester): Line 392  class TestExtPy(AscendSelfTester):
392          M = self._run('extpytest',filename='johnpye/extpy/extpytest.a4c')          M = self._run('extpytest',filename='johnpye/extpy/extpytest.a4c')
393    
394  #-------------------------------------------------------------------------------  #-------------------------------------------------------------------------------
395    # Testing of saturated steam properties library (iapwssatprops.a4c)
396    
397    class TestSteam(AscendSelfTester):
398        def testiapwssatprops1(self):
399            M = self._run('testiapwssatprops1',filename='steam/iapwssatprops.a4c')
400        def testiapwssatprops2(self):
401            M = self._run('testiapwssatprops2',filename='steam/iapwssatprops.a4c')
402        def testiapwssatprops3(self):
403            M = self._run('testiapwssatprops3',filename='steam/iapwssatprops.a4c')
404    
405    
406    
407    #-------------------------------------------------------------------------------
408  # Testing of freesteam external steam properties functions  # Testing of freesteam external steam properties functions
409    
410  with_freesteam = True  with_freesteam = True
# Line 473  class TestIDADENSE(Ascend): Line 486  class TestIDADENSE(Ascend):
486          print "v = %f" % M.v          print "v = %f" % M.v
487          M.run(T.getMethod('self_test'))          M.run(T.getMethod('self_test'))
488    
489      def testlotkaDENSE(self):      def testlotka(self):
490          self.L.load('johnpye/lotka.a4c')          self.L.load('johnpye/lotka.a4c')
491          M = self.L.findType('lotka').getSimulation('sim')          M = self.L.findType('lotka').getSimulation('sim')
492          M.setSolver(ascpy.Solver("QRSlv"))          M.setSolver(ascpy.Solver("QRSlv"))
# Line 512  class TestIDADENSE(Ascend): Line 525  class TestIDADENSE(Ascend):
525          assert abs(float(M.y2) - 2.0437e-13) < 2e-14          assert abs(float(M.y2) - 2.0437e-13) < 2e-14
526          assert abs(float(M.y3) - 1.0) < 1e-5          assert abs(float(M.y3) - 1.0) < 1e-5
527    
528      def testkryxDENSE(self):      def testkryx(self):
529          self.L.load('johnpye/idakryx.a4c')          self.L.load('johnpye/idakryx.a4c')
530          M = self.L.findType('idakryx').getSimulation('sim')          M = self.L.findType('idakryx').getSimulation('sim')
531          M.setSolver(ascpy.Solver('QRSlv'))          M.setSolver(ascpy.Solver('QRSlv'))

Legend:
Removed from v.1041  
changed lines
  Added in v.1042

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22