GithubHelp home page GithubHelp logo

cjryu / max-schro Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 35 KB

FDTD simulation of Maxwell-Schrodinger system

Home Page: https://www.ideals.illinois.edu/items/89312

License: MIT License

MATLAB 100.00%
computational-electromagnetics finite-difference quantum simulation

max-schro's Introduction

FDTD simulation of the Maxwell-Schrodinger system in MATLAB

If this MATLAB script is useful to you, please consider citing the following reference in your work:

C. J. Ryu, A. Y. Liu, W. E. I. Sha, and W. C. Chew, "Finite-difference time-domain simulation of the Maxwell-Schrodinger system ," IEEE J. Multiscale Multiphys. Computat. Techn., vol. 1, pp. 40โ€“47, 2016.

You can also refer to my MS thesis.

This MATLAB script was written in 2014 by C. J. Ryu. It has the following novel FDTD simulation features implemented based on the vector-potential formulation of Maxwell's equations.

  • Perfectly matched layers
  • Plane-wave excitation
  • Coupled Maxwell-Schrodinger system

The main script to run is MAX_SCHROv4_3.m.

Compatibility issues

This script may not run on your verison of MATLAB since MathWorks has updated MATLAB over the years. The following are fixes that you can apply.

  • insertHOGM_MS.m uses hermite which is now called hermiteH which requires the Symbolic Math Toolbox. A great alternative is this MathWorks File Exchange submission.

  • updateMaxv2.m uses heaviside which also requires the Symbolic Math Toolbox. You can simply implement this function using an if statement.

      function out = heaviside(n)
      
      if n < 0
          out = 0;
      elseif n == 0
          out = 0.5;
      else
          out = 1;
      end
      
      end
    

License

See the LICENSE file for license rights and limitations (MIT).

max-schro's People

Contributors

cjryu avatar

Watchers

 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.