Skip to content

Commit 366d70b

Browse files
committed
Deploying to gh-pages from @ 299d789 🚀
1 parent 6ec21e2 commit 366d70b

File tree

236 files changed

+33074
-20578
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+33074
-20578
lines changed

.buildinfo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: 4d136dd51fdabc0097318a53b793da44
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7

README.html

Lines changed: 656 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
\newcommand{\domainSize}{${DOMAINSIZE}}
2+
\newcommand{\numDofs}{${NUMDOFS}}
3+
\newcommand{\plotDataPath}{${PLOTDATAPATH}}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
"""
2+
$ pvbatch postprocessing.py -h
3+
"""
4+
5+
import sys
6+
import argparse
7+
from paraview.simple import (
8+
PlotOverLine,
9+
PVDReader,
10+
SaveData,
11+
UpdatePipeline,
12+
)
13+
14+
15+
def main(args):
16+
pvd_file = args.pvd
17+
source = PVDReader(registrationName="poisson.pvd", FileName=[pvd_file])
18+
source.PointArrays = [args.field]
19+
UpdatePipeline()
20+
21+
(xmin, xmax, ymin, ymax, zmin, zmax) = source.GetDataInformation().GetBounds()
22+
# init the 'Line' selected for 'Source'
23+
plotOverLine1 = PlotOverLine(
24+
registrationName="PlotOverLine1", Input=source, Source="Line"
25+
)
26+
plotOverLine1.Source.Point1 = [xmin, ymin, zmin]
27+
plotOverLine1.Source.Point2 = [xmax, ymax, zmax]
28+
UpdatePipeline()
29+
30+
# save data
31+
SaveData(
32+
args.csv,
33+
proxy=plotOverLine1,
34+
ChooseArraysToWrite=1,
35+
PointDataArrays=["arc_length", args.field, "vtkValidPointMask"],
36+
)
37+
38+
39+
if __name__ == "__main__":
40+
parser = argparse.ArgumentParser(
41+
prog=f"pvbatch {__file__}",
42+
description="Plots the solution over a line and writes the data to file.",
43+
usage="%(prog)s [options] pvd csv",
44+
)
45+
parser.add_argument("pvd", type=str, help="The source pvd filepath.")
46+
parser.add_argument("csv", type=str, help="The target csv filepath.")
47+
parser.add_argument(
48+
"--field",
49+
type=str,
50+
default="u",
51+
help="Field variable to plot (default: u)",
52+
)
53+
args = parser.parse_args(sys.argv[1:])
54+
main(args)

environment.yml renamed to _downloads/236a3f7d8b0b8b7046fe52f5b24e2f3a/environment_qe.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
channels:
22
- conda-forge
33
dependencies:
4-
- python=3.12
5-
- pyiron_base=0.11.7
6-
- qe=7.2
7-
- qe-tools=2.0.0
84
- ase=3.24.0
95
- matplotlib=3.10.1
106
- xmlschema=3.4.3
11-
- jobflow=0.1.19
7+
- optimade=1.2.3
8+
- qe=7.2
9+
- qe-tools=2.0.0
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
def add_x_and_y(x, y):
2+
z = x + y
3+
return {"x": x, "y": y, "z": z}
4+
5+
6+
def add_x_and_y_and_z(x, y, z):
7+
w = x + y + z
8+
return w
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"nodes": {
3+
"0": "quantum_espresso_workflow.get_bulk_structure",
4+
"1": "quantum_espresso_workflow.calculate_qe",
5+
"2": "quantum_espresso_workflow.generate_structures",
6+
"3": "quantum_espresso_workflow.calculate_qe",
7+
"4": "quantum_espresso_workflow.calculate_qe",
8+
"5": "quantum_espresso_workflow.calculate_qe",
9+
"6": "quantum_espresso_workflow.calculate_qe",
10+
"7": "quantum_espresso_workflow.calculate_qe",
11+
"8": "quantum_espresso_workflow.plot_energy_volume_curve",
12+
"9": "Al",
13+
"10": 4.05,
14+
"11": true,
15+
"12": "mini",
16+
"13": "python_workflow_definition.shared.get_dict",
17+
"14": {"Al": "Al.pbe-n-kjpaw_psl.1.0.0.UPF"},
18+
"15": [3, 3, 3],
19+
"16": "vc-relax",
20+
"17": 0.02,
21+
"18": [0.9, 0.95, 1.0, 1.05, 1.1],
22+
"19": "strain_0",
23+
"20": "python_workflow_definition.shared.get_dict",
24+
"21": "scf",
25+
"22": "strain_1",
26+
"23": "python_workflow_definition.shared.get_dict",
27+
"24": "strain_2",
28+
"25": "python_workflow_definition.shared.get_dict",
29+
"26": "strain_3",
30+
"27": "python_workflow_definition.shared.get_dict",
31+
"28": "strain_4",
32+
"29": "python_workflow_definition.shared.get_dict",
33+
"30": "python_workflow_definition.shared.get_list",
34+
"31": "python_workflow_definition.shared.get_list"
35+
},
36+
"edges": [
37+
{"tn": 0, "th": "element", "sn": 9, "sh": null},
38+
{"tn": 0, "th": "a", "sn": 10, "sh": null},
39+
{"tn": 0, "th": "cubic", "sn": 11, "sh": null},
40+
{"tn": 1, "th": "working_directory", "sn": 12, "sh": null},
41+
{"tn": 13, "th": "structure", "sn": 0, "sh": null},
42+
{"tn": 13, "th": "pseudopotentials", "sn": 14, "sh": null},
43+
{"tn": 13, "th": "kpts", "sn": 15, "sh": null},
44+
{"tn": 13, "th": "calculation", "sn": 16, "sh": null},
45+
{"tn": 13, "th": "smearing", "sn": 17, "sh": null},
46+
{"tn": 1, "th": "input_dict", "sn": 13, "sh": null},
47+
{"tn": 2, "th": "structure", "sn": 1, "sh": "structure"},
48+
{"tn": 2, "th": "strain_lst", "sn": 18, "sh": null},
49+
{"tn": 3, "th": "working_directory", "sn": 19, "sh": null},
50+
{"tn": 20, "th": "structure", "sn": 2, "sh": "s_0"},
51+
{"tn": 20, "th": "pseudopotentials", "sn": 14, "sh": null},
52+
{"tn": 20, "th": "kpts", "sn": 15, "sh": null},
53+
{"tn": 20, "th": "calculation", "sn": 21, "sh": null},
54+
{"tn": 20, "th": "smearing", "sn": 17, "sh": null},
55+
{"tn": 3, "th": "input_dict", "sn": 20, "sh": null},
56+
{"tn": 4, "th": "working_directory", "sn": 22, "sh": null},
57+
{"tn": 23, "th": "structure", "sn": 2, "sh": "s_1"},
58+
{"tn": 23, "th": "pseudopotentials", "sn": 14, "sh": null},
59+
{"tn": 23, "th": "kpts", "sn": 15, "sh": null},
60+
{"tn": 23, "th": "calculation", "sn": 21, "sh": null},
61+
{"tn": 23, "th": "smearing", "sn": 17, "sh": null},
62+
{"tn": 4, "th": "input_dict", "sn": 23, "sh": null},
63+
{"tn": 5, "th": "working_directory", "sn": 24, "sh": null},
64+
{"tn": 25, "th": "structure", "sn": 2, "sh": "s_2"},
65+
{"tn": 25, "th": "pseudopotentials", "sn": 14, "sh": null},
66+
{"tn": 25, "th": "kpts", "sn": 15, "sh": null},
67+
{"tn": 25, "th": "calculation", "sn": 21, "sh": null},
68+
{"tn": 25, "th": "smearing", "sn": 17, "sh": null},
69+
{"tn": 5, "th": "input_dict", "sn": 25, "sh": null},
70+
{"tn": 6, "th": "working_directory", "sn": 26, "sh": null},
71+
{"tn": 27, "th": "structure", "sn": 2, "sh": "s_3"},
72+
{"tn": 27, "th": "pseudopotentials", "sn": 14, "sh": null},
73+
{"tn": 27, "th": "kpts", "sn": 15, "sh": null},
74+
{"tn": 27, "th": "calculation", "sn": 21, "sh": null},
75+
{"tn": 27, "th": "smearing", "sn": 17, "sh": null},
76+
{"tn": 6, "th": "input_dict", "sn": 27, "sh": null},
77+
{"tn": 7, "th": "working_directory", "sn": 28, "sh": null},
78+
{"tn": 29, "th": "structure", "sn": 2, "sh": "s_4"},
79+
{"tn": 29, "th": "pseudopotentials", "sn": 14, "sh": null},
80+
{"tn": 29, "th": "kpts", "sn": 15, "sh": null},
81+
{"tn": 29, "th": "calculation", "sn": 21, "sh": null},
82+
{"tn": 29, "th": "smearing", "sn": 17, "sh": null},
83+
{"tn": 7, "th": "input_dict", "sn": 29, "sh": null},
84+
{"tn": 30, "th": "0", "sn": 3, "sh": "volume"},
85+
{"tn": 30, "th": "1", "sn": 4, "sh": "volume"},
86+
{"tn": 30, "th": "2", "sn": 5, "sh": "volume"},
87+
{"tn": 30, "th": "3", "sn": 6, "sh": "volume"},
88+
{"tn": 30, "th": "4", "sn": 7, "sh": "volume"},
89+
{"tn": 8, "th": "volume_lst", "sn": 30, "sh": null},
90+
{"tn": 31, "th": "0", "sn": 3, "sh": "energy"},
91+
{"tn": 31, "th": "1", "sn": 4, "sh": "energy"},
92+
{"tn": 31, "th": "2", "sn": 5, "sh": "energy"},
93+
{"tn": 31, "th": "3", "sn": 6, "sh": "energy"},
94+
{"tn": 31, "th": "4", "sn": 7, "sh": "energy"},
95+
{"tn": 8, "th": "energy_lst", "sn": 31, "sh": null}
96+
]
97+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
channels:
2+
- conda-forge
3+
dependencies:
4+
- gmsh=4.6.0=hd134328_0
5+
- meshio=5.0.5=pyhd8ed1ab_0
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
channels:
2+
- conda-forge
3+
dependencies:
4+
- fenics=2019.1.0=py39hf3d152e_26

0 commit comments

Comments
 (0)