Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
538131f
1
Parent(s):
4bac676
add catalyst examples
Browse files- app.py +88 -0
- examples/cu111_O.traj +0 -0
- examples/cu111_slab.traj +0 -0
- examples/pt111.traj +0 -0
- examples/pt111_O.traj +0 -0
app.py
CHANGED
@@ -680,6 +680,94 @@ def main():
|
|
680 |
label="Molecular Dynamics Examples",
|
681 |
)
|
682 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
683 |
gr.Markdown(
|
684 |
"""
|
685 |
Once you understand how the UMA model can be applied to different types of molecules and materials, the final tab above will help you try it out with your own structures!
|
|
|
680 |
label="Molecular Dynamics Examples",
|
681 |
)
|
682 |
|
683 |
+
with gr.Accordion(
|
684 |
+
"UMA can be used for catalyst adsorption energies",
|
685 |
+
open=False,
|
686 |
+
):
|
687 |
+
gr.Markdown("[See the OC20 tutorials for how to use these energies!](https://fair-chem.github.io/catalysts/examples_tutorials/OCP-introduction.html)")
|
688 |
+
gr.Examples(
|
689 |
+
examples=[
|
690 |
+
[
|
691 |
+
str(
|
692 |
+
Path(__file__).parent
|
693 |
+
/ "./examples/pt111.traj"
|
694 |
+
),
|
695 |
+
300,
|
696 |
+
0.05,
|
697 |
+
"OC20",
|
698 |
+
0,
|
699 |
+
1,
|
700 |
+
False,
|
701 |
+
"This is a bare Pt111 slab, with 4 layers.",
|
702 |
+
],
|
703 |
+
[
|
704 |
+
str(
|
705 |
+
Path(__file__).parent
|
706 |
+
/ "./examples/pt111_O.traj"
|
707 |
+
),
|
708 |
+
300,
|
709 |
+
0.05,
|
710 |
+
"OC20",
|
711 |
+
0,
|
712 |
+
1,
|
713 |
+
False,
|
714 |
+
"This is a Pt111 slab with an O adsorbed.",
|
715 |
+
],
|
716 |
+
[
|
717 |
+
str(
|
718 |
+
Path(__file__).parent
|
719 |
+
/ "./examples/cu111.traj"
|
720 |
+
),
|
721 |
+
300,
|
722 |
+
0.05,
|
723 |
+
"OC20",
|
724 |
+
0,
|
725 |
+
1,
|
726 |
+
False,
|
727 |
+
"This is a bare Cu111 slab, with 4 layers.",
|
728 |
+
],
|
729 |
+
[
|
730 |
+
str(
|
731 |
+
Path(__file__).parent
|
732 |
+
/ "./examples/cu111_O.traj"
|
733 |
+
),
|
734 |
+
300,
|
735 |
+
0.05,
|
736 |
+
"OC20",
|
737 |
+
0,
|
738 |
+
1,
|
739 |
+
False,
|
740 |
+
"This is a Cu111 slab with an O adsorbed.",
|
741 |
+
],
|
742 |
+
],
|
743 |
+
example_labels=[
|
744 |
+
"Pt(111) slab",
|
745 |
+
"Pt(111)+*O adslab",
|
746 |
+
"Cu(111) slab",
|
747 |
+
"Cu(111)+*O adslab",
|
748 |
+
],
|
749 |
+
inputs=[
|
750 |
+
input_structure,
|
751 |
+
optimization_steps,
|
752 |
+
fmax,
|
753 |
+
task_name,
|
754 |
+
total_charge,
|
755 |
+
spin_multiplicity,
|
756 |
+
relax_unit_cell,
|
757 |
+
explanation_buffer,
|
758 |
+
],
|
759 |
+
outputs=[
|
760 |
+
output_traj,
|
761 |
+
output_text,
|
762 |
+
reproduction_script,
|
763 |
+
explanation,
|
764 |
+
],
|
765 |
+
fn=run_relaxation_simulation,
|
766 |
+
run_on_click=True,
|
767 |
+
cache_examples=True,
|
768 |
+
label="Catalyst examples!",
|
769 |
+
)
|
770 |
+
|
771 |
gr.Markdown(
|
772 |
"""
|
773 |
Once you understand how the UMA model can be applied to different types of molecules and materials, the final tab above will help you try it out with your own structures!
|
examples/cu111_O.traj
ADDED
Binary file (1.39 kB). View file
|
|
examples/cu111_slab.traj
ADDED
Binary file (1.35 kB). View file
|
|
examples/pt111.traj
ADDED
Binary file (1.32 kB). View file
|
|
examples/pt111_O.traj
ADDED
Binary file (1.39 kB). View file
|
|