Giter VIP home page Giter VIP logo

fdtd-poc's Introduction

FDTD-PoC

A minimal FDTD proof of concept (FDTDPoC). The aim of the project is to implement a simple FDTD solver in python3, and use it to help people familiriarize with the workings of the algorithm. To this aim, the solver should work in 2D (for TE and/or TM polarisations) and allow for easy configuration of a TFSF plane wave source as well as simple geometries. A real time animation could also have a good teaching impact.

It has the following features:

  • Additive dipolar sources can be added at arbitrary positions
    • An independent pulse component representing the time dependence of the source
  • Reflective boundaries through perfect electric conductor (PEC)
  • Absorptive (i.e. open system) boundaries through absorbing boundary conditions (ABC)

Dependencies

The code has been written on Linux (Ubuntu 17.10) using python3. Packages required:

  • numpy

Packages required to run the test driver:

  • matplotlib

TODO

List of desired features for the FDTD solver

  1. Working 2D solver (TE/TM)
  2. Boundaries
    • Absorbing boundaries (ABC/PML)
    • Reflecting boundaries (PEC)
  3. Sources
    • Dipolar additive source
    • TFSF box
  4. Materials
    • Dielectrics (arbitrary n)
    • Metals (Drude model)
    • Two level system (?)
  5. ...

and the GUI and data analysis/presentation

  1. Real time field animation
  2. Easy geometry definition
  3. Real time (?) DFT/FFT
  4. Real time envelope extraction (Hilbert transform)
  5. ...

This looks ambitious!

Virtual environment set up

Look here

fdtd-poc's People

Contributors

avernan avatar

Watchers

 avatar  avatar

Forkers

joelberk

fdtd-poc's Issues

Change to copy

self._auxfield.insert(0, numpy.array([update, self._realfield[1,:], self._realfield[2,:]]))

This should make a deep copy of the arrays, because I want to be sure that they can change independently. Investigate.

Uniform handling of units

Internally it would be useful to change everything that is possible to adimensional quantities (e.g., points per wavelengths and similar).

  • Internally adimensional units
  • Externally (i.e., API) in SI units

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.