King's College London
Browse

ChiralForce: Cylindrical dielectric nanofibre

Download (1.24 MB)
software
posted on 2023-10-23, 09:48 authored by Sebastian GolatSebastian Golat
<p dir="ltr">This repository contains a Python script <code>fields.py</code> together with two interactive Jupyter notebooks:</p><ul><li><code>force_basis.ipynb</code> capable of reproducing twelve plots of force densities for any material parameters and for any mode near a cylindrical dielectric fibre</li><li><code>particles.ipynb</code> capable of calculating and ploting the force fields for spherical chiral particles</li></ul><h2><a href="https://github.com/Sevastienn/ChiralForce/tree/v1.0.0#dependencies" target="_blank">Dependencies</a></h2><p dir="ltr">This code requires python package manager such as Anaconda, Miniconda or Micromamba and packages listed in the file environment.yaml. These packages are namely:</p><ul><li>astropy</li><li>jupyter</li><li>matplotlib (version 3.7)</li><li>numpy</li><li>python (version 3.10.10)</li><li>scipy</li><li>tqdm</li><li>texlive (UNIX) or miktex (Windows)</li></ul><h2><a href="https://github.com/Sevastienn/ChiralForce/tree/v1.0.0#setting-up-the-environment" target="_blank">Setting up the environment</a></h2><ul><li>Install <a href="https://docs.conda.io/projects/miniconda/en/latest/miniconda-install.html" rel="nofollow" target="_blank">Miniconda</a> (or equivalent) and when finished open Anaconda Prompt</li><li>Run the following command in the directory containing yaml file replacing word <code>environment</code> with (<code>unix</code>/<code>windows</code>):<pre><pre> conda env create -f environment.yaml<br></pre></pre>this command creates an environment called <code>chiralforce</code> and installs all the required packages.</li><li>Now open your favourite IDE (Visual Studio Code, JupyterLab, …)</li><li><ul><li>When using anaconda navigator select the environment <code>chiralforce</code></li><li>When using Visual Studio Code:</li><li><ul><li>make sure to open the folder ChiralForce-main in the explorer</li><li>choose the <code>chiralforce</code> kernel before running any notebook</li></ul></li></ul></li><li>Open and run force_basis.ipynb or particles.ipynb</li></ul>

Funding

Chiral separation of molecules enabled by enantioselective optical forces in integrated nanophotonic circuits

European Commission

Find out more...

History

Related Materials

Usage metrics

    Faculty of Natural, Mathematical & Engineering Sciences

    Categories

    Licence

    Exports

    RefWorks
    BibTeX
    Ref. manager
    Endnote
    DataCite
    NLM
    DC