ocayon / Vortex-Step-Method

Vortex Step Method
MIT License
1 stars 1 forks source link

Allow a geometric LEI airfoil input #17

Closed jellepoland closed 2 months ago

jellepoland commented 2 months ago
wing.add_section([0, 1, 0], [-1, 1, 0], "inviscid")

# arguments are: (leading edge position [x,y,z], trailing edge position [x,y,z], airfoil data)
# airfoil data can be:
# ['inviscid']
# ['lei_airfoil_breukels', [tube_diameter, chamber_height]]

Implementation Ideas

Option 1: through arrays

  1. Compute the chord and non-dimensionalize the tube_diameter and chamber_height
  2. Define the data_airff array, that contains cl,cd,cm coefficients for a specify alpha range over a specified number of steps, using the old functions LEI_airf_coeff.
  3. Retrieve the 'right' cl,cd,cm values from this coefficient database at runtime using the airfoil_coeffs function, that parses the desired alpha

Option 2: Input through polynomial functions

  1. Compute the chord and non-dimensionalize the tube_diameter and chamber_height
  2. Define the constants that make up the cl,cd,cm polynomials as far as possible
  3. At runtime call a function that takes as input the defined constants and the desired angle of attack (maybe through an update class function?) and uses the polynomial functions to calculate the corresponding cl,cd,cm values. Be wary to include the if statement for when angle_of_attack is < or > than 20deg.