示例#1
0
 def setUp(self):
     self.fs = CanteraFlowStation()
     self.fs.setDryAir()
     self.fs.setTotalTP(1100, 400)
     self.fs.W = 100.
     self.fs.add_reactant("Jet-A(g)")
     self.fs.burn("Jet-A(g)", 2.5, -642)  
示例#2
0
    def test_copyFS(self): 

        #print "TESTING"

        self.new_fs = CanteraFlowStation()

        self.new_fs.copy_from(self.fs)

        self.assertAlmostEqual(self.new_fs.Tt, 518)
        self.assertAlmostEqual(self.new_fs.Pt, 15)
示例#3
0
 def setUp(self): 
     """Initialization function called before every test function""" 
     self.fs = CanteraFlowStation()
     self.fs.W = 100
     self.fs.setDryAir()
     self.fs.setTotalTP(518, 15)
示例#4
0
 def setUp(self):
     self.fs = CanteraFlowStation()
     self.fs.W = 100.
     self.fs.setDryAir()
     self.fs.setTotalTP(1100, 400)