You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/capabilities/portals_capabilities.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
PORTALS
2
2
=======
3
3
4
-
The PORTALS method, described in `P. Rodriguez-Fernandez et al., Nulc. Fusion (2022) <https://iopscience.iop.org/article/10.1088/1741-4326/ac64b2>`_ consists of using Bayesian Optimization techniques to find steady-state solutions of transport codes of arbitrary fidelity.
4
+
The PORTALS method, described in `P. Rodriguez-Fernandez et al.,arXiv (2023) <https://arxiv.org/abs/2312.12610>`_ consists of using Bayesian Optimization techniques to find steady-state solutions of transport codes of arbitrary fidelity.
5
5
6
6
Once setup has been successful, the following regression test should run smoothly:
Copy file name to clipboardexpand all lines: docs/capabilities/tglf_capabilities.rst
+10-19
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,8 @@ To generate the input files (input.tglf) to TGLF at each radial location, MITIM
76
76
77
77
Now, we are ready to run TGLF. Once the ``prep()`` command has finished, one can run TGLF with different settings and assumptions. That is why, at this point, a sub-folder name for this specific run can be provided. Similarly to the ``prep()`` command, a ``restart`` flag can be provided.
78
78
The set of control inputs to TGLF (like saturation rule, electromagnetic effects, etc.) are provided in two ways.
79
-
First, the argument ``TGLFsettings`` (which goes from 1 to 5 as of now) indicates the base case to start with. The user is referred to ``GACODEdefaults.py`` to understand the meaning of each setting.
79
+
First, the argument ``TGLFsettings`` indicates the base case to start with.
80
+
The user is referred to ``templates/input.tglf.models.json`` to understand the meaning of each setting, and ``templates/input.tglf.controls`` for the default setup.
80
81
Second, the argument ``extraOptions`` can be passed as a dictionary of variables to change.
81
82
For example, the following two commands will run TGLF with saturation rule number 2 with and without electromagnetic effets. After each ``run()`` command, a ``read()`` is needed, to populate the *tglf.results* dictionary with the TGLF outputs (``label`` refers to the dictionary key for each run):
82
83
@@ -96,19 +97,6 @@ For example, the following two commands will run TGLF with saturation rule numbe
96
97
97
98
tglf.read( label='no_em' )
98
99
99
-
.. note::
100
-
101
-
One can change every TGLF input with the ``extraOptions = {}`` dictionary, as shown earlier. However, ``GACODEdefaults.py`` contains a list of presets for TGLF that can be selected by simply passing the argument ``TGLFsettings`` to the ``.run()`` method. Available preset are:
102
-
103
-
- TGLFsettings = 0: Minimal working example
104
-
- TGLFsettings = 1: "Old" ES SAT1
105
-
- TGLFsettings = 2: ES SAT0
106
-
- TGLFsettings = 3: ES SAT1 (a.k.a. SAT1geo)
107
-
- TGLFsettings = 4: ES SAT2
108
-
- TGLFsettings = 5: EM SAT2
109
-
110
-
The user is not limited to use those combinations. One can start with a given ``TGLFsettings`` option, and then modify as many parameters as needed with the ``extraOptions`` dictionary.
111
-
112
100
.. tip::
113
101
114
102
In this example, ``tglf.results['yes_em']`` and ``tglf.results['no_em']`` are themselves dictionaries, so please do ``.keys()`` to get all the possible results that have been obtained.
@@ -117,7 +105,7 @@ TGLF results can be plotted together by indicating what labels to plot:
117
105
118
106
.. code-block:: python
119
107
120
-
tglf.plotRun( labels= ['yes_em', 'no_em'] )
108
+
tglf.plot( labels= ['yes_em', 'no_em'] )
121
109
122
110
As a result, a TGLF notebook with different tabs will be opened with all relevant output quantities:
123
111
@@ -162,7 +150,7 @@ Similarly as in the previous section, you need to run the ``prep()`` command, bu
162
150
- **PROFILES_GEN** to generate an *input.gacode* file from the *plasmastate.cdf* and *.geq* files. This file is standard within the GACODE suite and contains all plasma information that is required to run core transport codes.
163
151
164
152
165
-
The rest of the workflow is identical to the previous section, including ``.run()``, ``.read()`` and ``.plotRun()``.
153
+
The rest of the workflow is identical to the previous section, including ``.run()``, ``.read()`` and ``.plot()``.
166
154
167
155
168
156
Run TGLF from input.tglf file
@@ -182,7 +170,7 @@ If you have a input.tglf file already, you can still use this script to run it.
0 commit comments