@@ -112,19 +112,18 @@ Structure to hold calculated panel properties.
112112- `control_points`::Vector{MVec3}
113113- `bound_points_1`::Vector{MVec3}
114114- `bound_points_2`::Vector{MVec3}
115- - `x_airf`::Vector{Vector{Float64}}: unclear, please define
116- - `y_airf`::Vector{Vector{Float64}}: unclear, please define
117- - `z_airf`::Vector{Vector{Float64}}: unclear, please define
118-
115+ - `x_airf`::Vector{MVec3}: Vector of unit vectors perpendicular to chord line
116+ - `y_airf`::Vector{MVec3}: Vector of unit vectors parallel to chord line
117+ - `z_airf`::Vector{MVec3}: Vector of unit vectors in spanwise direction
119118"""
120119struct PanelProperties
121120 aero_centers:: Vector{MVec3}
122121 control_points:: Vector{MVec3}
123122 bound_points_1:: Vector{MVec3}
124123 bound_points_2:: Vector{MVec3}
125- x_airf:: Vector{Vector{Float64} }
126- y_airf:: Vector{Vector{Float64} }
127- z_airf:: Vector{Vector{Float64} }
124+ x_airf:: Vector{MVec3 }
125+ y_airf:: Vector{MVec3 }
126+ z_airf:: Vector{MVec3 }
128127end
129128
130129"""
@@ -139,23 +138,23 @@ Returns:
139138function calculate_panel_properties (section_list:: Vector{Section} , n_panels:: Int ,
140139 aero_center_loc:: Float64 , control_point_loc:: Float64 )
141140 # Initialize arrays
142- aero_centers = Vector{Float64} []
143- control_points = Vector{Float64} []
144- bound_points_1 = Vector{Float64} []
145- bound_points_2 = Vector{Float64} []
146- x_airf = Vector{Float64} []
147- y_airf = Vector{Float64} []
148- z_airf = Vector{Float64} []
141+ aero_centers = MVec3 []
142+ control_points = MVec3 []
143+ bound_points_1 = MVec3 []
144+ bound_points_2 = MVec3 []
145+ x_airf = MVec3 []
146+ y_airf = MVec3 []
147+ z_airf = MVec3 []
149148
150149 # Define coordinates matrix
151150 coords = zeros (2 * (n_panels + 1 ), 3 )
152151 @debug " Shape of coordinates: $(size (coords)) "
153152
154153 for i in 1 : n_panels
155- coords[2 i- 1 , :] = section_list[i]. LE_point
156- coords[2 i, :] = section_list[i]. TE_point
157- coords[2 i+ 1 , :] = section_list[i+ 1 ]. LE_point
158- coords[2 i+ 2 , :] = section_list[i+ 1 ]. TE_point
154+ coords[2 i- 1 , :] . = section_list[i]. LE_point
155+ coords[2 i, :] . = section_list[i]. TE_point
156+ coords[2 i+ 1 , :] . = section_list[i+ 1 ]. LE_point
157+ coords[2 i+ 2 , :] . = section_list[i+ 1 ]. TE_point
159158 end
160159
161160 @debug " Coordinates: $coords "
0 commit comments