Skip to content

Commit

Permalink
update logo
Browse files Browse the repository at this point in the history
  • Loading branch information
juddmehr committed Jun 25, 2024
1 parent b3ed43a commit 47ce938
Show file tree
Hide file tree
Showing 11 changed files with 646 additions and 372 deletions.
56 changes: 0 additions & 56 deletions docs/assets/logo.svg

This file was deleted.

297 changes: 0 additions & 297 deletions docs/assets/plots_default.jl

This file was deleted.

2 changes: 1 addition & 1 deletion docs/src/DuctAPE/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Depth = 5
The following is a basic tutorial on how to set up the inputs to, and run, an analysis of a ducted fan in DuctAPE.

```@setup dfdc
include("../../assets/plots_default.jl")
include("../assets/plots_default.jl")
gr()
```

Expand Down
File renamed without changes.
27 changes: 9 additions & 18 deletions docs/assets/gen_logo.jl → docs/src/assets/gen_logo.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Plots
using FLOWMath
using DuctAPE
const dt = DuctAPE

include("plots_default.jl")
include("geometry.jl")

##### ----- COLORS ----- #####
Expand All @@ -14,7 +14,7 @@ julia_red = RGB(0.796, 0.235, 0.2)

##### ----- GEOMETRY ----- #####

Rtip = 0.75
Rtip = 1.25
Rhub = 0.25
duct_chord = 2.0
duct_le_radius = 0.025
Expand All @@ -23,13 +23,14 @@ wedge_angle = 10.0

# - Plotting Options - #
plot(; axis=false)
lw = 3
lw = 5
ms = 5
fa = 1 / 3

# blue rotor
rotorzloc = 0.35 * duct_chord
r = range(Rhub + 0.01, Rtip - 0.025, 11)
c = range(0.25, 0.2, 11) .* Rtip
c = range(0.35, 0.25, 11) .* Rtip
t = range(70.0, 30.0, 11)

lez = rotorzloc .- c .* 0.25 .* sind.(t)
Expand Down Expand Up @@ -114,7 +115,6 @@ plot!(
cbr[end] = 0.0

# purple wake
# TODO: need to load DuctAPE and run the wake generation functions

# assemble propulsor
include("define_propulsor.jl")
Expand All @@ -125,7 +125,7 @@ problem_dimensions, prepost_containers, _, _, _, _, _, _ = dt.setup_analysis(
)
wg = prepost_containers.wake_grid
for i in 2:2:size(wg, 3)
plot!(wg[1, :, i], wg[2, :, i]; color=julia_purple, label="", linewidth=lw / 2)
plot!(wg[1, :, i], wg[2, :, i]; color=julia_purple, label="", linewidth=lw - 1)
end

# finish rotor bits
Expand All @@ -136,18 +136,9 @@ plot!(
color=julia_blue,
markerstrokecolor=julia_blue,
# markershape=:hline,
markersize=3,
linewidth=3,
markersize=ms,
markershape=:rect,
linewidth=lw,
seriestype=:scatter,
)

# axis of rotation
plot!([nz[1], wg[1, end, 1]], -0.001 * ones(2); color=:black, label="", lw=1)
plot!(nz[13] * ones(2), [-0.05, 0.05]; color=:black, label="")
plot!(nz[13] * ones(2) .+ 0.03, [-0.05, 0.05]; color=:black, label="")
plot!(wg[1, end - 5, 1] * ones(2), [-0.05, 0.05]; color=:black, label="")
plot!(wg[1, end - 5, 1] * ones(2) .- 0.03, [-0.05, 0.05]; color=:black, label="")

##### ----- SAVE ----- #####
plot!(;grid=false, background_color=nothing)
savefig("assets/logo.svg")
Loading

0 comments on commit 47ce938

Please sign in to comment.