Example #1
0
    def setup(self, N=5):
        exec parse_variables(Wing.__doc__)

        self.wing = WingGP.setup(self, N=N)
        with SignomialsEnabled():
            constraints = [mw * (1 + 2 / self.planform["AR"]) >= 2 * np.pi]

        return self.wing, constraints
Example #2
0
    def setup(self, N=5):

        self.wing = WingGP.setup(self, N=N)
        mw = Variable("m_w", "-", "span wise effectiveness")

        with SignomialsEnabled():
            constraints = [mw * (1 + 2 / self.planform["AR"]) >= 2 * np.pi]

        return self.wing, constraints
Example #3
0
    def setup(self, N=3):
        exec parse_variables(VerticalTail.__doc__)

        self.ascs = Wing.setup(self, N)
        self.planform.substitutions.update(
            {self.planform.tau: 0.08, self.planform.lam: 0.8,
             self.planform.AR: 4})
        if self.fillModel:
            self.foam.substitutions.update({self.foam.Abar: 0.0548,
                                            self.foam.material.rho: 0.024})

        return self.ascs
Example #4
0
    def setup(self, N=3):
        exec parse_variables(HorizontalTail.__doc__)

        self.ascs = Wing.setup(self, N)
        self.planform.substitutions.update({
            self.planform.AR: 4,
            self.planform.lam: 0.8
        })
        if self.fillModel:
            self.foam.substitutions.update({
                self.foam.Abar: 0.0548,
                self.foam.material.rho: 0.024
            })

        return self.ascs, mh * (1 + 2.0 / self.planform["AR"]) <= 2 * np.pi