Skip to content

Commit

Permalink
clean up tutorial formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
juddmehr committed Oct 16, 2024
1 parent 5da2e4a commit b68dcdc
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions docs/src/DuctAPE/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,9 @@ DuctAPE.analyze(::DuctAPE.DuctedRotor, ::DuctAPE.OperatingPoint, ::DuctAPE.Refer
```

```@example tutorial
outs, success_flag = DuctAPE.analyze(ducted_rotor, operating_point, reference_parameters, options)
outs, success_flag = DuctAPE.analyze(
ducted_rotor, operating_point, reference_parameters, options
)
nothing # hide
```

Expand Down Expand Up @@ -448,7 +450,12 @@ for (iv, v) in enumerate(Vinfs)
end
# - Run Multi-point Analysis - #
outs_vec, success_flags = DuctAPE.analyze(ducted_rotor, operating_points, reference_parameters, DuctAPE.set_options(operating_points))
outs_vec, success_flags = DuctAPE.analyze(
ducted_rotor,
operating_points,
reference_parameters,
DuctAPE.set_options(operating_points),
)
nothing #hide
```

Expand Down Expand Up @@ -500,20 +507,22 @@ nothing #hide
We can then access the various multi-point analysis outputs however is convenient, we choose a broadcasting approach here:

```@example tutorial
# - extract efficiency, power, and thrust coefficients - #
# efficiency
eta = (p->p.totals.total_efficiency[1]).(outs_vec)
# power
cp = (p->p.totals.CP[1]).(outs_vec)
# thrust
ct = (p->p.totals.CT[1]).(outs_vec)
nothing #hide
```

And then we can plot the data to compare DFDC and DuctAPE.

```@example tutorial
```julia
using Plots

# set up efficiency plot
Expand Down

0 comments on commit b68dcdc

Please sign in to comment.