Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RCWA calculations on Binder #3

Open
wants to merge 5 commits into
base: solcore-workshop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions binder/apt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
make
git
gcc
g++
libopenblas-dev
libfftw3-dev
libsuitesparse-dev
libboost-all-dev
7 changes: 7 additions & 0 deletions binder/postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set -ex

git clone https://github.com/phoebe-p/S4
cd S4
make S4_pyext
cd ..
rm -rf S4
16 changes: 8 additions & 8 deletions docs/search.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/solcore-workshop/notebooks/2-Efficiency_limits.html
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ <h3 class="anchored" data-anchor-id="solar-spectrum">Solar Spectrum</h3>
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a><span class="co"># Setup the AM1.5G solar spectrum</span></span>
<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a>wl <span class="op">=</span> np.linspace(<span class="dv">300</span>, <span class="dv">4000</span>, <span class="dv">4000</span>) <span class="op">*</span> <span class="fl">1e-9</span> <span class="co"># wl contains the x-coordinate in wavelength</span></span>
<span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a>am15g <span class="op">=</span> LightSource(source_type<span class="op">=</span><span class="st">'standard'</span>, x<span class="op">=</span>wl<span class="op">*</span><span class="fl">1e9</span>, version<span class="op">=</span><span class="st">'AM1.5g'</span>,</span>
<span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a> outputs<span class="op">=</span><span class="st">"power_density_per_nm"</span>)</span>
<span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a> output_units<span class="op">=</span><span class="st">"power_density_per_nm"</span>)</span>
<span id="cb1-10"><a href="#cb1-10" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-11"><a href="#cb1-11" aria-hidden="true" tabindex="-1"></a>plt.figure()</span>
<span id="cb1-12"><a href="#cb1-12" aria-hidden="true" tabindex="-1"></a>plt.title(<span class="st">'Spectral Irradiance'</span>)</span>
Expand Down Expand Up @@ -439,7 +439,7 @@ <h3 class="anchored" data-anchor-id="calculating-the-trivich-flinn-efficiency-li
<div class="cell" data-executetime="{&quot;end_time&quot;:&quot;2023-07-31T07:51:28.702500Z&quot;,&quot;start_time&quot;:&quot;2023-07-31T07:51:28.515220Z&quot;}" data-execution_count="35">
<div class="sourceCode cell-code" id="cb17"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb17-1"><a href="#cb17-1" aria-hidden="true" tabindex="-1"></a>plt.figure()</span>
<span id="cb17-2"><a href="#cb17-2" aria-hidden="true" tabindex="-1"></a>plt.title(<span class="st">'Trivich-Flinn Single Junction Efficiency Limit'</span>)</span>
<span id="cb17-3"><a href="#cb17-3" aria-hidden="true" tabindex="-1"></a>plt.plot(eg, <span class="dv">100</span><span class="op">*</span>eg<span class="op">*</span>jsc<span class="op">/</span>b,label<span class="op">=</span><span class="st">'AM1.5G'</span>) <span class="co"># Divide by 10 to convert from A.m^-2 to mA.cm^-2</span></span>
<span id="cb17-3"><a href="#cb17-3" aria-hidden="true" tabindex="-1"></a>plt.plot(eg, <span class="dv">100</span><span class="op">*</span>eg<span class="op">*</span>jsc<span class="op">/</span>b,label<span class="op">=</span><span class="st">'AM1.5G'</span>)</span>
<span id="cb17-4"><a href="#cb17-4" aria-hidden="true" tabindex="-1"></a>plt.xlim(<span class="fl">0.5</span>, <span class="fl">2.5</span>)</span>
<span id="cb17-5"><a href="#cb17-5" aria-hidden="true" tabindex="-1"></a>plt.xlabel(<span class="st">'Band Gap energy (eV)'</span>)</span>
<span id="cb17-6"><a href="#cb17-6" aria-hidden="true" tabindex="-1"></a>plt.ylabel(<span class="st">'Efficiency (%)'</span>)</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/solcore-workshop/notebooks/7-InGaP_Si_planar.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ <h2 class="anchored" data-anchor-id="defining-materials-layers-and-junctions">De
<p>The paper referenced above uses a double-layer anti-reflection coating (ARC) made of MgF<span class="math inline">\(_2\)</span> and ZnS. As in the previous example, we use the interface to the refractiveindex.info database to select optical constant data from specific sources, and define Solcore materials using this data. The III-V materials are taken from Solcore’s own material database.</p>
<p>Note that for the epoxy/glass layer, we use only a single material (BK7 glass). The epoxy and glass used in the paper have the same refractive index (n = 1.56), so we can use a single material with an appropriate refractive index to represent them.</p>
<div class="cell" data-execution_count="66">
<div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="co"># download_db() # uncomment to download database</span></span>
<div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>download_db() <span class="co"># uncomment to download database</span></span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a>MgF2_pageid <span class="op">=</span> search_db(os.path.join(<span class="st">"MgF2"</span>, <span class="st">"Rodriguez-de Marcos"</span>))[<span class="dv">0</span>][<span class="dv">0</span>]<span class="op">;</span></span>
<span id="cb2-4"><a href="#cb2-4" aria-hidden="true" tabindex="-1"></a>ZnS_pageid <span class="op">=</span> search_db(os.path.join(<span class="st">"ZnS"</span>, <span class="st">"Querry"</span>))[<span class="dv">0</span>][<span class="dv">0</span>]<span class="op">;</span></span>
Expand Down
Loading