コード例 #1
0
 def outflow(self):
     """ Represents the flow conditions at the end of the Turbine """
     return FlowCondition(mass_flow=self.inflow.mass_flow,
                          t_total=self.t_total,
                          p_total=self.p_isentropic if self.isentropic else self.p_total,
                          medium='gas',
                          station_number=self.station_number)
コード例 #2
0
ファイル: fan.py プロジェクト: skilkis/GENX
 def outflow(self):
     return FlowCondition(
         mass_flow=self.inflow.mass_flow,
         t_total=self.t_isentropic if self.isentropic else self.t_total,
         p_total=self.p_total,
         medium='air',
         station_number='21')
コード例 #3
0
ファイル: nozzle.py プロジェクト: skilkis/GENX
 def nozzle_flow(self):
     """ Represents the flow conditions in the nozzle before the throat """
     return FlowCondition(mass_flow=self.inflow.mass_flow,
                          t_total=self.t_total,
                          p_total=self.p_total,
                          medium=self.inflow.medium,
                          station_number=self.station_number[0])
コード例 #4
0
ファイル: specparser.py プロジェクト: skilkis/GENX
 def ambient(self):
     """ Creates an ambient flow condition from specifications in the engine.cfg file """
     return FlowCondition(mach=float(self.reader['mach']),
                          p_static=float(self.reader['p_static']),
                          t_static=float(self.reader['t_static']),
                          corrected_mass_flow=self.corrected_mass_flow,
                          medium='air',
                          station_number='0')
コード例 #5
0
ファイル: nozzle.py プロジェクト: skilkis/GENX
 def outflow(self):
     """ Represents the flow conditions after the nozzle throat """
     return FlowCondition(mass_flow=self.inflow.mass_flow,
                          mach=1. if self.choked.any() else None,
                          t_static=self.t_exit,
                          p_static=self.p_exit,
                          medium=self.inflow.medium,
                          station_number=self.station_number[1])
コード例 #6
0
ファイル: combustion.py プロジェクト: skilkis/GENX
    def operating_conditions(self):
        """ Arranges the experimental data of the current engine in list of high-performance objects

        :rtype: list[OperatingCondition]
        """
        out_list = []
        for c in self.parse_data():
            name, net_thrust = c['condition'], c['net_thrust']
            inflow = FlowCondition(mass_flow=c['mass_flow_in'],
                                   p_total=c['p_in'],
                                   t_total=c['t_in'],
                                   station_number='3')
            outflow = FlowCondition(t_total=c['t_out'], station_number='4')
            out_list += [
                OperatingCondition(name=name,
                                   net_thrust=net_thrust,
                                   inflow=inflow,
                                   outflow=outflow)
            ]
        return out_list
コード例 #7
0
ファイル: fan.py プロジェクト: skilkis/GENX
    #                          medium='air',
    #                          station_number='21')

    @property
    def outflow(self):
        return FlowCondition(
            mass_flow=self.inflow.mass_flow,
            t_total=self.t_isentropic if self.isentropic else self.t_total,
            p_total=self.p_total,
            medium='air',
            station_number='21')


if __name__ == '__main__':
    ambient_conditions = FlowCondition(corrected_mass_flow=1400.,
                                       mach=0.8,
                                       t_static=216,
                                       p_static=22632,
                                       station_number='1',
                                       medium='air')
    inlet = Inlet(inflow=ambient_conditions, eta=0.98)
    obj = Fan(inflow=inlet.outflow,
              eta=0.92,
              pressure_ratio=1.6,
              station_number='2')
    print(obj.t_total)
    print(obj.p_total)

    # print(obj.p_total)
    # print(obj.t_total)
コード例 #8
0
 def outflow_bypass(self):
     return FlowCondition(mass_flow=self.mass_flow_bypass,
                          t_total=self.t_total,
                          p_total=self.p_total,
                          station_number='13',
                          medium='air')
コード例 #9
0
 def outflow_core(self):
     return FlowCondition(mass_flow=self.mass_flow_core,
                          t_total=self.t_total,
                          p_total=self.p_total,
                          station_number='21',
                          medium='air')
コード例 #10
0
 def outflow(self):
     return FlowCondition(mass_flow=self.inflow.mass_flow + self.fuel_flow,
                          t_total=self.t_total_exit,
                          p_total=self.p_total,
                          medium='gas',
                          station_number='4')
コード例 #11
0
ファイル: inlet.py プロジェクト: skilkis/GENX
 def outflow(self):
     return FlowCondition(t_total=self.t_total, p_total=self.p_total, station_number='2',
                          mass_flow=self.inflow.mass_flow, medium='air')