예제 #1
0
 def __init__(self, T3t=k.T3t, T0=k.T0, Pa=k.Pa, delta=0.01, verbose=True):
     self.delta = delta
     self.data = Problem1.empty_data_array(delta)
     self.T3t = T3t
     self.T0 = T0
     self.Pa = Pa
     self.verbose = verbose
     self.P2 = Problem2()
	def __init__(self, T3t=k.T3t, T0=k.T0, Pa=k.Pa, delta=0.01, gamma=k.GAMMA, verbose=True):
		self.delta = delta
		self.data = Problem1.empty_data_array(delta)
		self.P1 = Problem1(verbose=False)
		self.SF_P1, self.M0_P1 = self.P1.SF, self.P1.M0
		self.M0, self.SF = 0, 0
		self.air = pm.get('ig.air')
		self.T3t = T3t
		self.T0 = T0
		self.Pa = Pa
		self.M4 = 2
		self.gamma = gamma
		self.verbose = verbose
		self.ideal_nozzle()
예제 #3
0
 def __init__(self,
              T3t=k.T3t,
              T0=k.T0,
              Pa=k.Pa,
              delta=0.01,
              gamma=k.GAMMA,
              verbose=True):
     self.delta = delta
     self.data = Problem1.empty_data_array(delta)
     self.P1 = Problem1(verbose=False)
     self.SF_P1, self.M0_P1 = self.P1.SF, self.P1.M0
     self.air = pm.get('ig.air')
     self.T3t = T3t
     self.T0 = T0
     self.Pa = Pa
     self.gamma = gamma
     self.verbose = verbose
     self.M0_star = self.equation_A()
     #self.optimize()
     self.M4 = 2.53
     self.A = self.equation_B(self.M4)
     #self.nozzle_area_ratio = self.equation_B()
     self.execute()