2f729fda49d2d58bf9a97ecc91781d056a2d274e,trunk/SUAVE/Methods/Aerodynamics/Lifting_Line/Lifting_Line.py,,lifting_line,#,18

Before Change


    n_trans = n_2d.T
        
    // Right hand side matrix
    RHS = ((np.sin(n_trans*thetan).T)*(np.sin(np.atleast_2d(thetan).T)+(n_trans*k).T))

    // Left hand side vector    
    LHS = (k*np.sin(thetan)*(alpha+ageo-azl)).T
    
    // Expand out for all the angles of attack
    RHS2 = np.tile(RHS.T, (repeats,1,1))    
    LHS2 = np.tile(LHS,(repeats,1,1))
        
    // The Fourier Coefficientsk
    A = np.linalg.solve(RHS2,LHS2)
    
    // The 3-D Coefficient of lift
    CL = A[:,0]*np.pi*AR
    
    // Find the sectional coefficients of lift
    Cl = b*np.sum(4*A*(np.sin(n*thetan)),axis=1)/c
    
    // induced alpha
    alpha_i = np.sum(n_trans*A*np.sin(n*thetan)/np.sin(thetan),axis=1)
    
    // Sectional vortex drag
    Cdv = Cl*alpha_i
    
    // Total vortex drag
    CDv = np.sum(Cdv*AR*etam,axis=1)
    CDv = np.dot(n,A**2)*np.pi*AR
    
    //////////////////////////

After Change


    n_trans = np.atleast_2d(n).T
        
    // Right hand side matrix
    RHS = (np.sin(n_trans*thetan)*(np.sin(thetan)+n_trans*k))
    
    // Expand out for all the angles of attack
    RHS2 = np.tile(RHS.T, (repeats,1,1))

    // Left hand side vector    
    LHS = k*np.sin(thetan)*(alpha+ageo-azl)
        
    // The Fourier Coefficients
    A = np.linalg.solve(RHS2,LHS)
    
    // The 3-D Coefficient of lift
    CL = A[:,0]*np.pi*AR
    
    // Find the sectional coefficients of lift
    Cl = b*np.cumsum(4*A*np.sin(n*thetan),axis=1)/c
    
    // induced alpha
    alpha_i = np.cumsum(n*A*np.sin(n*A)/np.sin(thetan),axis=1)
    
    // Sectional vortex drag
    Cdv = Cl*alpha_i
    
    // Total vortex drag
    CDv = np.sum(Cdv*AR*etam,axis=1)
    
    //////////////////////////
    // Profile drag of a 2-D section
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: suavecode/SUAVE
Commit Name: 2f729fda49d2d58bf9a97ecc91781d056a2d274e
Time: 2020-04-16
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Methods/Aerodynamics/Lifting_Line/Lifting_Line.py
Class Name:
Method Name: lifting_line


Project Name: khaotik/DaNet-Tensorflow
Commit Name: de00082780be884fc90e0113d323bfd63006ffba
Time: 2017-08-07
Author: junkkhaotik@gmail.com
File Name: main.py
Class Name: Model
Method Name: build


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