This repository contains a Python script fields.py together with two interactive Jupyter notebooks:
force_basis.ipynbcapable of reproducing twelve plots of force densities for any material parameters and for any mode near a cylindrical dielectric fibreparticles.ipynbcapable of calculating and ploting the force fields for spherical chiral particles
This code requires python package manager such as Anaconda, Miniconda or Micromamba and packages listed in the file environment.yaml. These packages are namely:
- astropy
- jupyter
- matplotlib (version 3.7)
- numpy
- python (version 3.10.10)
- scipy
- tqdm
- texlive (UNIX) or miktex (Windows)
- Install Miniconda (or equivalent) and when finished open Anaconda Prompt
- Run the following command in the directory containing yaml file replacing word
environmentwith (unix/windows):this command creates an environment calledconda env create -f environment.yamlchiralforceand installs all the required packages. - Now open your favourite IDE (Visual Studio Code, JupyterLab, …)
- Open and run force_basis.ipynb or particles.ipynb


