Esempio n. 1
0
    def setup(self):
        surface = self.options['surface']

        self.add_subsystem('viscousdrag',
            ViscousDrag(surface=surface),
            promotes_inputs=['M', 're', 'widths', 'cos_sweep', 'lengths', 'S_ref'], promotes_outputs=['CDv'])

        # This component is generally not needed unless you want the sectional CLs
        self.add_subsystem('liftcoeff',
             LiftCoeff2D(surface=surface),
             promotes_inputs=['v', 'alpha', 'rho', 'widths', 'chords', 'sec_forces'],
             promotes_outputs=['Cl'])

        self.add_subsystem('liftdrag',
            LiftDrag(surface=surface),
            promotes_inputs=['alpha', 'sec_forces'],
            promotes_outputs=['L', 'D'])

        self.add_subsystem('coeffs',
            Coeffs(surface=surface),
            promotes_inputs=['v', 'rho', 'S_ref', 'L', 'D'],
            promotes_outputs=['CL1', 'CDi'])

        self.add_subsystem('CD',
            TotalDrag(surface=surface),
            promotes_inputs=['CDv', 'CDi'],
            promotes_outputs=['CD'])

        self.add_subsystem('CL',
            TotalLift(surface=surface),
            promotes_inputs=['CL1'],
            promotes_outputs=['CL'])
Esempio n. 2
0
    def setup(self):
        surface = self.options['surface']

        self.add_subsystem('liftcoeff',
                           LiftCoeff2D(surface=surface),
                           promotes_inputs=[
                               'v', 'alpha', 'rho', 'widths', 'chords',
                               'sec_forces'
                           ],
                           promotes_outputs=['Cl'])

        self.add_subsystem('liftdrag',
                           LiftDrag(surface=surface),
                           promotes_inputs=['alpha', 'sec_forces'],
                           promotes_outputs=['L', 'D'])

        self.add_subsystem('coeffs',
                           Coeffs(),
                           promotes_inputs=['v', 'rho', 'S_ref', 'L', 'D'],
                           promotes_outputs=['CL1', 'CDi'])

        self.add_subsystem('CL',
                           TotalLift(surface=surface),
                           promotes_inputs=['CL1'],
                           promotes_outputs=['CL'])

        self.add_subsystem('viscousdrag',
                           ViscousDrag(surface=surface),
                           promotes_inputs=[
                               'Mach_number', 're', 'widths', 'cos_sweep',
                               'lengths', 'S_ref', 't_over_c'
                           ],
                           promotes_outputs=['CDv'])

        self.add_subsystem('wavedrag',
                           WaveDrag(surface=surface),
                           promotes_inputs=[
                               'Mach_number', 'cos_sweep', 'widths', 'CL',
                               'chords', 't_over_c'
                           ],
                           promotes_outputs=['CDw'])

        self.add_subsystem('CD',
                           TotalDrag(surface=surface),
                           promotes_inputs=['CDv', 'CDi', 'CDw'],
                           promotes_outputs=['CD'])
Esempio n. 3
0
    def test(self):
        surfaces = get_default_surfaces()

        comp = LiftCoeff2D(surface=surfaces[0])

        run_test(self, comp)
Esempio n. 4
0
    def test(self):
        surfaces = get_default_surfaces()

        comp = LiftCoeff2D(surface=surfaces[0])

        run_test(self, comp, method='cs', complex_flag=True)