From 494dcd3d226acf2a59b63d7f3138931dd4e36fd6 Mon Sep 17 00:00:00 2001 From: juddmehr Date: Tue, 25 Jun 2024 14:42:05 -0600 Subject: [PATCH] try to get auto trimming working with svg --- docs/src/assets/gen_logo.jl | 3 +- docs/src/assets/gen_trim_logo.sh | 2 +- docs/src/assets/logo.svg | 82 ++++++++++++++++---------------- docs/src/assets/plots_default.jl | 4 +- docs/src/index.md | 2 +- 5 files changed, 47 insertions(+), 46 deletions(-) diff --git a/docs/src/assets/gen_logo.jl b/docs/src/assets/gen_logo.jl index e802a377..4b51692d 100644 --- a/docs/src/assets/gen_logo.jl +++ b/docs/src/assets/gen_logo.jl @@ -157,4 +157,5 @@ plot!( ##### ----- SAVE ----- ##### plot!(; grid=false, background_color=nothing) -savefig("logo.svg") +# savefig("logo.svg") +savefig("logo.png") diff --git a/docs/src/assets/gen_trim_logo.sh b/docs/src/assets/gen_trim_logo.sh index b6e6a462..17d00b30 100755 --- a/docs/src/assets/gen_trim_logo.sh +++ b/docs/src/assets/gen_trim_logo.sh @@ -1,2 +1,2 @@ julia --project=../../ gen_logo.jl -mogrify -trim logo.svg +magick mogrify -trim logo.png diff --git a/docs/src/assets/logo.svg b/docs/src/assets/logo.svg index bdc76bc5..89048e55 100644 --- a/docs/src/assets/logo.svg +++ b/docs/src/assets/logo.svg @@ -1,56 +1,56 @@ - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/src/assets/plots_default.jl b/docs/src/assets/plots_default.jl index 9b24e8b9..4925e4dd 100644 --- a/docs/src/assets/plots_default.jl +++ b/docs/src/assets/plots_default.jl @@ -14,7 +14,7 @@ function plots_default(; background_color=nothing, # background_color_outside = nothing, # display_type, - # dpi, + dpi=300, # extra_kwargs, # extra_plot_kwargs, fontfamily="cmunrm", @@ -241,7 +241,7 @@ function plots_default(; # #:Plot background_color=background_color, # display_type, - # dpi, + dpi=dpi, # extra_kwargs=extra_kwargs, # extra_plot_kwargs=extra_plot_kwargs, fontfamily=fontfamily, diff --git a/docs/src/index.md b/docs/src/index.md index ce2e52bf..5a15bd0a 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -7,7 +7,7 @@ Contributers: Taylor McDonnell, DuctAPE is a code for the aerodynamic evaluation of axisymmetric ducted propulsors designed for incompressible (low mach) applications. It is strongly influenced by the underlying [theory](https://web.mit.edu/drela/Public/web/dfdc/DFDCtheory12-31.pdf) of Ducted Fan Design Code [(DFDC)](https://web.mit.edu/drela/Public/web/dfdc/), utilizing a linear axisymmetric vortex panel method for duct and center body, blade element lifting line rotor representation, and psuedo wake-screw wake model axisymmetrically smeared onto an elliptic grid for efficient computation. -DuctAPE has been developed specifically for applications in gradient-based optimization settings. +DuctAPE has been developed specifically for applications in gradient-based optimization settings. The selected solver methods have been chosen to balance code efficiency as well as robustness while simultaneously allowing for efficient automatic differentiation through DuctAPE employing [ImplicitAD.jl](https://flow.byu.edu/ImplicitAD.jl/dev/). At the same time, the basic functionality of a DFDC-like solve approach has been maintained for the interested user.