Spaces:
Running
Running
Download src/optimal_wire/static/index.html from loluwot/optimal-wire: direct link, hf CLI and curl.
- Browser
- Download file 7.12 kB
-
https://huggingface.co/spaces/loluwot/optimal-wire/resolve/main/src/optimal_wire/static/index.html
- Command line
-
hf download hf://spaces/loluwot/optimal-wire/src/optimal_wire/static/index.html
-
curl -L -o index.html https://huggingface.co/spaces/loluwot/optimal-wire/resolve/main/src/optimal_wire/static/index.html
7.12 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Optimal wire - SNSPD snake designer</title> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <header> | |
| <h1>Optimal wire</h1> | |
| <p>SNSPD snake with optimally rounded bends. Model: Clem & Berggren, | |
| <a href="https://arxiv.org/abs/1109.4881" target="_blank" rel="noopener">PRB 84, 174510 (2011)</a>.</p> | |
| </header> | |
| <main> | |
| <aside> | |
| <section> | |
| <h2>Geometry</h2> | |
| <label>Wire width W (nm) | |
| <input id="width_nm" type="number" min="1" step="any" value="100"></label> | |
| <label>Spacing g between wires (nm) | |
| <input id="gap_nm" type="number" min="1" step="any" value="200"></label> | |
| <p class="hint" id="gap_hint"></p> | |
| <label>Length of each run (µm) | |
| <input id="run_length_um" type="number" min="0.01" step="any" value="10"></label> | |
| <label>Number of parallel runs | |
| <input id="n_runs" type="number" min="1" max="2000" step="1" value="11"></label> | |
| <label>Terminals | |
| <select id="terminals"> | |
| <option value="straight">Straight</option> | |
| <option value="optimal_90">Optimal 90-degree bends</option> | |
| </select></label> | |
| </section> | |
| <section> | |
| <h2>Operating conditions</h2> | |
| <label>Temperature (K) | |
| <input id="temperature_K" type="number" min="0" step="any" value="4.2"></label> | |
| <p class="hint">Empty: material values are used as given (no temperature change).</p> | |
| <label>Bias current / device I<sub>c</sub> | |
| <input id="bias_fraction" type="number" min="0.01" max="1" step="0.01" value="0.9"></label> | |
| <label>Series resistor before the 50 Ω readout (Ω) | |
| <input id="series_resistance_ohm" type="number" min="0" step="any" value="0"></label> | |
| <label>Refractive index of the substrate | |
| <input id="substrate_index" type="number" min="1" max="5" step="any" value="1.75"></label> | |
| </section> | |
| <section> | |
| <h2>Material</h2> | |
| <label>Template or user-made material | |
| <select id="material_id"></select></label> | |
| <dl id="material_props"></dl> | |
| <p class="hint" id="material_source"></p> | |
| <div class="row"> | |
| <button id="new_material" type="button">New material</button> | |
| <button id="copy_material" type="button">Copy to new</button> | |
| <button id="delete_material" type="button" hidden>Delete</button> | |
| </div> | |
| <form id="material_form" hidden> | |
| <h3>New material</h3> | |
| <label>Name <input name="name" required maxlength="80"></label> | |
| <label>Compound <input name="material" placeholder="NbN"></label> | |
| <label>Thickness d (nm) <input name="thickness_nm" type="number" step="any" min="0" required></label> | |
| <label>Coherence length ξ (nm) <input name="xi_nm" type="number" step="any" min="0"></label> | |
| <label>Diffusion coefficient D (cm²/s) <input name="D_cm2_s" type="number" step="any" min="0"></label> | |
| <label>Critical temperature T<sub>c</sub> (K) <input name="Tc_K" type="number" step="any" min="0"></label> | |
| <label>Sheet resistance R<sub>s</sub> (Ω/sq) <input name="Rs_ohm_sq" type="number" step="any" min="0"></label> | |
| <label>Kinetic inductance L<sub>k</sub> (pH/sq) <input name="Lk_pH_sq" type="number" step="any" min="0"></label> | |
| <label>Penetration depth λ (nm) <input name="lambda_nm" type="number" step="any" min="0"></label> | |
| <label>Measured j<sub>c</sub> (MA/cm²) <input name="jc_MA_cm2" type="number" step="any" min="0"></label> | |
| <label>Temperature of the j<sub>c</sub> measurement (K) <input name="jc_temperature_K" type="number" step="any" min="0"></label> | |
| <label>Thermal conductance to substrate (W/m²K) <input name="hc_W_m2K" type="number" step="any" min="0"></label> | |
| <label>Source / notes <input name="source"></label> | |
| <p class="hint">Empty fields are calculated when possible: ξ from D and T<sub>c</sub>; | |
| L<sub>k</sub> from λ or from R<sub>s</sub> and T<sub>c</sub>; λ from L<sub>k</sub>.</p> | |
| <div class="row"> | |
| <button type="submit">Save</button> | |
| <button type="button" id="cancel_material">Cancel</button> | |
| </div> | |
| </form> | |
| </section> | |
| </aside> | |
| <div id="content"> | |
| <ul id="warnings"></ul> | |
| <p id="error" hidden></p> | |
| <section class="tiles" id="tiles"></section> | |
| <section> | |
| <div class="section-head"> | |
| <h2>Layout</h2> | |
| <span class="hint">Scroll = zoom. Drag = move.</span> | |
| <button id="zoom_bend" type="button">Zoom to bend</button> | |
| <button id="zoom_reset" type="button">Show all</button> | |
| <label class="inline">Export | |
| <select id="export_format"> | |
| <option value="oas">KLayout / OASIS (.oas)</option> | |
| <option value="gds">GDS-II (.gds)</option> | |
| <option value="dxf">DXF (.dxf)</option> | |
| </select></label> | |
| <button id="download_layout" type="button">Download</button> | |
| <a href="api/klayout.lyp" download title="KLayout layer-properties file (File > Load Layer Properties)">.lyp</a> | |
| </div> | |
| <svg id="layout" role="img" aria-label="Wire layout"></svg> | |
| </section> | |
| <section> | |
| <h2>Current crowding at the bends</h2> | |
| <table id="bend_table"></table> | |
| </section> | |
| <section> | |
| <h2>Critical-current factor R against spacing</h2> | |
| <p class="hint">R = I<sub>c</sub>(with bend) / I<sub>c</sub>(straight wire), for a 180-degree bend at the | |
| given width and ξ. The vertical line is the given spacing.</p> | |
| <div id="chart_wrap"> | |
| <svg id="chart" role="img" aria-label="R against spacing over width"></svg> | |
| <div id="tooltip" hidden></div> | |
| </div> | |
| <div class="legend"> | |
| <span><i class="sw s1"></i>Optimised bend</span> | |
| <span><i class="sw s2"></i>Sharp rectangular turn</span> | |
| <span><i class="sw sb"></i>Upper bound, all shapes</span> | |
| </div> | |
| <p class="hint">All three lines use the same model (the paper's vortex-energy criterion, written for all | |
| inner-edge shapes). Optimised bend: the best shape that the optimiser finds; for g ≥ 2W it is the paper's | |
| optimal bend, R = 1. Dotted line: a proved upper bound of R for all inner-edge shapes at constant pitch. The | |
| bound is not tight: for small ξ/W the optimised bend is within 0.01 of it, for ξ/W near 0.1 the distance | |
| is about 0.06. Tests with longer tapers and finer grids did not increase the optimised value.</p> | |
| </section> | |
| <section> | |
| <h2>Detector estimates at the operating conditions</h2> | |
| <table id="operating_table"></table> | |
| <p class="hint">Simple closed formulas (sources in <code>operating.py</code>). "-" = an input is not | |
| available for this material.</p> | |
| </section> | |
| <section> | |
| <h2>All results</h2> | |
| <table id="detail_table"></table> | |
| </section> | |
| </div> | |
| </main> | |
| <script src="app.js" type="module"></script> | |
| </body> | |
| </html> | |