Skip to content

Commit e63ebcd

Browse files
Merge branch 'main' into patch-1
2 parents f8bb14a + 649546c commit e63ebcd

25 files changed

Lines changed: 1810 additions & 337 deletions

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Calculator).
2525

2626
## Documentation
2727

28-
The API documentation and tutorials are available at https://matcalc.ai.
28+
The API documentation and tutorials are available at http://matcalc.ai.
2929

3030
## Outline
3131

@@ -175,6 +175,11 @@ initializing the benchmark to limit the number of calculations to do some testin
175175

176176
Docker images with MatCalc and LAMMPS support are available at the [Materials Virtual Lab Docker Repository].
177177

178+
## Tutorials
179+
180+
Anubhav Jain (@computron) has created a nice [YouTube tutorial](https://youtu.be/57Elhe4IIhI?si=KbZh5s7HAyNGvmFT) on
181+
how to use MatCalc to quickly obtain properties of materials.
182+
178183
## Citing
179184

180185
A manuscript on `matcalc` is currently in the works. In the meantime, please see [`citation.cff`](citation.cff) or the GitHub

docs/index.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,17 @@ Calculator).
3131

3232
## Documentation
3333

34-
The API documentation and tutorials are available at https://matcalc.ai.
34+
The API documentation and tutorials are available at http://matcalc.ai.
3535

3636
## Outline
3737

3838
The main base class in MatCalc is `PropCalc` (property calculator). [All `PropCalc` subclasses](https://github.com/search?q=repo%3Amaterialsvirtuallab%2Fmatcalc%20%22(PropCalc)%22) should implement a
39-
`calc(pymatgen.Structure) -> dict` method that returns a dictionary of properties.
39+
`calc(pymatgen.Structure | ase.Atoms | dict) -> dict` method that returns a dictionary of properties.
4040

4141
In general, `PropCalc` should be initialized with an ML model or [ASE] calculator, which is then used by either ASE,
4242
LAMMPS or some other simulation code to perform calculations of properties. The `matcalc.PESCalculator` class
43-
provides easy access to many universal MLIPs as well as an interface to
43+
provides easy access to many foundation potentials (FPs) as well as an interface to MAML for custom MLIPs
44+
such as MTP, NNP, GAP, etc.
4445

4546
# Basic Usage
4647

@@ -60,6 +61,12 @@ print(f"K_VRH = {props['bulk_modulus_vrh'] * 160.2176621} GPa")
6061

6162
The calculated `K_VRH` is about 102 GPa, in reasonably good agreement with the experimental and DFT values.
6263

64+
You can easily access a list of universal calculators (not comprehensive) using the UNIVERSAL_CALCULATORS enum.
65+
66+
```python
67+
print(mtc.UNIVERSAL_CALCULATORS)
68+
```
69+
6370
While we generally recommend users to specify exactly the model they would like to use, MatCalc provides useful
6471
(case-insensitive) aliases to our recommended models for PBE and r2SCAN predictions. These can be loaded using:
6572

@@ -69,8 +76,8 @@ pbe_calculator = mtc.load_fp("pbe")
6976
r2scan_calculator = mtc.load_fp("r2scan")
7077
```
7178

72-
At the time of writing, these are the TensorNet-MatPES models. However, these recommendations may updated as improved
73-
models become available.
79+
At the time of writing, these are the `TensorNet-MatPES-v2025.1` models for these functionals. However, these
80+
recommendations may updated as improved models become available.
7481

7582
MatCalc also supports trivial parallelization using joblib via the `calc_many` method.
7683

@@ -129,7 +136,7 @@ Chaining can also be used with the `calc_many` method, with parallelization.
129136

130137
### CLI tool
131138

132-
A CLI tool provides a means to use universal MLIPs to obtain properties for any structure. Example usage:
139+
A CLI tool provides a means to use FPs to obtain properties for any structure. Example usage:
133140

134141
```shell
135142
matcalc calc -p ElasticityCalc -s Li2O.cif
@@ -174,6 +181,11 @@ initializing the benchmark to limit the number of calculations to do some testin
174181

175182
Docker images with MatCalc and LAMMPS support are available at the [Materials Virtual Lab Docker Repository].
176183

184+
## Tutorials
185+
186+
Anubhav Jain (@computron) has created a nice [YouTube tutorial](https://youtu.be/57Elhe4IIhI?si=KbZh5s7HAyNGvmFT) on
187+
how to use MatCalc to quickly obtain properties of materials.
188+
177189
## Citing
178190

179191
A manuscript on `matcalc` is currently in the works. In the meantime, please see [`citation.cff`](citation.cff) or the GitHub

docs/matcalc._base.html

Lines changed: 66 additions & 58 deletions
Large diffs are not rendered by default.

docs/matcalc._cli.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
77

88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9-
<title>matcalc._cli module &mdash; matcalc 0.3.3 documentation</title>
9+
<title>matcalc._cli module &mdash; matcalc 0.4.2 documentation</title>
1010
<link rel="stylesheet" type="text/css" href="assets/pygments.css?v=03e43079" />
1111
<link rel="stylesheet" type="text/css" href="assets/css/theme.css?v=e59714d7" />
1212
<link rel="stylesheet" type="text/css" href="assets/css/custom.css" />
@@ -15,7 +15,7 @@
1515
<link rel="canonical" href="http://matcalc.aimatcalc._cli.html"/>
1616
<script src="assets/jquery.js?v=5d32c60e"></script>
1717
<script src="assets/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
18-
<script src="assets/documentation_options.js?v=d5a15cff"></script>
18+
<script src="assets/documentation_options.js?v=ff822928"></script>
1919
<script src="assets/doctools.js?v=9bcbadda"></script>
2020
<script src="assets/sphinx_highlight.js?v=dc90522c"></script>
2121
<script src="assets/js/theme.js"></script>
@@ -46,6 +46,7 @@
4646
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
4747
<ul class="current">
4848
<li class="toctree-l1 current"><a class="reference internal" href="matcalc.html">matcalc package</a><ul class="current">
49+
<li class="toctree-l2"><a class="reference internal" href="matcalc.html#subpackages">Subpackages</a></li>
4950
<li class="toctree-l2 current"><a class="reference internal" href="matcalc.html#submodules">Submodules</a><ul class="current">
5051
<li class="toctree-l3"><a class="reference internal" href="matcalc._base.html">matcalc._base module</a></li>
5152
<li class="toctree-l3 current"><a class="current reference internal" href="#">matcalc._cli module</a><ul>
@@ -56,6 +57,8 @@
5657
</li>
5758
<li class="toctree-l3"><a class="reference internal" href="matcalc._elasticity.html">matcalc._elasticity module</a></li>
5859
<li class="toctree-l3"><a class="reference internal" href="matcalc._eos.html">matcalc._eos module</a></li>
60+
<li class="toctree-l3"><a class="reference internal" href="matcalc._lammps.html">matcalc._lammps module</a></li>
61+
<li class="toctree-l3"><a class="reference internal" href="matcalc._md.html">matcalc._md module</a></li>
5962
<li class="toctree-l3"><a class="reference internal" href="matcalc._neb.html">matcalc._neb module</a></li>
6063
<li class="toctree-l3"><a class="reference internal" href="matcalc._phonon.html">matcalc._phonon module</a></li>
6164
<li class="toctree-l3"><a class="reference internal" href="matcalc._phonon3.html">matcalc._phonon3 module</a></li>
@@ -103,7 +106,7 @@
103106
<p>Command line interface to matcalc.</p>
104107
<dl class="py function">
105108
<dt class="sig sig-object py" id="matcalc._cli.calculate_property">
106-
<span class="sig-name descname"><span class="pre">calculate_property</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">args</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Any</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="reference external" href="https://github.com/materialsvirtuallab/matcalc/blob/v0.3.3/src/matcalc/_cli.py#L19-L38"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#matcalc._cli.calculate_property" title="Link to this definition"></a></dt>
109+
<span class="sig-name descname"><span class="pre">calculate_property</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">args</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Any</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="reference external" href="https://github.com/materialsvirtuallab/matcalc/blob/v0.4.2/src/matcalc/_cli.py#L19-L38"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#matcalc._cli.calculate_property" title="Link to this definition"></a></dt>
107110
<dd><p>Implements calculate property.</p>
108111
<dl class="field-list simple">
109112
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
@@ -117,7 +120,7 @@
117120

118121
<dl class="py function">
119122
<dt class="sig sig-object py" id="matcalc._cli.clear_cache">
120-
<span class="sig-name descname"><span class="pre">clear_cache</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">args</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Any</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="reference external" href="https://github.com/materialsvirtuallab/matcalc/blob/v0.3.3/src/matcalc/_cli.py#L41-L48"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#matcalc._cli.clear_cache" title="Link to this definition"></a></dt>
123+
<span class="sig-name descname"><span class="pre">clear_cache</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">args</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Any</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="reference external" href="https://github.com/materialsvirtuallab/matcalc/blob/v0.4.2/src/matcalc/_cli.py#L41-L48"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#matcalc._cli.clear_cache" title="Link to this definition"></a></dt>
121124
<dd><p>Clear the benchmark cache.</p>
122125
<dl class="field-list simple">
123126
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
@@ -131,7 +134,7 @@
131134

132135
<dl class="py function">
133136
<dt class="sig sig-object py" id="matcalc._cli.main">
134-
<span class="sig-name descname"><span class="pre">main</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="reference external" href="https://github.com/materialsvirtuallab/matcalc/blob/v0.3.3/src/matcalc/_cli.py#L51-L126"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#matcalc._cli.main" title="Link to this definition"></a></dt>
137+
<span class="sig-name descname"><span class="pre">main</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">None</span></span></span><a class="reference external" href="https://github.com/materialsvirtuallab/matcalc/blob/v0.4.2/src/matcalc/_cli.py#L51-L126"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#matcalc._cli.main" title="Link to this definition"></a></dt>
135138
<dd><p>Handle main.</p>
136139
</dd></dl>
137140

0 commit comments

Comments
 (0)