76697588ed6da82c507a68074e63a30b809a8a99,trunk/SUAVE/Methods/Aerodynamics/Common/Fidelity_Zero/Lift/weissinger_vortex_lattice.py,,weissinger_vortex_lattice,#Any#Any#Any#,20
Before Change
A_v = A*0.25/np.pi*T
v = np.sum(A_v,axis=1)
Lfi = -T * (np.sin(twist_tc)-v)
Lfk = T * np.cos(twist_tc)
Lft = -Lfi*np.sin(twist_tc)+Lfk*np.cos(twist_tc)
Dg = Lfi*np.cos(twist_tc)+Lfk*np.sin(twist_tc)
L = deltax * Lft
D = deltax * Dg
After Change
deltax = span/n
sin_aoa = np.sin(aoa)
cos_aoa = np.cos(aoa)
if orientation == False :
// discretizing the wing sections into panels
i = np.arange(0,n)
section_length = dchord/span*(span-(i+1)*deltax+deltax/2) + tip_chord
twist_distri = twist_rc + i/float(n)*(twist_tc-twist_rc)
ya = np.atleast_2d((i)*deltax)
yb = np.atleast_2d((i+1)*deltax)
xa = np.atleast_2d(((i+1)*deltax-deltax/2)*np.tan(sweep) + 0.25*section_length)
x = np.atleast_2d(((i+1)*deltax-deltax/2)*np.tan(sweep) + 0.75*section_length)
y = np.atleast_2d(((i+1)*deltax-deltax/2))
RHS = np.atleast_2d(np.sin(twist_distri+aoa))
A = (whav(x,y,xa.T,ya.T)-whav(x,y,xa.T,yb.T)\
-whav(x,y,xa.T,-ya.T)+whav(x,y,xa.T,-yb.T))*0.25/np.pi
// Vortex strength computation by matrix inversion
T = np.linalg.solve(A.T,RHS.T).T
// Calculating the effective velocty
A_v = A*0.25/np.pi*T
v = np.sum(A_v,axis=1)
Lfi = -T * (sin_aoa-v)
Lfk = T * cos_aoa
Lft = -Lfi * sin_aoa + Lfk * cos_aoa
Dg = Lfi * cos_aoa + Lfk * sin_aoa
L = deltax * Lft
D = deltax * Dg
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: suavecode/SUAVE
Commit Name: 76697588ed6da82c507a68074e63a30b809a8a99
Time: 2017-11-03
Author: ebotero@stanford.edu
File Name: trunk/SUAVE/Methods/Aerodynamics/Common/Fidelity_Zero/Lift/weissinger_vortex_lattice.py
Class Name:
Method Name: weissinger_vortex_lattice
Project Name: suavecode/SUAVE
Commit Name: 109e877b661f1ef6cb8cce8b245130f9ff29de72
Time: 2016-01-29
Author: ebotero@stanford.edu
File Name: trunk/SUAVE/Methods/Aerodynamics/Fidelity_Zero/Drag/parasite_drag_wing.py
Class Name:
Method Name: parasite_drag_wing
Project Name: suavecode/SUAVE
Commit Name: 6806e7d4e32be73df8f44a34547aa623048e287d
Time: 2016-03-12
Author: ebotero@stanford.edu
File Name: trunk/SUAVE/Methods/Aerodynamics/Fidelity_Zero/Drag/compressibility_drag_wing.py
Class Name:
Method Name: compressibility_drag_wing
Project Name: suavecode/SUAVE
Commit Name: 76697588ed6da82c507a68074e63a30b809a8a99
Time: 2017-11-03
Author: ebotero@stanford.edu
File Name: trunk/SUAVE/Methods/Aerodynamics/Common/Fidelity_Zero/Lift/weissinger_vortex_lattice.py
Class Name:
Method Name: weissinger_vortex_lattice