File size: 11,687 Bytes
de52efb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | <!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quantum Mechanics — chemlib v1.0 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
<script src="_static/js/html5shiv.min.js"></script>
<![endif]-->
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
<script src="_static/jquery.js"></script>
<script src="_static/underscore.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/js/theme.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="prev" title="Electrochemistry" href="electrochemistry.html" />
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="index.html" class="icon icon-home"> chemlib
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="core.html">Core Data</a></li>
<li class="toctree-l1"><a class="reference internal" href="compounds.html">Chemical Compounds</a></li>
<li class="toctree-l1"><a class="reference internal" href="formulae.html">Empirical Formulae</a></li>
<li class="toctree-l1"><a class="reference internal" href="reactions.html">Chemical Reactions</a></li>
<li class="toctree-l1"><a class="reference internal" href="solution.html">Aqueous Solutions</a></li>
<li class="toctree-l1"><a class="reference internal" href="electrochemistry.html">Electrochemistry</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Quantum Mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#electromagnetic-waves">Electromagnetic Waves</a></li>
<li class="toctree-l2"><a class="reference internal" href="#electrons-and-orbitals">Electrons and Orbitals</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">chemlib</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html" class="icon icon-home"></a> »</li>
<li>Quantum Mechanics</li>
<li class="wy-breadcrumbs-aside">
<a href="_sources/quantum.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<section id="quantum-mechanics">
<h1>Quantum Mechanics<a class="headerlink" href="#quantum-mechanics" title="Permalink to this headline">ο</a></h1>
<section id="electromagnetic-waves">
<h2>Electromagnetic Waves<a class="headerlink" href="#electromagnetic-waves" title="Permalink to this headline">ο</a></h2>
<dl class="py class">
<dt class="sig sig-object py" id="chemlib.quantum_mechanics.Wave">
<em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">chemlib.quantum_mechanics.</span></span><span class="sig-name descname"><span class="pre">Wave</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#chemlib.quantum_mechanics.Wave" title="Permalink to this definition">ο</a></dt>
<dd></dd></dl>
<p>Makes a Wave object given either wavelength (in meters), frequency (in Hz), or energy (in J per photon), and calculates the aforementioned values.</p>
<dl class="field-list simple">
<dt class="field-odd">param kwargs</dt>
<dd class="field-odd"><p>The value of the known variable (wavelength=, frequency=, or energy=)</p>
</dd>
</dl>
<p>Determine the wavelength, frequency, and energy of a wave with frequency 2e+17 Hz:</p>
<div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="kn">from</span> <span class="nn">chemlib</span> <span class="kn">import</span> <span class="n">Wave</span>
<span class="gp">>>> </span><span class="n">w</span> <span class="o">=</span> <span class="n">Wave</span><span class="p">(</span><span class="n">frequency</span><span class="o">=</span><span class="mf">2e+17</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">w</span><span class="o">.</span><span class="n">properties</span>
<span class="go">{'wavelength': 1.499e-09, 'frequency': 2e+17, 'energy': 1.325e-16}</span>
</pre></div>
</div>
<p>Determine the wavelength, frequency, and energy of a wave with wavelength 3e-9 m:</p>
<div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">w</span> <span class="o">=</span> <span class="n">Wave</span><span class="p">(</span><span class="n">wavelength</span><span class="o">=</span><span class="mf">3e-9</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">w</span><span class="o">.</span><span class="n">properties</span>
<span class="go">{'wavelength': 3e-09, 'frequency': 9.993e+16, 'energy': 6.622e-17}</span>
</pre></div>
</div>
<p>Determine the wavelength, frequency, and energy of a wave with energy 3e-15 Joules per particle:</p>
<div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="kn">from</span> <span class="nn">chemlib</span> <span class="kn">import</span> <span class="n">Wave</span>
<span class="gp">>>> </span><span class="n">w</span> <span class="o">=</span> <span class="n">Wave</span><span class="p">(</span><span class="n">energy</span><span class="o">=</span><span class="mf">3e-15</span><span class="p">)</span>
<span class="gp">>>> </span><span class="n">w</span><span class="o">.</span><span class="n">properties</span>
<span class="go">{'wavelength': 4.387e-44, 'frequency': 4.528e+18, 'energy': 3e-15}</span>
</pre></div>
</div>
<blockquote>
<div><dl class="py data">
<dt class="sig sig-object py" id="chemlib.quantum_mechanics.Wave.properties">
<span class="sig-prename descclassname"><span class="pre">chemlib.quantum_mechanics.Wave.</span></span><span class="sig-name descname"><span class="pre">properties</span></span><em class="property"><span class="pre">:</span> <span class="pre">dict</span></em><a class="headerlink" href="#chemlib.quantum_mechanics.Wave.properties" title="Permalink to this definition">ο</a></dt>
<dd></dd></dl>
<dl class="py data">
<dt class="sig sig-object py" id="chemlib.quantum_mechanics.Wave.wavelength">
<span class="sig-prename descclassname"><span class="pre">chemlib.quantum_mechanics.Wave.</span></span><span class="sig-name descname"><span class="pre">wavelength</span></span><em class="property"><span class="pre">:</span> <span class="pre">float</span></em><a class="headerlink" href="#chemlib.quantum_mechanics.Wave.wavelength" title="Permalink to this definition">ο</a></dt>
<dd></dd></dl>
<dl class="py data">
<dt class="sig sig-object py" id="chemlib.quantum_mechanics.Wave.frequency">
<span class="sig-prename descclassname"><span class="pre">chemlib.quantum_mechanics.Wave.</span></span><span class="sig-name descname"><span class="pre">frequency</span></span><em class="property"><span class="pre">:</span> <span class="pre">float</span></em><a class="headerlink" href="#chemlib.quantum_mechanics.Wave.frequency" title="Permalink to this definition">ο</a></dt>
<dd></dd></dl>
<dl class="py data">
<dt class="sig sig-object py" id="chemlib.quantum_mechanics.Wave.energy">
<span class="sig-prename descclassname"><span class="pre">chemlib.quantum_mechanics.Wave.</span></span><span class="sig-name descname"><span class="pre">energy</span></span><em class="property"><span class="pre">:</span> <span class="pre">float</span></em><a class="headerlink" href="#chemlib.quantum_mechanics.Wave.energy" title="Permalink to this definition">ο</a></dt>
<dd></dd></dl>
</div></blockquote>
</section>
<section id="electrons-and-orbitals">
<h2>Electrons and Orbitals<a class="headerlink" href="#electrons-and-orbitals" title="Permalink to this headline">ο</a></h2>
<dl class="py function">
<dt class="sig sig-object py" id="chemlib.quantum_mechanics.energy_of_hydrogen_orbital">
<span class="sig-prename descclassname"><span class="pre">chemlib.quantum_mechanics.</span></span><span class="sig-name descname"><span class="pre">energy_of_hydrogen_orbital</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">n</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">float</span></span></span><a class="headerlink" href="#chemlib.quantum_mechanics.energy_of_hydrogen_orbital" title="Permalink to this definition">ο</a></dt>
<dd></dd></dl>
<p>Gets the energy of an electron in the nth orbital of the Hydrogen atom in Joules.</p>
<div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="kn">from</span> <span class="nn">chemlib</span> <span class="kn">import</span> <span class="n">energy_of_hydrogen_orbital</span>
<span class="gp">>>> </span><span class="n">energy_of_hydrogen_orbital</span><span class="p">(</span><span class="mi">3</span><span class="p">)</span>
<span class="go">-2.4221749394666667e-19</span>
</pre></div>
</div>
</section>
</section>
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="electrochemistry.html" class="btn btn-neutral float-left" title="Electrochemistry" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<p>© Copyright 2020, Hari Ambethkar.</p>
</div>
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html> |