Skip to content

Commit

Permalink
Merge pull request #24 from byuflowlab/updateccbtojuliav1.11
Browse files Browse the repository at this point in the history
Fix broken type broadcast in latest Julia
  • Loading branch information
EdoAlvarezR authored Dec 15, 2024
2 parents 7d55262 + 2cf24eb commit 44b009d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "FLOWVLM"
uuid = "1a3ff0be-0410-4572-aa62-b496bdd1f33b"
authors = ["Eduardo J. Alvarez <[email protected]>"]
version = "2.1.2"
version = "2.1.3"

[deps]
PyPlot = "d330b81b-6aea-500a-939a-2ce795aea3ee"
Expand Down
14 changes: 12 additions & 2 deletions src/FLOWVLM_rotor_ccb.jl
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,19 @@ function OCCB2CCB(orotor::OCCBRotor, turbine::Bool, oinflow::OCCBInflow;

airfoil_funs = [(alpha, Re, Mach) -> occb_airfoil(af, alpha) for af in orotor.af]

sections = ccb.Section.(orotor.r, orotor.chord, orotor.theta, airfoil_funs)
# sections = ccb.Section.(orotor.r, orotor.chord, orotor.theta, airfoil_funs)
# sections = [ccb.Section(r, c, tht, rfl) for (r, c, tht, rfl) in zip(orotor.r, orotor.chord, orotor.theta, airfoil_funs)]
sections = []
for (r, c, tht, rfl) in zip(orotor.r, orotor.chord, orotor.theta, airfoil_funs)
push!(sections, ccb.Section(r, c, tht, rfl))
end

ops = ccb.OperatingPoint.(oinflow.Vx, oinflow.Vy, oinflow.rho)
# ops = ccb.OperatingPoint.(oinflow.Vx, oinflow.Vy, oinflow.rho)
# ops = [ccb.OperatingPoint(Vx, Vy, oinflow.rho) for (Vx, Vy) in zip(oinflow.Vx, oinflow.Vy)]
ops = []
for (Vx, Vy) in zip(oinflow.Vx, oinflow.Vy)
push!(ops, ccb.OperatingPoint(Vx, Vy, oinflow.rho))
end

return rotor, sections, ops
end
Expand Down

0 comments on commit 44b009d

Please sign in to comment.