Skip to content

Commit 7d7a483

Browse files
authored
Merge pull request #285 from Exabyte-io/feature/SOF-7872
update: add TE convergence NB
2 parents 4ba393a + b2e9d29 commit 7d7a483

6 files changed

Lines changed: 631 additions & 53 deletions

File tree

other/materials_designer/workflows/Introduction.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
"#### 1.1.1. Hubbard U parameters via HP method. *(to be added)*\n",
1616
"\n",
1717
"### 1.2. Parameter Convergence\n",
18-
"#### 1.2.1. K-point / plane-wave cutoff / smearing convergence. *(to be added)*\n",
19-
"\n",
18+
"#### [1.2.1. K-point convergence.](total_energy_convergence.ipynb)\n",
19+
"#### 1.2.2. Plane-wave cutoff convergence. *(to be added)*\n",
20+
"#### 1.2.3. Smearing convergence. *(to be added)*\n",
2021
"\n",
2122
"## 2. Basics\n",
2223
"\n",

other/materials_designer/workflows/total_energy.ipynb

Lines changed: 50 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,16 @@
113113
"Authenticate in the browser and have credentials stored in environment variable \"OIDC_ACCESS_TOKEN\".\n"
114114
]
115115
},
116+
{
117+
"cell_type": "markdown",
118+
"id": "6",
119+
"metadata": {},
120+
"source": []
121+
},
116122
{
117123
"cell_type": "code",
118124
"execution_count": null,
119-
"id": "6",
125+
"id": "7",
120126
"metadata": {},
121127
"outputs": [],
122128
"source": [
@@ -128,7 +134,7 @@
128134
},
129135
{
130136
"cell_type": "markdown",
131-
"id": "7",
137+
"id": "8",
132138
"metadata": {},
133139
"source": [
134140
"### 2.2. Initialize API Client\n"
@@ -137,7 +143,7 @@
137143
{
138144
"cell_type": "code",
139145
"execution_count": null,
140-
"id": "8",
146+
"id": "9",
141147
"metadata": {},
142148
"outputs": [],
143149
"source": [
@@ -149,7 +155,7 @@
149155
},
150156
{
151157
"cell_type": "markdown",
152-
"id": "9",
158+
"id": "10",
153159
"metadata": {},
154160
"source": [
155161
"### 2.3. Select account to work under"
@@ -158,7 +164,7 @@
158164
{
159165
"cell_type": "code",
160166
"execution_count": null,
161-
"id": "10",
167+
"id": "11",
162168
"metadata": {},
163169
"outputs": [],
164170
"source": [
@@ -168,7 +174,7 @@
168174
{
169175
"cell_type": "code",
170176
"execution_count": null,
171-
"id": "11",
177+
"id": "12",
172178
"metadata": {},
173179
"outputs": [],
174180
"source": [
@@ -183,7 +189,7 @@
183189
},
184190
{
185191
"cell_type": "markdown",
186-
"id": "12",
192+
"id": "13",
187193
"metadata": {},
188194
"source": [
189195
"### 2.4. Select project"
@@ -192,7 +198,7 @@
192198
{
193199
"cell_type": "code",
194200
"execution_count": null,
195-
"id": "13",
201+
"id": "14",
196202
"metadata": {},
197203
"outputs": [],
198204
"source": [
@@ -203,7 +209,7 @@
203209
},
204210
{
205211
"cell_type": "markdown",
206-
"id": "14",
212+
"id": "15",
207213
"metadata": {},
208214
"source": [
209215
"## 3. Create material\n",
@@ -213,7 +219,7 @@
213219
{
214220
"cell_type": "code",
215221
"execution_count": null,
216-
"id": "15",
222+
"id": "16",
217223
"metadata": {},
218224
"outputs": [],
219225
"source": [
@@ -230,7 +236,7 @@
230236
},
231237
{
232238
"cell_type": "markdown",
233-
"id": "16",
239+
"id": "17",
234240
"metadata": {},
235241
"source": [
236242
"### 3.2. Save material to the platform"
@@ -239,7 +245,7 @@
239245
{
240246
"cell_type": "code",
241247
"execution_count": null,
242-
"id": "17",
248+
"id": "18",
243249
"metadata": {},
244250
"outputs": [],
245251
"source": [
@@ -251,7 +257,7 @@
251257
},
252258
{
253259
"cell_type": "markdown",
254-
"id": "18",
260+
"id": "19",
255261
"metadata": {},
256262
"source": [
257263
"## 4. Create workflow and set its parameters\n",
@@ -261,7 +267,7 @@
261267
{
262268
"cell_type": "code",
263269
"execution_count": null,
264-
"id": "19",
270+
"id": "20",
265271
"metadata": {},
266272
"outputs": [],
267273
"source": [
@@ -275,7 +281,7 @@
275281
},
276282
{
277283
"cell_type": "markdown",
278-
"id": "20",
284+
"id": "21",
279285
"metadata": {},
280286
"source": [
281287
"### 4.2. Create workflow from standard workflows and preview it"
@@ -284,7 +290,7 @@
284290
{
285291
"cell_type": "code",
286292
"execution_count": null,
287-
"id": "21",
293+
"id": "22",
288294
"metadata": {},
289295
"outputs": [],
290296
"source": [
@@ -301,7 +307,7 @@
301307
},
302308
{
303309
"cell_type": "markdown",
304-
"id": "22",
310+
"id": "23",
305311
"metadata": {},
306312
"source": [
307313
"### 4.3. Modify workflow (Optional)\n",
@@ -311,7 +317,7 @@
311317
{
312318
"cell_type": "code",
313319
"execution_count": null,
314-
"id": "23",
320+
"id": "24",
315321
"metadata": {},
316322
"outputs": [],
317323
"source": [
@@ -321,7 +327,7 @@
321327
},
322328
{
323329
"cell_type": "markdown",
324-
"id": "24",
330+
"id": "25",
325331
"metadata": {},
326332
"source": [
327333
"#### 4.3.2. Modify model and method parameters (Optional)\n",
@@ -331,7 +337,7 @@
331337
{
332338
"cell_type": "code",
333339
"execution_count": null,
334-
"id": "25",
340+
"id": "26",
335341
"metadata": {},
336342
"outputs": [],
337343
"source": [
@@ -361,7 +367,7 @@
361367
},
362368
{
363369
"cell_type": "markdown",
364-
"id": "26",
370+
"id": "27",
365371
"metadata": {},
366372
"source": [
367373
"#### 4.3.3. Modify important settings\n",
@@ -371,7 +377,7 @@
371377
{
372378
"cell_type": "code",
373379
"execution_count": null,
374-
"id": "27",
380+
"id": "28",
375381
"metadata": {},
376382
"outputs": [],
377383
"source": [
@@ -398,7 +404,7 @@
398404
},
399405
{
400406
"cell_type": "markdown",
401-
"id": "28",
407+
"id": "29",
402408
"metadata": {},
403409
"source": [
404410
"### 4.4. Save workflow to collection"
@@ -407,7 +413,7 @@
407413
{
408414
"cell_type": "code",
409415
"execution_count": null,
410-
"id": "29",
416+
"id": "30",
411417
"metadata": {},
412418
"outputs": [],
413419
"source": [
@@ -423,7 +429,7 @@
423429
},
424430
{
425431
"cell_type": "markdown",
426-
"id": "30",
432+
"id": "31",
427433
"metadata": {},
428434
"source": [
429435
"## 5. Create the compute configuration\n",
@@ -433,7 +439,7 @@
433439
{
434440
"cell_type": "code",
435441
"execution_count": null,
436-
"id": "31",
442+
"id": "32",
437443
"metadata": {},
438444
"outputs": [],
439445
"source": [
@@ -443,7 +449,7 @@
443449
},
444450
{
445451
"cell_type": "markdown",
446-
"id": "32",
452+
"id": "33",
447453
"metadata": {},
448454
"source": [
449455
"### 5.2. Create compute configuration for the job\n"
@@ -452,7 +458,7 @@
452458
{
453459
"cell_type": "code",
454460
"execution_count": null,
455-
"id": "33",
461+
"id": "34",
456462
"metadata": {},
457463
"outputs": [],
458464
"source": [
@@ -474,7 +480,7 @@
474480
},
475481
{
476482
"cell_type": "markdown",
477-
"id": "34",
483+
"id": "35",
478484
"metadata": {},
479485
"source": [
480486
"## 6. Create the job with material and workflow configuration\n",
@@ -484,7 +490,7 @@
484490
{
485491
"cell_type": "code",
486492
"execution_count": null,
487-
"id": "35",
493+
"id": "36",
488494
"metadata": {},
489495
"outputs": [],
490496
"source": [
@@ -499,7 +505,7 @@
499505
"job_response = create_job(\n",
500506
" api_client=client,\n",
501507
" materials=[saved_material],\n",
502-
" workflow=saved_workflow,\n",
508+
" workflow=workflow,\n",
503509
" project_id=project_id,\n",
504510
" owner_id=ACCOUNT_ID,\n",
505511
" prefix=job_name,\n",
@@ -515,7 +521,7 @@
515521
},
516522
{
517523
"cell_type": "markdown",
518-
"id": "36",
524+
"id": "37",
519525
"metadata": {},
520526
"source": [
521527
"## 7. Submit the job and monitor the status"
@@ -524,7 +530,7 @@
524530
{
525531
"cell_type": "code",
526532
"execution_count": null,
527-
"id": "37",
533+
"id": "38",
528534
"metadata": {},
529535
"outputs": [],
530536
"source": [
@@ -535,7 +541,7 @@
535541
{
536542
"cell_type": "code",
537543
"execution_count": null,
538-
"id": "38",
544+
"id": "39",
539545
"metadata": {},
540546
"outputs": [],
541547
"source": [
@@ -546,7 +552,7 @@
546552
},
547553
{
548554
"cell_type": "markdown",
549-
"id": "39",
555+
"id": "40",
550556
"metadata": {},
551557
"source": [
552558
"## 8. Retrieve results"
@@ -555,7 +561,7 @@
555561
{
556562
"cell_type": "code",
557563
"execution_count": null,
558-
"id": "40",
564+
"id": "41",
559565
"metadata": {},
560566
"outputs": [],
561567
"source": [
@@ -565,6 +571,14 @@
565571
"property_data = client.properties.get_for_job(job_id, property_name=PropertyName.scalar.total_energy.value)\n",
566572
"visualize_properties(property_data, title=\"Total Energy\")\n"
567573
]
574+
},
575+
{
576+
"cell_type": "code",
577+
"execution_count": null,
578+
"id": "42",
579+
"metadata": {},
580+
"outputs": [],
581+
"source": []
568582
}
569583
],
570584
"metadata": {

0 commit comments

Comments
 (0)