Skip to content

Commit acbbb8f

Browse files
committed
Lipo deform
1 parent 99b3226 commit acbbb8f

4 files changed

Lines changed: 236 additions & 157 deletions

File tree

src/obj_geometry.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,10 @@ function refine_obj_wing!(wing::AbstractWing{T}; recompute_mapping=true) where {
309309
end
310310

311311
# 5. Compute panel mapping and update non_deformed_sections
312-
recompute_mapping && VortexStepMethod.compute_refined_panel_mapping!(wing)
312+
if recompute_mapping
313+
VortexStepMethod.compute_refined_panel_mapping!(wing)
314+
VortexStepMethod.compute_refined_section_interpolation!(wing)
315+
end
313316
VortexStepMethod.update_non_deformed_sections!(wing)
314317

315318
return nothing
@@ -584,6 +587,7 @@ function ObjWing(
584587
MVector{3, Float64}(spanwise_direction),
585588
sections, Section{Float64}[], remove_nan, use_prior_polar, 0.0, # billowing_percentage
586589
Int16[], # refined_panel_mapping empty
590+
Int16[], Float64[], # refined_section interpolation cache empty
587591
Section{Float64}[], zeros(Float64, n_panels), zeros(Float64, n_panels),
588592
Float64(mass), Float64(gamma_tip), Matrix{Float64}(inertia_tensor),
589593
MVector{3, Float64}(T_cad_body), MMatrix{3, 3, Float64, 9}(R_cad_body),

src/solver.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,8 @@ function _wing_with_eltype(wing::Wing{P, Float64}, ::Type{TD}) where {P, TD}
10151015
wing.use_prior_polar,
10161016
wing.billowing_percentage,
10171017
copy(wing.refined_panel_mapping),
1018+
copy(wing.refined_section_left_idx),
1019+
Vector{TD}(wing.refined_section_weight),
10181020
Section{TD}[_section_with_eltype(s, TD) for s in wing.non_deformed_sections],
10191021
Vector{TD}(wing.theta_dist),
10201022
Vector{TD}(wing.delta_dist),

0 commit comments

Comments
 (0)