Exemple #1
0
def get_friction_drag_FW(aircraft,velocity,altitude):
    refArea = aircraft.wing.area
    frictionDrag = Friction(refArea)
    frictionDrag.set_flight_conditions(velocity,altitude)
    items = DragList()
    items.name = 'Airframe'
    items.add_item( frictionDrag.analyze_wing(aircraft.wing,'main wing') )
    return items
Exemple #2
0
 def get_friction_drag(self,velocity,altitude):
     """
     Calculates friction drag of an aircraft using Friction class 
     at given velocity and altitude.
     
     Returns
     -------
     
     items : DragList
         list of the drag components with drag coefficients used for 
         friction drag calculation (Body, wing, empennage)
     """
     frictionDrag = Friction(self.refArea)
     frictionDrag.set_flight_conditions(velocity,altitude)
     items = DragList()
     items.add_item( frictionDrag.analyze_wing(self.ac.wing,'main wing') )
     self.aircraftDrag.friction = items
     return items
Exemple #3
0
 def get_items_drag(self,items):
     itemsNew = DragList()
     for item in items:
         item = self.get_item_drag(item)
         itemsNew.add_item(item)
     return itemsNew