@@ -72,6 +72,8 @@ sudo apt-get install python3-tk
72
72
73
73
### How to install
74
74
75
+ #### Prepare a virtual Environment
76
+
75
77
Install virtualenv (if not already installed):
76
78
77
79
``` shell
@@ -102,24 +104,26 @@ Activate the virtual env:
102
104
source toraxvenv/bin/activate
103
105
```
104
106
105
- Download QLKNN dependencies:
107
+ #### Install QLKNN_7_11
106
108
107
109
``` shell
108
- git clone https://gitlab.com/qualikiz-group/qlknn-hyper.git
110
+ git clone https://github.com/google-deepmind/fusion_transport_surrogates.git
111
+ pip install -e ./fusion_transport_surrogates
112
+ export TORAX_QLKNN_MODEL_PATH=" $PWD " /fusion_transport_surrogates/fusion_transport_surrogates/models/qlknn_7_11.qlknn
109
113
```
110
114
111
- ``` shell
112
- export TORAX_QLKNN_MODEL_PATH=" $PWD " /qlknn-hyper
113
- ```
114
-
115
- It is recommended to automate the environment variable export. For example, if
116
- using bash, run:
115
+ We recommend automating the variable export. If using bash, run:
117
116
118
117
``` shell
119
- echo export TORAX_QLKNN_MODEL_PATH=" $PWD " /qlknn-hyper >> ~ /.bashrc
118
+ echo export TORAX_QLKNN_MODEL_PATH=" $PWD " /fusion_transport_surrogates/fusion_transport_surrogates/models/qlknn_7_11. qlknn >> ~ /.bashrc
120
119
```
120
+
121
121
The above command only needs to be run once on a given system.
122
122
123
+ An alternative to QLKNN_7_11 is [ QLKNN-hyper] ( #optional-install-qlknn-hyper )
124
+
125
+ #### Install TORAX
126
+
123
127
Download and install the TORAX codebase via http:
124
128
125
129
``` shell
@@ -177,8 +181,7 @@ completed.
177
181
To run more involved, ITER-inspired simulations, run:
178
182
179
183
``` shell
180
- python3 run_simulation_main.py
181
- --config=' torax.examples.iterhybrid_rampup'
184
+ python3 run_simulation_main.py --config=' torax.examples.iterhybrid_rampup'
182
185
```
183
186
184
187
and
@@ -192,7 +195,7 @@ run command, and environment variables. For example, for increased output
192
195
verbosity, can run with the ` --log_progress ` flag.
193
196
194
197
``` shell
195
- python3 run_simulation_main.py
198
+ python3 run_simulation_main.py \
196
199
--config=' torax.examples.iterhybrid_rampup' --log_progress
197
200
```
198
201
@@ -285,6 +288,34 @@ You can get out of the Python virtual env by deactivating it:
285
288
deactivate
286
289
```
287
290
291
+ #### (Optional) Install QLKNN-hyper
292
+
293
+ An alternative to QLKNN_7_11 is to use QLKNN-hyper (also known as QLKNN10D)
294
+ instead. QLKNN_7_11 was trained on more recent data that includes more
295
+ information about impurities, and better coverage of the edge region compared
296
+ to QLKNN-hyper. However, it is still widely used in other simulators, so it can
297
+ be useful for comparative studies for instance.
298
+
299
+ Download QLKNN-hyper dependencies:
300
+
301
+ ``` shell
302
+ git clone https://gitlab.com/qualikiz-group/qlknn-hyper.git
303
+ ```
304
+
305
+ Make QLKNN-hyper the default QLKNN model.
306
+
307
+ ``` shell
308
+ export TORAX_QLKNN_MODEL_PATH=" $PWD " /qlknn-hyper
309
+ ```
310
+
311
+ It is recommended to automate the environment variable export. For example, if
312
+ using bash, run:
313
+
314
+ ``` shell
315
+ echo export TORAX_QLKNN_MODEL_PATH=" $PWD " /qlknn-hyper >> ~ /.bashrc
316
+ ```
317
+ The above command only needs to be run once on a given system.
318
+
288
319
## Simulation tutorials
289
320
290
321
Under construction
0 commit comments