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

Diff of /trunk/test.py

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

revision 1098 by johnpye, Wed Jan 10 06:00:06 2007 UTC revision 1100 by johnpye, Wed Jan 10 06:32:31 2007 UTC
# Line 426  class TestSteam(AscendSelfTester): Line 426  class TestSteam(AscendSelfTester):
426  #   def testiapwssat1(self):  #   def testiapwssat1(self):
427  #       M = self._run('testiapwssat1',filename='steam/iapwssat.a4c')  #       M = self._run('testiapwssat1',filename='steam/iapwssat.a4c')
428    
429  ## @TODO fix bug with unpivoted node[i].hg_expr eqns.  # @TODO fix bug with unpivoted node[i].hg_expr eqns.
430  #   def testdsgsat(self):      def testdsgsat(self):
431  #       self.L.load('steam/dsgsat2.a4c')          self.L.load('steam/dsgsat2.a4c')
432  #       T = self.L.findType('dsgsat2')          T = self.L.findType('dsgsat2')
433  #       M = T.getSimulation('sim')          M = T.getSimulation('sim',False)
434  #       M.solve(ascpy.Solver('QRSlv'),ascpy.SolverReporter())          try:
435  #       M.run(T.getMethod('fixed_states'))              M.run(T.getMethod('on_load'))
436  #       I = ascpy.Integrator(M)          except:
437  #       I.setEngine('LSODE')              pass
438  #       I.setReporter(ascpy.IntegratorReporterConsole(I))          M.solve(ascpy.Solver('QRSlv'),ascpy.SolverReporter())
439  #       I.setReporter(ascpy.IntegratorReporterConsole(I))          M.run(T.getMethod('fixed_states'))
440  #       I.setLinearTimesteps(ascpy.Units("s"), 0, 5, 100)          I = ascpy.Integrator(M)
441  #       I.setMinSubStep(0.01)          I.setEngine('LSODE')
442  #       I.setMaxSubStep(0.02)          I.setReporter(ascpy.IntegratorReporterConsole(I))
443  #       I.setInitialSubStep(0.1)          I.setReporter(ascpy.IntegratorReporterConsole(I))
444  #       I.analyse()          I.setLinearTimesteps(ascpy.Units("s"), 0, 5, 100)
445  #       I.solve()          I.setMinSubStep(0.01)
446  #       #M.checkStructuralSingularity() causes crash!          I.setMaxSubStep(0.02)
447            I.setInitialSubStep(0.1)
448            I.analyse()
449            I.solve()
450            I.solve()
451            #M.checkStructuralSingularity() causes crash!
452                    
453  #-------------------------------------------------------------------------------  #-------------------------------------------------------------------------------
454  # Testing of freesteam external steam properties functions  # Testing of freesteam external steam properties functions

Legend:
Removed from v.1098  
changed lines
  Added in v.1100

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