@@ -32,7 +32,7 @@ Exercise 1a: Creating a new waveform
3232.. md-tab-set ::
3333 .. md-tab-item :: Exercise
3434
35- In order to start editing waveforms, you must first learn how to navigate your way around
35+ In order to start editing waveforms, you must first learn how to navigate your way
3636 around the GUI. Launch the Waveform Editor GUI using the following command,
3737 which opens the Waveform Editor in your default browser.
3838
@@ -88,12 +88,12 @@ Exercise 1b: Creating a sine wave
8888 a single sine-wave tendency, with the following parameters:
8989
9090 - Type: sine
91- - Duration: from 10 to 15 seconds
91+ - Duration: 5 seconds
9292 - Frequency: 0.5 Hz
9393 - Amplitude: 3
94- - Vertical range: 0 to 6
94+ - A base offset of 3
9595
96- Use the following tendency parameters: ``type ``, ``start ``, `` end ``, ``frequency ``, ``amplitude ``, and ``base ``.
96+ Use the following tendency parameters: ``type ``, ``duration ``, ``frequency ``, ``amplitude ``, and ``base ``.
9797
9898 .. hint ::
9999 Detailed descriptions of the tendencies can be found :ref: `here <available-tendencies >`.
@@ -104,7 +104,7 @@ Exercise 1b: Creating a sine wave
104104
105105 .. code-block :: yaml
106106
107- - {type: sine, start: 10, end: 15 , frequency: 0.5, amplitude: 3, base: 3}
107+ - {type: sine, duration: 5 , frequency: 0.5, amplitude: 3, base: 3}
108108
109109 You should see the following waveform:
110110
@@ -136,11 +136,11 @@ Exercise 1d: Creating a sine wave - part 3
136136.. md-tab-set ::
137137 .. md-tab-item :: Exercise
138138
139- What happens if you overdetermine your waveform? For example, try setting both
139+ What happens if you overdetermine your waveform? For example, set both
140140 the frequency, as well as the period of the sine wave:
141141 ``frequency: 0.5 `` and ``period: 2 ``
142142
143- And what happens if frequency and period would result in a different sine wave? For example, try setting
143+ And what happens if frequency and period would result in a different sine wave? For example, set
144144 ``frequency: 2 `` and ``period: 2 ``?
145145
146146
@@ -182,8 +182,8 @@ Exercise 2a: Creating a Plasma Current
182182 a single pulse. Create a waveform called ``equilibrium/time_slice/global_quantities/ip ``,
183183 which has the following shape:
184184
185- 1. A linear ramp up from 0 to 1.5e7 A, in a duration of 100 seconds (use tendency type: ``linear ``).
186- 2. A flat-top at 1.5e7 A, held for 400 seconds (use tendency type: ``constant ``).
185+ 1. A linear ramp up from 0 to 15e6 A, in a duration of 100 seconds (use tendency type: ``linear ``).
186+ 2. A flat-top at 15e6 A, held for 400 seconds (use tendency type: ``constant ``).
187187 3. A ramp down back to 0 A, in a duration of 200 seconds (use tendency type: ``linear ``).
188188
189189 .. md-tab-item :: Solution
@@ -192,9 +192,9 @@ Exercise 2a: Creating a Plasma Current
192192
193193 .. code-block :: yaml
194194
195- - {type: linear, from: 0, to: 1.5e7 , start: 0, duration: 100}
196- - {type: constant, value: 1.5e7 , start: 100, duration: 400}
197- - {type: linear, from: 1.5e7 , to: 0, start: 500, duration: 200}
195+ - {type: linear, from: 0, to: 15e6 , start: 0, duration: 100}
196+ - {type: constant, value: 15e6 , start: 100, duration: 400}
197+ - {type: linear, from: 15e6 , to: 0, start: 500, duration: 200}
198198
199199 You should see the following waveform:
200200
@@ -219,7 +219,7 @@ Exercise 2b: Shortform notation
219219 #. If no tendency ``type `` is provided, it will be considered a linear tendency by default.
220220 #. If no start value e.g. ``from `` is provided, it will try to match end of previous tendency.
221221
222- Try to replicate the waveform in the previous exercise using this shortform notation.
222+ Replicate the waveform in the previous exercise using this shortform notation.
223223
224224 .. md-tab-item :: Solution
225225
@@ -235,7 +235,7 @@ Exercise 2b: Shortform notation
235235
236236 .. code-block :: yaml
237237
238- - {to: 1.5e7 , duration: 100}
238+ - {to: 15e6 , duration: 100}
239239 - {duration: 400}
240240 - {to: 0, duration: 200}
241241
@@ -289,14 +289,11 @@ Exercise 3b: Smoothing
289289 - {type: smooth, duration: 1}
290290 - {type: linear, from: 2.5, rate: 0.25, duration: 3}
291291
292- .. image :: ../images/training/smooth.png
293- :align: center
294-
295292 You should see the following waveform. Notice how the smooth tendencies ensure
296293 continuous value and derivative across multiple tendencies.
297294
298-
299-
295+ .. image :: ../images/training/smooth.png
296+ :align: center
300297
301298Exercise 3c: Repeating Waveforms
302299^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -306,29 +303,29 @@ Exercise 3c: Repeating Waveforms
306303
307304 You can create repeating patterns using the ``repeat `` tendency. This tendency
308305 allows you to specify the ``waveform `` parameter, here you can provide a list of
309- tendencies that will be repeated.
306+ tendencies that will be repeated for a length of time.
307+
308+ Copy the tendency list given below and use a ``repeat `` tendency to make it repeat three times.
309+
310+ .. code-block :: yaml
310311
311- Copy the tendency list from the previous exercise use a ``repeat `` tendency to make it repeat three times.
312- Ensure that the end of the linear tendency and the start of the piecewise tendency also smoothly
313- transition into each other, in 1 second.
312+ - {type: linear, from: 2.5, rate: 0.25, duration: 3}
313+ - {type: smooth, duration: 2}
314314
315+ .. hint :: See the repeat tendency :ref:`documentation <repeat-tendency>`.
315316 .. md-tab-item :: Solution
316317
317- A smooth tendency was added as a last tendency to smoothly transition from the
318- linear tendency back into the piecewise linear tendency. This whole waveform is
319- placed in the ``waveform `` parameter of the repeat tendency. Since the tendencies
320- combine up to a total length of 11 (6+1+3+1), the total ``duration `` of the repeat
321- tendency is set to 33, to obtain three full cycles.
318+ The provided tendency list can be placed as is in the ``waveform `` parameter of the repeat tendency.
319+ Since the tendencies combine up to a total length of 5, the total ``duration `` of the repeat
320+ tendency is set to 15, to obtain three full cycles.
322321
323322 .. code-block :: yaml
324323
325324 - type : repeat
326- duration : 33
325+ duration : 15
327326 waveform :
328- - {type: piecewise, time: [0, 2, 3, 5, 6], value: [2.5, 3, 1, 3, 2]}
329- - {type: smooth, duration: 1}
330327 - {type: linear, from: 2.5, rate: 0.25, duration: 3}
331- - {type: smooth, duration: 1 }
328+ - {type: smooth, duration: 2 }
332329
333330 You should see the following waveform:
334331
@@ -442,12 +439,6 @@ Exporting Waveforms
442439
443440In this exercise you will learn how to export waveform configurations.
444441
445- .. warning :: In this section it is suggested to use ``imas print`` to quickly inspect
446- the exported IDSs. To use this, it is required to have the
447- `imas-core <https://git.iter.org/projects/IMAS/repos/al-core/browse >`_ package
448- (locked behind ITER login wall) installed.
449- If you do not have this installed, you can manually inspect the exported IDSs.
450-
451442Exercise 5a: Exporting from the UI
452443^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
453444
@@ -459,8 +450,9 @@ Exercise 5a: Exporting from the UI
459450 Load this configuration into the Waveform Editor, if you are unsure how to, have a look
460451 at the instructions :ref: `here <gui >`.
461452
462- We will export our EC beam power values to an ec_launchers IDS. Export the configuration
463- to a NetCDF file. Sample the time such that there are 20 points in the range from 0 to 800s.
453+ We will export our EC beam power values to an ec_launchers IDS, and store it using a IMAS NetCDF file.
454+ You can export to a NetCDF file by providing the URI in the following format: ``path/to/file.nc ``.
455+ Sample the time such that there are 20 points in the range from 0 to 800s.
464456
465457 Inspect the exported IDS using ``imas print <your URI> ec_launchers ``, which
466458 quantities are filled? Notice that the waveform in the configuration runs from 0 to 700s,
@@ -473,7 +465,7 @@ Exercise 5a: Exporting from the UI
473465 .. md-tab-item :: Configuration
474466
475467 If you forgot to save the configuration of exercise 4a, copy the following YAML file,
476- and store it to disk.
468+ and store it to disk and load it back into the waveform editor .
477469
478470
479471 .. code-block :: yaml
@@ -501,7 +493,7 @@ Exercise 5a: Exporting from the UI
501493 Any values which are outside of the defined waveform range (e.g. values later than 700s)
502494 will be set to 0.
503495
504- .. code-block :: bash
496+ .. code-block :: text
505497
506498 ec_launchers
507499 ├── ids_properties
@@ -551,13 +543,13 @@ Exercise 5b: Exporting different Data Dictionary versions
551543
552544 Repeat the previous exercise, but this time, before exporting change the data dictionary
553545 version to **3.42.0 ** in the `Edit Global Properties ` tab, and save the configuration.
554- Ensure you enter a different from previous exercise. Again, print the IDS in your terminal, what has changed?
546+ Ensure you enter a different data dictionary version from previous exercise. Again, print the IDS in your terminal, what has changed?
555547
556548 .. md-tab-item :: Solution
557549
558550 You should see that the data dictionary version of the IDS has changed to '3.42.0':
559551
560- .. code-block :: bash
552+ .. code-block :: text
561553
562554 ec_launchers
563555 ├── ids_properties
@@ -574,7 +566,7 @@ Exercise 5c: Exporting from the CLI
574566.. md-tab-set ::
575567 .. md-tab-item :: Exercise
576568
577- You can also export a configuration using the CLI. Try exporting your configuration
569+ You can also export a configuration using the CLI. Export your configuration
578570 using the same settings with the CLI command. Print the IDS afterwards, is it the
579571 same as before?
580572
@@ -593,7 +585,7 @@ Exercise 5c: Exporting from the CLI
593585
594586 Export the configuration using:
595587
596- .. code-block :: bash
588+ .. code-block :: text
597589
598590 waveform-editor export-ids <example YAML> <your URI> --linspace 0,800,20
599591
@@ -606,26 +598,29 @@ Plasma Shape Editor
606598
607599In this section you will learn how to use the plasma shape editor. For this section
608600it is required to have installed the :ref: `dependencies for the Plasma Shape Editor <shape_editor_install >`.
601+ If you already have already built NICE inverse before (for example, if you followed the PDS training),
602+ you can use this instead.
603+
609604Detailed information about the plasma shape editor can be found in :ref: `the documentation <plasma_shape_editor >`.
610605If you are on SDCC, ensure the following modules are loaded, which are required to run NICE.
611606
612607
608+ .. code-block :: bash
609+
610+ module load IMAS-Python SuiteSparse/7.7.0-intel-2023b libxml2 Blitz++ MUSCLE3
611+
613612 Exercise 6a: Setting up NICE
614613^^^^^^^^^^^^^^^^^^^^^^^^^^^^
615614
616615The plasma shape editor is a graphical environment in which you can design a specific plasma shape
617616and use an equilibrium solver, such as NICE, to obtain the coil currents required to obtain
618617this plasma shape.
619618
620- .. code-block :: bash
621-
622- module load IMAS-Python SuiteSparse/7.7.0-intel-2023b libxml2 Blitz++ MUSCLE3
623-
624619.. md-tab-set ::
625620 .. md-tab-item :: Exercise
626621
627622 Open the tab ``Plasma Shape Editor `` in the Waveform Editor GUI.
628- You should see an empty plotting window on your left, and an options menu on your right.
623+ You should see an empty plotting window on your left, and an options panels on your right.
629624 NICE requires configuration to be set.
630625
631626 1. Set the executable paths for the NICE inverse and direct mode. These should point
@@ -677,19 +672,21 @@ Exercise 6b: Running NICE inverse
677672 - Characteristics of the vacuum toroidal field; R0 and B0
678673 - p' and ff' profiles
679674
680- First, open the ``Plasma Shape `` options menu , set it to ``parameterized ``, and
675+ First, open the ``Plasma Shape `` options panel , set it to ``parameterized ``, and
681676 leave the shape settings on theirs defaults for now.
682677
683- Secondly, open the ``Plasma Properties `` options menu , and set it to the ``Manual `` option.
678+ Secondly, open the ``Plasma Properties `` options panel , and set it to the ``Manual `` option.
684679 Leave the values at its default for now. This will set the plasma current, R0 and B0, and the ff' and p' profiles
685680 through :ref: `a parameterisation <abg_parameterisation >` using the alpha, beta, and gamma parameters. Leave the values
686681 at default for now.
687682
688683 You should now have set up enough to run NICE inverse mode, which you can verify by
689- checking that there are no more ⚠️ icons besides the option menus, and that the ``Run `` button is enabled.
684+ checking that there are no more ⚠️ icons besides the option panels, and that the ``Run `` button is enabled.
685+
686+ Run NICE by selecting the ``Run `` button.
690687
691688 What do you see in the plot on the left? What happens if you hover your mouse over the
692- coil outlines? Try playing with the settings in the ``Plotting Parameters `` menu . What do they do?
689+ coil outlines? Change some of the parameters in the ``Plotting Parameters `` option panel . What do they do?
693690
694691
695692 .. md-tab-item :: Solution
@@ -721,18 +718,18 @@ Exercise 6c: Configurating the Plasma Shape
721718 2. By providing a geometric parameterization.
722719 3. By providing gap distances for an equilibrium IDS containing `boundary gaps <https://imas-data-dictionary.readthedocs.io/en/latest/generated/ids/equilibrium.html#equilibrium-time_slice-boundary-gap >`_.
723720
724- We will try out the first two methods in this exercise.
721+ We will cover the first two methods in this exercise.
725722
726723 1. Select the ``Equilibrium IDS outline `` option.
727- Try to provide an outline from an equilibrium IDS, for example by using the URI below
728- if you are on SDCC. Try to visualize the boundary outline of the time steps at 200s and 251s,
729- do you see a difference? Try running both cases , what happens in each case?
724+ Provide an outline from an equilibrium IDS, for example by using the URI below
725+ if you are on SDCC. Visualize the boundary outline of the time steps at 200s and 251s,
726+ do you see a difference? Run NICE inverse for both time steps , what happens in each case?
730727
731728 .. code-block :: bash
732729
733730 imas:hdf5? path=/home/ITER/blokhus/public/imasdb/ITER/4/666666/3
734- 2. Select the ``Parameterized `` option, and try changing some of the
735- sliders to change the shape to your desired shape. Try running NICE in inverse mode, does it converge?
731+ 2. Select the ``Parameterized `` option, and update some of the
732+ parameter sliders to change your desired shape. Run NICE in inverse mode, does it converge?
736733
737734 .. md-tab-item :: Solution
738735
@@ -760,9 +757,9 @@ Exercise 6d: Fixing Coil Currents
760757 By default, NICE is able to freely change all coil currents to achieve the desired
761758 plasma shape. It is possible, however, you fix any of the coils to a specific value,
762759 and NICE will try to achieve your desired plasma shape by varying the unfixed coil
763- currents. This is possible to do in the ``Coil Currents `` menu.
760+ currents. You can do this in the ``Coil Currents `` panel.
764761
765- Load the plasma outline from previous exercise using the given IDS. Try setting
762+ Load the plasma outline from previous exercise using the given IDS. Set
766763 the currents of PF2 and PF5 to 25000A and 15000A respectively, and enable the checkbox
767764 to fix the current. The sliders will update with the resulting coil currents after
768765 NICE inverse converges.
0 commit comments