Source code for RCAIDE.Library.Methods.Aerodynamics.Athena_Vortex_Lattice.AVL_Objects.Aircraft

# RCAIDE/Library/Methods/Aerodynamics/Athena_Vortex_Lattice/AVL_Objects/Aircraft.py
#
# Created: Oct 2024, M. Clarke

# ----------------------------------------------------------------------------------------------------------------------
#  IMPORT
# ----------------------------------------------------------------------------------------------------------------------

# RCAIDE imports
from RCAIDE.Framework.Core import  Data 

# package imports 
from .Wing import Wing
from .Body import Body


# ----------------------------------------------------------------------------------------------------------------------
# Aircraft
# ---------------------------------------------------------------------------------------------------------------------- 
[docs] class Aircraft(Data): """A data class defining the entire AVL aircraft geometry Assumptions: None Source: None Inputs: None Outputs: None Properties Used: N/A """ def __defaults__(self): """ Defines the data structure and defaults of aircraft classes Assumptions: None Source: None Inputs: None Outputs: None Properties Used: N/A """ self.tag = 'aircraft' self.wings = Data() self.bodies = Data()
[docs] def append_wing(self,wing): """ Appends wing geometry onto aircraft class Assumptions: None Source: None Inputs: None Outputs: None Properties Used: N/A """ # assert database type if not isinstance(wing,Wing): raise Exception('input component must be of type AVL.Data.Wing()') # store data self.wings.append(wing) return
[docs] def append_body(self,body): """ Appends body geometry onto aircraft class Assumptions: None Source: None Inputs: None Outputs: None Properties Used: N/A """ # assert database type if not isinstance(body,Body): raise Exception('input component must be of type AVL.Data.Body()') # store data self.bodies.append(body) return