コード例 #1
0
ファイル: strut.py プロジェクト: p-chambers/VAMPzero
 def cpacsExport(self, CPACSObj):
     '''
     this methods exports all parameters nested in the component. Nested Components will be called as well.
     cpacsPath must be filled
     @author: Jonas Jepsen
     @param CPACSObj: the CPACS object holding the data for export
     '''
     if self.active.getValue():
         createWing(CPACSObj, id=self.id, zeroWing=self, LoD=WING_LOD.STRUT)
         super(wing, self).cpacsExport(CPACSObj)
コード例 #2
0
ファイル: strut.py プロジェクト: codingpoets/VAMPzero
 def cpacsExport(self, CPACSObj):
     """
     this methods exports all parameters nested in the component. Nested Components will be called as well.
     cpacsPath must be filled
     @author: Jonas Jepsen
     @param CPACSObj: the CPACS object holding the data for export
     """
     if self.active.getValue():
         createWing(CPACSObj, id=self.id, zeroWing=self, LoD=WING_LOD.STRUT)
         super(wing, self).cpacsExport(CPACSObj)
コード例 #3
0
ファイル: wing.py プロジェクト: techtronics/VAMPzero
    def cpacsExport(self, CPACSObj):
        '''
        this methods exports all parameters nested in the component. Nested Components will be called as well.
        cpacsPath must be filled
        @author: Jonas Jepsen
        @param CPACSObj: the CPACS object holding the data for export
        '''
        if self.aircraft.strut.active.getValue():
            self.LoD.setValueCalc(WING_LOD.SBW)

        try:
            etaKink = self.etaKink.getValue() 
            etaEngine = self.aircraft.engine.yEngine.getValue() / self.span.getValue() * 2. 
            createWingAirfoil(CPACSObj)
            createWing(CPACSObj, id=self.id, zeroWing=self, LoD=self.LoD.getValue())        
        except ZeroDivisionError, e:
            self.log.warning('VAMPzero EXPORT: WING could not be created due to "%s"!', e)
コード例 #4
0
    def cpacsExport(self, CPACSObj):
        '''
        this methods exports all parameters nested in the component. Nested Components will be called as well.
        cpacsPath must be filled
        @author: Jonas Jepsen
        @param CPACSObj: the CPACS object holding the data for export
        '''
        if self.aircraft.strut.active.getValue():
            self.LoD.setValueFix(WING_LOD.SBW)

        try:
            etaKink = self.etaKink.getValue()
            etaEngine = self.aircraft.engine.yEngine.getValue(
            ) / self.span.getValue() * 2.
            createWingAirfoil(CPACSObj)
            createWing(CPACSObj,
                       id=self.id,
                       zeroWing=self,
                       LoD=self.LoD.getValue())
        except ZeroDivisionError, e:
            self.log.warning(
                'VAMPzero EXPORT: WING could not be created due to "%s"!', e)