Giter Site home page Giter Site logo

old-jia / generalized-lorenz-mie Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davidruffner/generalized-lorenz-mie

0.0 0.0 0.0 5.97 MB

Code for calculating optical fields and forces in generalized lorenz mie theory

IDL 36.29% TeX 63.71%

generalized-lorenz-mie's Introduction

Generalized Lorenz Mie Repository

This repository holds code for calculating optical fields
and forces on spherical particles in generalized Lorenz-Mie theory.

There are two main tasks of the code: first it calculates the 
field of the beam, and second it calculates the force on a spherical 
particle at some position in the beam.

1. Calculating the field
  First we write the field in terms of vector spherical harmonics. We
need the coefficients of the field in this basis. The following 
codes give these coefficients for Bessel beams, plane waves, and 
angled planewaves:
besselcoefficients.pro
planewavecoefficients.pro
planewavecoefficientsangled.pro
 
  Next we can input the beam coefficients into efield_vsh_sum.pro which
gives the electric field vectors at specified points in the beam.

 We have some test code(in /tests) that runs this for a conveyor beam which is a
superposition of two Bessel beams. Run testconveyorxy.pro and 
testconveyorxz.pro to get crosssections of the beam. This agrees with 
Cizmar's paper.

2. Calculating the optical force
 You need to calculate the beam coefficients using the above codes making 
sure that you are centered on the particle. Once you have the coefficients
of the beam then you send these to normbartonforce.pro which gives
you the force efficiency Q on the particle. 

We also have test code(in /tests) for this. Running 
testbartonforcevska3fast.pro gives the force on a particle in a 
plane wave versus particle size. This compares well to Irvine 1964 paper.
Finally running testconveyoraxialforce.pro gives the axial force along one
period of an optical conveyor. This agrees with Cizmar's paper.

 

generalized-lorenz-mie's People

Contributors

davidruffner avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.