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)
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)
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)
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)