Skip to content

Commit aa4eac8

Browse files
committed
update docs/tutorial.jl
1 parent 0b008fb commit aa4eac8

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/src/tutorial.jl

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ help_plot(dd.equilibrium; core_profiles_overlay=true, psi_levels_in=21, psi_leve
8282
# These plots can be composed by calling `plot!()` instead of `plot()`
8383

8484
plot(dd.equilibrium; color=:gray, cx=true)
85-
plot!(dd.build; equilibrium=false, pf_active=false)
85+
plot!(dd.build.layer)
8686
plot!(dd.pf_active)
87+
plot!(dd.pf_passive)
88+
plot!(dd.pulse_schedule.position_control; color=:red)
8789

8890
# Plotting an array...
8991

@@ -174,6 +176,10 @@ print_tree(IMAS.freeze(dd.core_profiles.profiles_1d[1]); maxdepth=1)
174176

175177
FUSE.ActorWholeFacility(dd, act);
176178

179+
# Let's check what we got at a glance with the `FUSE.digest(dd)` function:
180+
181+
FUSE.digest(dd)
182+
177183
# Like before we can checkpoint results for later use
178184

179185
@checkin :awf dd ini act
@@ -190,7 +196,7 @@ FUSE.ActorWholeFacility(dd, act);
190196
# Let's start by positioning the PF coils, so that we stand a chance to reproduce the desired plasma shape.
191197
# This will be important to ensure the stability of the `ActorStationaryPlasma` that we are going to run next.
192198

193-
actor = FUSE.ActorPFdesign(dd, act);
199+
FUSE.ActorPFdesign(dd, act; do_plot=true); # instead of setting `act.ActorPFdesign.do_plot=true` we can just pass `do_plot=true` as argument without chaning `act`
194200

195201
# The `ActorStationaryPlasma` iterates between plasma transport, pedestal, equilibrium and sources to return a self-consistent plasma solution
196202

@@ -247,7 +253,7 @@ plot(dd.pf_passive)
247253
# We can now give the PF coils their final position given the new build
248254

249255
actor = FUSE.ActorPFdesign(dd, act);
250-
plot(actor)
256+
plot(actor) # some actors define their own plot
251257

252258
# With information about both pf_active and pf_passive we can now evaluate vertical stability
253259

@@ -310,7 +316,7 @@ IMAS.diff(dd.equilibrium, dd1.equilibrium)
310316

311317
FUSE.extract(dd)
312318

313-
# Extract + plots saved to PDF (or printed to screen it `filename` is omitted)
319+
# Extract + plots saved to PDF (printed to screen it `filename` is omitted)
314320

315321
filename = joinpath(tutorial_temp_dir, "$(ini.general.casename).pdf")
316322
FUSE.digest(dd)#, filename)

0 commit comments

Comments
 (0)