Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kthpanor committed Jan 20, 2024
1 parent 40b2bd6 commit 3fa895c
Show file tree
Hide file tree
Showing 6 changed files with 488 additions and 709 deletions.
365 changes: 158 additions & 207 deletions _sources/docs/elec_struct/dft_prop.ipynb

Large diffs are not rendered by default.

661 changes: 243 additions & 418 deletions _sources/docs/elec_struct/kernel_int.ipynb

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions docs/elec_struct/dft.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,6 @@
<li class="toctree-l1 has-children"><a class="reference internal" href="../intro.html">Getting started</a><input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-1"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="../install.html">Installation</a></li>
<li class="toctree-l2"><a class="reference internal" href="../basics_notebook.html">Using Jupyter notebooks</a></li>







<li class="toctree-l2"><a class="reference internal" href="../units_notation.html">Units and notation</a></li>
</ul>
</li>
Expand Down
61 changes: 33 additions & 28 deletions docs/elec_struct/dft_prop.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,6 @@
<li class="toctree-l1 has-children"><a class="reference internal" href="../intro.html">Getting started</a><input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-1"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="../install.html">Installation</a></li>
<li class="toctree-l2"><a class="reference internal" href="../basics_notebook.html">Using Jupyter notebooks</a></li>







<li class="toctree-l2"><a class="reference internal" href="../units_notation.html">Units and notation</a></li>
</ul>
</li>
Expand Down Expand Up @@ -655,30 +648,30 @@ <h1>First-order properties<a class="headerlink" href="#first-order-properties" t
</div>
</div>
</div>
<p>Define the system.</p>
<div class="cell tag_remove-output docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="c1"># define a molecular system</span>
<span class="n">h2o_xyz</span> <span class="o">=</span> <span class="s2">&quot;&quot;&quot;3</span>
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">h2o_xyz</span> <span class="o">=</span> <span class="s2">&quot;&quot;&quot;3</span>

<span class="s2">O 0.000000000000 0.000000000000 0.000000000000</span>
<span class="s2">H 0.000000000000 0.740848095288 0.582094932012</span>
<span class="s2">H 0.000000000000 -0.740848095288 0.582094932012</span>
<span class="s2">&quot;&quot;&quot;</span>
<span class="n">molecule</span> <span class="o">=</span> <span class="n">vlx</span><span class="o">.</span><span class="n">Molecule</span><span class="o">.</span><span class="n">read_xyz_string</span><span class="p">(</span><span class="n">h2o_xyz</span><span class="p">)</span>
<span class="n">basis</span> <span class="o">=</span> <span class="n">vlx</span><span class="o">.</span><span class="n">MolecularBasis</span><span class="o">.</span><span class="n">read</span><span class="p">(</span><span class="n">molecule</span><span class="p">,</span> <span class="s2">&quot;cc-pvdz&quot;</span><span class="p">)</span>

<span class="n">scf_drv</span> <span class="o">=</span> <span class="n">vlx</span><span class="o">.</span><span class="n">ScfRestrictedDriver</span><span class="p">()</span>
<span class="n">scf_drv</span><span class="o">.</span><span class="n">xcfun</span> <span class="o">=</span> <span class="s2">&quot;b3lyp&quot;</span>

<span class="n">scf_results</span> <span class="o">=</span> <span class="n">scf_drv</span><span class="o">.</span><span class="n">compute</span><span class="p">(</span><span class="n">molecule</span><span class="p">,</span> <span class="n">basis</span><span class="p">)</span>
<span class="n">basis</span> <span class="o">=</span> <span class="n">vlx</span><span class="o">.</span><span class="n">MolecularBasis</span><span class="o">.</span><span class="n">read</span><span class="p">(</span><span class="n">molecule</span><span class="p">,</span> <span class="s2">&quot;cc-pvdz&quot;</span><span class="p">,</span> <span class="n">ostream</span><span class="o">=</span><span class="kc">None</span><span class="p">)</span>
</pre></div>
</div>
</div>
</div>
<div class="cell tag_remove-input docutils container">
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">molecule</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_html"><div id="3dmolviewer_1705743503175693" style="position: relative; width: 300px; height: 200px;">
<p id="3dmolwarning_1705743503175693" style="background-color:#ffcccc;color:black">You appear to be running in JupyterLab (or JavaScript failed to load for some other reason). You need to install the 3dmol extension: <br>
<div class="output text_html"><div id="3dmolviewer_1705778212361071" style="position: relative; width: 400px; height: 300px;">
<p id="3dmolwarning_1705778212361071" style="background-color:#ffcccc;color:black">You appear to be running in JupyterLab (or JavaScript failed to load for some other reason). You need to install the 3dmol extension: <br>
<tt>jupyter labextension install jupyterlab_3dmol</tt></p>
</div>
<script>
Expand Down Expand Up @@ -710,23 +703,35 @@ <h1>First-order properties<a class="headerlink" href="#first-order-properties" t
$3Dmolpromise = loadScriptAsync('https://cdnjs.cloudflare.com/ajax/libs/3Dmol/2.0.4/3Dmol-min.js');
}

var viewer_1705743503175693 = null;
var warn = document.getElementById("3dmolwarning_1705743503175693");
var viewer_1705778212361071 = null;
var warn = document.getElementById("3dmolwarning_1705778212361071");
if(warn) {
warn.parentNode.removeChild(warn);
}
$3Dmolpromise.then(function() {
viewer_1705743503175693 = $3Dmol.createViewer(document.getElementById("3dmolviewer_1705743503175693"),{backgroundColor:"white"});
viewer_1705743503175693.zoomTo();
viewer_1705743503175693.addModel("3\n\nO 0.000000000000 0.000000000000 0.000000000000\nH 0.000000000000 0.740848095288 0.582094932012\nH 0.000000000000 -0.740848095288 0.582094932012\n","xyz");
viewer_1705743503175693.setViewStyle({"style": "outline", "width": 0.05});
viewer_1705743503175693.setStyle({"stick": {}, "sphere": {"scale": 0.25}});
viewer_1705743503175693.rotate(90,"y");
viewer_1705743503175693.rotate(-90,"x");
viewer_1705743503175693.render();
viewer_1705778212361071 = $3Dmol.createViewer(document.getElementById("3dmolviewer_1705778212361071"),{backgroundColor:"white"});
viewer_1705778212361071.zoomTo();
viewer_1705778212361071.addModel("3\n\nO 0.000000000000 0.000000000000 0.000000000000\nH 0.000000000000 0.740848095288 0.582094932012\nH 0.000000000000 -0.740848095288 0.582094932012\n");
viewer_1705778212361071.setViewStyle({"style": "outline", "width": 0.05});
viewer_1705778212361071.setStyle({"stick": {}, "sphere": {"scale": 0.25}});
viewer_1705778212361071.zoomTo();
viewer_1705778212361071.render();
});
</script></div></div>
</div>
<p>Define the method and perform an SCF optimization.</p>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">scf_drv</span> <span class="o">=</span> <span class="n">vlx</span><span class="o">.</span><span class="n">ScfRestrictedDriver</span><span class="p">()</span>
<span class="n">scf_drv</span><span class="o">.</span><span class="n">ostream</span><span class="o">.</span><span class="n">mute</span><span class="p">()</span>

<span class="n">scf_drv</span><span class="o">.</span><span class="n">xcfun</span> <span class="o">=</span> <span class="s2">&quot;b3lyp&quot;</span>

<span class="n">scf_results</span> <span class="o">=</span> <span class="n">scf_drv</span><span class="o">.</span><span class="n">compute</span><span class="p">(</span><span class="n">molecule</span><span class="p">,</span> <span class="n">basis</span><span class="p">)</span>
</pre></div>
</div>
</div>
</div>
<div class="cell docutils container">
<div class="cell_input docutils container">
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">D</span> <span class="o">=</span> <span class="n">scf_results</span><span class="p">[</span><span class="s2">&quot;D_alpha&quot;</span><span class="p">]</span> <span class="o">+</span> <span class="n">scf_results</span><span class="p">[</span><span class="s2">&quot;D_beta&quot;</span><span class="p">]</span>
Expand Down
101 changes: 53 additions & 48 deletions docs/elec_struct/kernel_int.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 3fa895c

Please sign in to comment.